Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001845/0.001845, allocations: 111 kB / 21.18 MB, free: 0.6758 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002061/0.002061, allocations: 209.2 kB / 24.47 MB, free: 3.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.992/1.992, allocations: 230.6 MB / 258.2 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001634/0.001634, allocations: 43.94 kB / 379 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3884/0.3901, allocations: 53.37 MB / 432.3 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02832/0.4184, allocations: 22.24 MB / 454.6 MB, free: 424 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0386/0.457, allocations: 19.55 MB / 474.1 MB, free: 12.78 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01069/0.4677, allocations: 269.1 kB / 474.4 MB, free: 12.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008427/0.4761, allocations: 1.677 MB / 476.1 MB, free: 10.83 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02059/0.4967, allocations: 3.31 MB / 479.4 MB, free: 7.496 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009873/0.5066, allocations: 1.597 MB / 481 MB, free: 5.898 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02957/0.5361, allocations: 12.9 MB / 493.9 MB, free: 8.957 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002161/0.5383, allocations: 0.5082 MB / 494.4 MB, free: 8.414 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005918/0.5442, allocations: 2.201 MB / 496.6 MB, free: 6.203 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006102/0.5503, allocations: 2.111 MB / 498.7 MB, free: 4.078 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001114/0.5514, allocations: 136 kB / 498.8 MB, free: 3.945 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007604/0.559, allocations: 1.284 MB / 0.4884 GB, free: 2.66 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001313/0.5604, allocations: 0.6049 MB / 0.489 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004506/0.5649, allocations: 1.932 MB / 0.4909 GB, free: 108 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01312/0.578, allocations: 6.745 MB / 0.4974 GB, free: 9.328 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.616e-06/0.578, allocations: 0 / 0.4974 GB, free: 9.328 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.578, allocations: 0 / 0.4974 GB, free: 9.328 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004221/0.5784, allocations: 0 / 0.4974 GB, free: 9.328 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01458/0.593, allocations: 6.855 MB / 0.5041 GB, free: 2.391 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/0.593, allocations: 8.031 kB / 0.5042 GB, free: 2.383 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00148/0.5945, allocations: 0.7803 MB / 0.5049 GB, free: 1.598 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009881/0.6044, allocations: 4.371 MB / 0.5092 GB, free: 13.11 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.043e-05/0.6045, allocations: 66 kB / 0.5092 GB, free: 13.04 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003634/0.6048, allocations: 103.9 kB / 0.5093 GB, free: 12.94 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002651/0.6075, allocations: 1.317 MB / 0.5106 GB, free: 11.61 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.451e-05/0.6075, allocations: 3.938 kB / 0.5106 GB, free: 11.6 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001248/0.6076, allocations: 36 kB / 0.5107 GB, free: 11.57 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.055e-05/0.6077, allocations: 35.97 kB / 0.5107 GB, free: 11.53 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002732/0.6104, allocations: 1.48 MB / 0.5121 GB, free: 10.05 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01162/0.622, allocations: 5.135 MB / 0.5172 GB, free: 4.852 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001794/0.6238, allocations: 0.864 MB / 0.518 GB, free: 3.977 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001643/0.6255, allocations: 1.071 MB / 0.5191 GB, free: 2.906 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3233/0.9488, allocations: 27.05 MB / 0.5455 GB, free: 103 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009848/0.9498, allocations: 0.5612 MB / 0.546 GB, free: 102.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.938e-06/0.9498, allocations: 0 / 0.546 GB, free: 102.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003706/0.9535, allocations: 1.912 MB / 0.5479 GB, free: 102.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.184e-05/0.9535, allocations: 68.06 kB / 0.5479 GB, free: 102 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006706/0.9602, allocations: 5.63 MB / 0.5534 GB, free: 96.77 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002185/0.9605, allocations: 37.7 kB / 0.5535 GB, free: 96.73 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002002/0.9625, allocations: 2.967 MB / 0.5564 GB, free: 93.84 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003843/0.9628, allocations: 314.1 kB / 0.5567 GB, free: 93.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005267/0.9634, allocations: 423 kB / 0.5571 GB, free: 93.16 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.125e-05/0.9634, allocations: 302.4 kB / 0.5574 GB, free: 92.86 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000819/0.9643, allocations: 406.3 kB / 0.5578 GB, free: 92.46 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009965/0.9653, allocations: 1.091 MB / 0.5588 GB, free: 91.05 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001809/0.9671, allocations: 1.607 MB / 0.5604 GB, free: 89.16 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.274e-05/0.9671, allocations: 8 kB / 0.5604 GB, free: 89.15 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003811/0.9709, allocations: 2.241 MB / 0.5626 GB, free: 86.93 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.871e-05/0.9709, allocations: 19.94 kB / 0.5626 GB, free: 86.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002015/0.9711, allocations: 160 kB / 0.5628 GB, free: 86.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.92e-05/0.9712, allocations: 32 kB / 0.5628 GB, free: 86.72 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001122/0.9723, allocations: 361.1 kB / 0.5631 GB, free: 86.37 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.581e-05/0.9723, allocations: 51.67 kB / 0.5632 GB, free: 86.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002688/0.975, allocations: 189.3 kB / 0.5634 GB, free: 86.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002026/0.9752, allocations: 120 kB / 0.5635 GB, free: 86.06 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00148/0.9767, allocations: 0.7198 MB / 0.5642 GB, free: 85.35 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001137/0.9778, allocations: 0.753 MB / 0.5649 GB, free: 84.59 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004233/0.9821, allocations: 2.158 MB / 0.567 GB, free: 82.55 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.09e-05/0.9821, allocations: 4 kB / 0.567 GB, free: 82.54 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.118e-06/0.9821, allocations: 4 kB / 0.567 GB, free: 82.54 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.9821, allocations: 7.984 kB / 0.567 GB, free: 82.53 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005943/0.988, allocations: 3.359 MB / 0.5703 GB, free: 79.15 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001599/0.9882, allocations: 140 kB / 0.5705 GB, free: 79.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007379/0.9889, allocations: 159.5 kB / 0.5706 GB, free: 78.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.179e-05/0.989, allocations: 4 kB / 0.5706 GB, free: 78.86 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.214e-05/0.989, allocations: 56 kB / 0.5707 GB, free: 78.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.244e-06/0.9891, allocations: 8.062 kB / 0.5707 GB, free: 78.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.9891, allocations: 0 / 0.5707 GB, free: 78.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003688/0.9927, allocations: 2.19 MB / 0.5728 GB, free: 76.58 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002355/0.9951, allocations: 0.7831 MB / 0.5736 GB, free: 75.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001273/0.9964, allocations: 12 kB / 0.5736 GB, free: 75.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001273/0.9976, allocations: 39.89 kB / 0.5736 GB, free: 75.75 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002271/0.9979, allocations: 96.56 kB / 0.5737 GB, free: 75.65 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000137/0.998, allocations: 74.3 kB / 0.5738 GB, free: 75.58 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005132/1.003, allocations: 3.608 MB / 0.5773 GB, free: 72 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/1.003, allocations: 0 / 0.5773 GB, free: 72 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003347/1.006, allocations: 1.089 MB / 0.5784 GB, free: 70.98 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001868/1.008, allocations: 1.187 MB / 0.5795 GB, free: 69.86 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002298/1.011, allocations: 1.366 MB / 0.5809 GB, free: 68.45 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/1.011, allocations: 0 / 0.5809 GB, free: 68.45 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009645/1.012, allocations: 0.7369 MB / 0.5816 GB, free: 67.66 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00532/1.017, allocations: 1.179 MB / 0.5827 GB, free: 66.48 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01132/1.028, allocations: 8.267 MB / 0.5908 GB, free: 58.19 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001474/1.03, allocations: 2.098 MB / 0.5929 GB, free: 56.06 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002487/1.032, allocations: 0.6885 MB / 0.5935 GB, free: 55.37 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004391/1.033, allocations: 283.4 kB / 0.5938 GB, free: 55.1 MB / 446.1 MB Notification: Performance of SimCode: time 2.054e-06/1.033, allocations: 0 / 0.5938 GB, free: 55.1 MB / 446.1 MB Notification: Performance of Templates: time 0.1156/1.148, allocations: 65.97 MB / 0.6582 GB, free: 5.98 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.490598165008123]