Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001108/0.001107, allocations: 92.33 kB / 17.3 MB, free: 6.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00147/0.001471, allocations: 180.2 kB / 18.21 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.386/1.386, allocations: 205.4 MB / 224.4 MB, free: 13.06 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006511/0.0006512, allocations: 12 kB / 281.4 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1014, allocations: 47.58 MB / 329 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01994/0.1213, allocations: 24.31 MB / 353.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02603/0.1474, allocations: 21.21 MB / 374.5 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004749/0.1522, allocations: 59.62 kB / 374.5 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00496/0.1572, allocations: 1.478 MB / 376 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01057/0.1678, allocations: 2.674 MB / 378.7 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005087/0.1729, allocations: 1.309 MB / 380 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1874/0.3604, allocations: 12.13 MB / 392.1 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00151/0.3619, allocations: 0.8203 MB / 392.9 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003135/0.3651, allocations: 1.77 MB / 394.7 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002918/0.368, allocations: 1.983 MB / 396.7 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004258/0.3685, allocations: 77.22 kB / 396.8 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003695/0.3722, allocations: 1.17 MB / 397.9 MB, free: 11.54 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005402/0.3727, allocations: 0.5437 MB / 398.5 MB, free: 11.26 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003097/0.3758, allocations: 2.604 MB / 401.1 MB, free: 10.15 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007615/0.3834, allocations: 6.388 MB / 407.5 MB, free: 8.574 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3835, allocations: 0 / 407.5 MB, free: 8.574 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.3835, allocations: 0 / 407.5 MB, free: 8.574 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001886/0.3837, allocations: 0 / 407.5 MB, free: 8.574 MB / 318.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.008015/0.3917, allocations: 5.826 MB / 413.3 MB, free: 3.273 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.3918, allocations: 8.031 kB / 413.3 MB, free: 3.266 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000854/0.3926, allocations: 0.7545 MB / 414.1 MB, free: 2.508 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006506/0.3991, allocations: 4.666 MB / 418.7 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.229e-05/0.3992, allocations: 70.8 kB / 418.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002511/0.3995, allocations: 102.6 kB / 418.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002288/0.4018, allocations: 1.319 MB / 420.2 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/0.4018, allocations: 4.938 kB / 420.2 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001219/0.402, allocations: 36 kB / 420.3 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.97e-05/0.402, allocations: 39.97 kB / 420.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002652/0.4047, allocations: 1.532 MB / 421.8 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01076/0.4155, allocations: 5.673 MB / 427.5 MB, free: 5.969 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001866/0.4174, allocations: 1.028 MB / 428.5 MB, free: 4.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00179/0.4192, allocations: 1.252 MB / 429.8 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05675/0.4759, allocations: 59.97 MB / 489.7 MB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001113/0.4771, allocations: 0.5857 MB / 490.3 MB, free: 15.02 MB / 414.1 MB Notification: Performance of pre-optimization done (n=85): time 3.357e-06/0.4771, allocations: 0 / 490.3 MB, free: 15.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=85): time 0.003786/0.4809, allocations: 1.949 MB / 492.3 MB, free: 13.06 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.46e-05/0.481, allocations: 63.97 kB / 492.3 MB, free: 12.98 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00795/0.489, allocations: 5.62 MB / 498 MB, free: 7.395 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002331/0.4892, allocations: 41.7 kB / 498 MB, free: 7.348 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002604/0.4918, allocations: 2.934 MB / 0.4892 GB, free: 4.406 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005068/0.4924, allocations: 303 kB / 0.4895 GB, free: 4.113 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000178/0.4926, allocations: 121.7 kB / 0.4896 GB, free: 3.988 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.868e-05/0.4927, allocations: 305.1 kB / 0.4899 GB, free: 3.688 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009043/0.4936, allocations: 423.8 kB / 0.4903 GB, free: 3.277 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001383/0.495, allocations: 1.109 MB / 0.4914 GB, free: 1.844 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002409/0.4974, allocations: 1.657 MB / 0.493 GB, free: 15.86 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-05/0.4974, allocations: 8 kB / 0.493 GB, free: 15.86 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004359/0.5018, allocations: 2.261 MB / 0.4952 GB, free: 13.59 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.509e-05/0.5018, allocations: 12 kB / 0.4952 GB, free: 13.58 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002079/0.5021, allocations: 168 kB / 0.4954 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.493e-05/0.5021, allocations: 32 kB / 0.4954 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/0.5034, allocations: 379.4 kB / 0.4958 GB, free: 13.01 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.362e-05/0.5034, allocations: 43.86 kB / 0.4958 GB, free: 12.97 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002741/0.5062, allocations: 197.9 kB / 0.496 GB, free: 12.78 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002539/0.5064, allocations: 128 kB / 0.4961 GB, free: 12.65 MB / 430.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.001828/0.5083, allocations: 0.716 MB / 0.4968 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001288/0.5096, allocations: 0.7217 MB / 0.4975 GB, free: 11.2 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005725/0.5153, allocations: 2.207 MB / 0.4997 GB, free: 8.992 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.205e-05/0.5153, allocations: 12 kB / 0.4997 GB, free: 8.98 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.5154, allocations: 0 / 0.4997 GB, free: 8.98 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.826e-06/0.5154, allocations: 3.984 kB / 0.4997 GB, free: 8.977 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006549/0.5219, allocations: 3.655 MB / 0.5033 GB, free: 5.273 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001792/0.5221, allocations: 140.9 kB / 0.5034 GB, free: 5.137 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008153/0.523, allocations: 163.8 kB / 0.5036 GB, free: 4.977 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.596e-06/0.523, allocations: 4 kB / 0.5036 GB, free: 4.973 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.096e-05/0.5231, allocations: 59.98 kB / 0.5036 GB, free: 4.914 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.5231, allocations: 4 kB / 0.5036 GB, free: 4.91 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.5231, allocations: 3.938 kB / 0.5036 GB, free: 4.906 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003769/0.5269, allocations: 2.229 MB / 0.5058 GB, free: 2.645 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001781/0.5287, allocations: 0.8201 MB / 0.5066 GB, free: 1.797 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007169/0.5294, allocations: 12 kB / 0.5066 GB, free: 1.785 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001182/0.5306, allocations: 51.89 kB / 0.5067 GB, free: 1.734 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002267/0.5308, allocations: 100.5 kB / 0.5068 GB, free: 1.637 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001354/0.531, allocations: 64 kB / 0.5068 GB, free: 1.574 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.005511/0.5365, allocations: 3.633 MB / 0.5104 GB, free: 13.97 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.5365, allocations: 0 / 0.5104 GB, free: 13.97 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003047/0.5396, allocations: 1.085 MB / 0.5114 GB, free: 12.89 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.001943/0.5415, allocations: 1.194 MB / 0.5126 GB, free: 11.91 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002919/0.5445, allocations: 1.475 MB / 0.514 GB, free: 10.38 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.5445, allocations: 0 / 0.514 GB, free: 10.38 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001234/0.5457, allocations: 0.7981 MB / 0.5148 GB, free: 9.531 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005191/0.5509, allocations: 0.9139 MB / 0.5157 GB, free: 8.613 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01402/0.565, allocations: 9.921 MB / 0.5254 GB, free: 14.65 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002047/0.5671, allocations: 2.6 MB / 0.5279 GB, free: 12.02 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002978/0.5701, allocations: 0.6888 MB / 0.5286 GB, free: 11.33 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005679/0.5707, allocations: 279.4 kB / 0.5289 GB, free: 11.06 MB / 462.1 MB Notification: Performance of SimCode: time 1.453e-06/0.5707, allocations: 4 kB / 0.5289 GB, free: 11.06 MB / 462.1 MB Notification: Performance of Templates: time 0.2534/0.8241, allocations: 53.56 MB / 0.5812 GB, free: 153.5 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches