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.001782/0.001782, allocations: 119.6 kB / 20.44 MB, free: 1.32 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.002433/0.002433, allocations: 217.2 kB / 23.74 MB, free: 4.551 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.563/1.563, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.001643/0.001643, allocations: 51.86 kB / 378.3 MB, free: 2.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2349, allocations: 53.36 MB / 431.6 MB, free: 6.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02699/0.2619, allocations: 26.82 MB / 458.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02993/0.2918, allocations: 22.46 MB / 480.9 MB, free: 5.492 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004111/0.2959, allocations: 265.1 kB / 481.1 MB, free: 5.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004367/0.3003, allocations: 1.785 MB / 482.9 MB, free: 3.438 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009834/0.3101, allocations: 3.329 MB / 486.3 MB, free: 84 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004557/0.3147, allocations: 1.636 MB / 487.9 MB, free: 14.44 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01991/0.3346, allocations: 12.91 MB / 0.4891 GB, free: 1.492 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00119/0.3358, allocations: 0.5043 MB / 0.4896 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003382/0.3392, allocations: 2.193 MB / 0.4917 GB, free: 14.75 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00317/0.3423, allocations: 2.103 MB / 0.4938 GB, free: 12.63 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000337/0.3427, allocations: 136 kB / 0.4939 GB, free: 12.5 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004151/0.3468, allocations: 1.533 MB / 0.4954 GB, free: 10.96 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006184/0.3475, allocations: 0.601 MB / 0.496 GB, free: 10.36 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002792/0.3502, allocations: 2.616 MB / 0.4985 GB, free: 7.727 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009418/0.3597, allocations: 6.671 MB / 0.505 GB, free: 1.023 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3597, allocations: 3.938 kB / 0.505 GB, free: 1.02 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3597, allocations: 7.875 kB / 0.5051 GB, free: 1.012 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001731/0.3598, allocations: 4 kB / 0.5051 GB, free: 1.008 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.01096/0.3708, allocations: 6.851 MB / 0.5118 GB, free: 10.07 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.3708, allocations: 12.03 kB / 0.5118 GB, free: 10.06 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001035/0.3719, allocations: 0.7764 MB / 0.5125 GB, free: 9.277 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007869/0.3798, allocations: 4.375 MB / 0.5168 GB, free: 4.781 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.071e-05/0.3798, allocations: 66 kB / 0.5169 GB, free: 4.715 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000244/0.3801, allocations: 103.9 kB / 0.517 GB, free: 4.613 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002398/0.3825, allocations: 1.309 MB / 0.5182 GB, free: 3.289 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.289e-05/0.3825, allocations: 0 / 0.5182 GB, free: 3.289 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001184/0.3826, allocations: 36 kB / 0.5183 GB, free: 3.254 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.253e-05/0.3827, allocations: 43.97 kB / 0.5183 GB, free: 3.211 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002738/0.3854, allocations: 1.492 MB / 0.5198 GB, free: 1.715 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01056/0.3959, allocations: 5.556 MB / 0.5252 GB, free: 12.09 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001717/0.3977, allocations: 0.8757 MB / 0.526 GB, free: 11.2 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001642/0.3993, allocations: 1.067 MB / 0.5271 GB, free: 10.14 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2384/0.6377, allocations: 27.15 MB / 0.5536 GB, free: 95.65 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008804/0.6386, allocations: 0.5627 MB / 0.5542 GB, free: 95.33 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 2.946e-06/0.6386, allocations: 0 / 0.5542 GB, free: 95.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.002752/0.6413, allocations: 1.907 MB / 0.556 GB, free: 94.16 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.763e-05/0.6414, allocations: 68.06 kB / 0.5561 GB, free: 94.08 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00481/0.6462, allocations: 5.589 MB / 0.5615 GB, free: 88.54 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001107/0.6463, allocations: 41.61 kB / 0.5616 GB, free: 88.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001589/0.6479, allocations: 2.968 MB / 0.5645 GB, free: 85.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001935/0.6481, allocations: 313.7 kB / 0.5648 GB, free: 85.33 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003633/0.6484, allocations: 427 kB / 0.5652 GB, free: 84.91 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.44e-05/0.6485, allocations: 301.1 kB / 0.5655 GB, free: 84.61 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007116/0.6492, allocations: 403 kB / 0.5659 GB, free: 84.22 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008718/0.6501, allocations: 1.089 MB / 0.5669 GB, free: 82.82 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00159/0.6516, allocations: 1.616 MB / 0.5685 GB, free: 80.93 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.014e-05/0.6517, allocations: 9.062 kB / 0.5685 GB, free: 80.92 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00264/0.6543, allocations: 2.242 MB / 0.5707 GB, free: 78.69 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.6543, allocations: 16 kB / 0.5707 GB, free: 78.67 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000164/0.6545, allocations: 164 kB / 0.5709 GB, free: 78.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.299e-05/0.6545, allocations: 32 kB / 0.5709 GB, free: 78.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/0.6555, allocations: 359 kB / 0.5712 GB, free: 78.13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.584e-05/0.6556, allocations: 47.86 kB / 0.5713 GB, free: 78.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001485/0.657, allocations: 190.1 kB / 0.5715 GB, free: 77.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001359/0.6572, allocations: 124 kB / 0.5716 GB, free: 77.82 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.001012/0.6582, allocations: 0.7144 MB / 0.5723 GB, free: 77.11 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004174/0.6586, allocations: 0.7562 MB / 0.573 GB, free: 76.36 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003483/0.6621, allocations: 2.15 MB / 0.5751 GB, free: 74.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/0.6621, allocations: 11.23 kB / 0.5751 GB, free: 74.24 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.6621, allocations: 8 kB / 0.5751 GB, free: 74.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.6621, allocations: 0 / 0.5751 GB, free: 74.23 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004187/0.6663, allocations: 3.588 MB / 0.5786 GB, free: 70.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001458/0.6664, allocations: 140 kB / 0.5788 GB, free: 70.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006708/0.6671, allocations: 155.8 kB / 0.5789 GB, free: 70.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.6671, allocations: 0 / 0.5789 GB, free: 70.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.307e-05/0.6672, allocations: 60 kB / 0.579 GB, free: 70.24 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.618e-06/0.6672, allocations: 4 kB / 0.579 GB, free: 70.24 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.6672, allocations: 0 / 0.579 GB, free: 70.24 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002487/0.6697, allocations: 2.186 MB / 0.5811 GB, free: 68.02 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001254/0.6709, allocations: 0.782 MB / 0.5819 GB, free: 67.24 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005216/0.6715, allocations: 23.88 kB / 0.5819 GB, free: 67.22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/0.6725, allocations: 35.95 kB / 0.5819 GB, free: 67.18 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001753/0.6727, allocations: 96.56 kB / 0.582 GB, free: 67.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.25e-05/0.6728, allocations: 71.98 kB / 0.5821 GB, free: 67.02 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0035/0.6763, allocations: 3.608 MB / 0.5856 GB, free: 63.44 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.6763, allocations: 0 / 0.5856 GB, free: 63.44 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001873/0.6782, allocations: 1.079 MB / 0.5867 GB, free: 62.43 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.001289/0.6795, allocations: 1.192 MB / 0.5878 GB, free: 61.29 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001925/0.6814, allocations: 1.362 MB / 0.5892 GB, free: 59.89 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.6814, allocations: 4 kB / 0.5892 GB, free: 59.89 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008684/0.6823, allocations: 0.7365 MB / 0.5899 GB, free: 59.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003784/0.686, allocations: 1.168 MB / 0.591 GB, free: 57.93 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008033/0.6941, allocations: 8.267 MB / 0.5991 GB, free: 49.63 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001246/0.6953, allocations: 2.588 MB / 0.6016 GB, free: 47.02 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001752/0.6971, allocations: 0.6846 MB / 0.6023 GB, free: 46.33 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003423/0.6974, allocations: 283.4 kB / 0.6026 GB, free: 46.05 MB / 446.1 MB Notification: Performance of SimCode: time 1.382e-06/0.6974, allocations: 0 / 0.6026 GB, free: 46.05 MB / 446.1 MB Notification: Performance of Templates: time 0.08611/0.7835, allocations: 56.65 MB / 0.6579 GB, free: 6 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins/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: 6.870071151992306]