Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 112.3 kB / 17.74 MB, free: 5.293 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.001656/0.001656, allocations: 187 kB / 18.67 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001124, allocations: 43.94 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2723, allocations: 49.43 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01461/0.287, allocations: 15.32 MB / 416.7 MB, free: 9.508 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02669/0.3137, allocations: 20.73 MB / 437.4 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002718/0.3165, allocations: 91.25 kB / 437.5 MB, free: 4.602 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003661/0.3202, allocations: 1.257 MB / 438.8 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008854/0.3291, allocations: 2.348 MB / 441.1 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005512/0.3346, allocations: 1.439 MB / 442.6 MB, free: 15.53 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01052/0.3451, allocations: 6.609 MB / 449.2 MB, free: 8.898 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009796/0.3462, allocations: 469.6 kB / 449.6 MB, free: 8.414 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001751/0.3479, allocations: 1.135 MB / 450.8 MB, free: 7.273 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00135/0.3493, allocations: 1.141 MB / 451.9 MB, free: 6.125 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002213/0.3495, allocations: 79.98 kB / 452 MB, free: 6.047 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003889/0.3534, allocations: 1.479 MB / 453.5 MB, free: 4.566 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003654/0.3538, allocations: 337.5 kB / 453.8 MB, free: 4.234 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001551/0.3554, allocations: 1.432 MB / 455.2 MB, free: 2.793 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005586/0.361, allocations: 3.977 MB / 459.2 MB, free: 14.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.361, allocations: 0 / 459.2 MB, free: 14.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.361, allocations: 0 / 459.2 MB, free: 14.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.257e-05/0.3611, allocations: 0 / 459.2 MB, free: 14.8 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005353/0.3665, allocations: 3.826 MB / 463 MB, free: 10.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.3665, allocations: 8.031 kB / 463.1 MB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000439/0.3669, allocations: 414.9 kB / 463.5 MB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00317/0.3701, allocations: 2.475 MB / 465.9 MB, free: 7.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.798e-05/0.3702, allocations: 33 kB / 466 MB, free: 7.898 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001326/0.3703, allocations: 59.89 kB / 466 MB, free: 7.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.3717, allocations: 0.7265 MB / 466.7 MB, free: 7.105 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.3717, allocations: 0 / 466.7 MB, free: 7.105 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.147e-05/0.3718, allocations: 20 kB / 466.8 MB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.253e-05/0.3718, allocations: 19.98 kB / 466.8 MB, free: 7.066 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001543/0.3734, allocations: 0.8202 MB / 467.6 MB, free: 6.246 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005004/0.3784, allocations: 3.098 MB / 470.7 MB, free: 3.062 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001217/0.3796, allocations: 0.5791 MB / 471.3 MB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009796/0.3806, allocations: 0.6438 MB / 471.9 MB, free: 1.832 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0326/0.4132, allocations: 30.13 MB / 0.4903 GB, free: 15.6 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001195/0.4145, allocations: 369.5 kB / 0.4906 GB, free: 15.23 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 4.929e-06/0.4145, allocations: 0 / 0.4906 GB, free: 15.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.004044/0.4186, allocations: 1.112 MB / 0.4917 GB, free: 14.1 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.967e-05/0.4187, allocations: 59.39 kB / 0.4918 GB, free: 14.03 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006308/0.425, allocations: 3.087 MB / 0.4948 GB, free: 10.95 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001377/0.4252, allocations: 41.64 kB / 0.4948 GB, free: 10.9 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00219/0.4274, allocations: 1.573 MB / 0.4964 GB, free: 9.316 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002908/0.4277, allocations: 165.7 kB / 0.4965 GB, free: 9.152 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004603/0.4281, allocations: 230.1 kB / 0.4967 GB, free: 8.922 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.4284, allocations: 342 kB / 0.4971 GB, free: 8.582 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009461/0.4293, allocations: 241.8 kB / 0.4973 GB, free: 8.348 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001306/0.4306, allocations: 0.5942 MB / 0.4979 GB, free: 7.578 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002094/0.4327, allocations: 0.9013 MB / 0.4988 GB, free: 6.504 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-05/0.4328, allocations: 7.938 kB / 0.4988 GB, free: 6.496 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003596/0.4364, allocations: 1.249 MB / 0.5 GB, free: 5.242 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.069e-05/0.4364, allocations: 8 kB / 0.5 GB, free: 5.234 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001612/0.4366, allocations: 80 kB / 0.5001 GB, free: 5.156 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.415e-05/0.4367, allocations: 20 kB / 0.5001 GB, free: 5.137 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/0.4377, allocations: 207.6 kB / 0.5003 GB, free: 4.934 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.274e-05/0.4378, allocations: 27.92 kB / 0.5003 GB, free: 4.906 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001841/0.4396, allocations: 107.3 kB / 0.5004 GB, free: 4.801 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001564/0.4398, allocations: 64 kB / 0.5005 GB, free: 4.738 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.001273/0.4411, allocations: 454.2 kB / 0.5009 GB, free: 4.285 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007574/0.4419, allocations: 399.1 kB / 0.5013 GB, free: 3.891 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003996/0.4459, allocations: 1.207 MB / 0.5025 GB, free: 2.664 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.406e-05/0.4459, allocations: 7.984 kB / 0.5025 GB, free: 2.656 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.4459, allocations: 0 / 0.5025 GB, free: 2.656 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.968e-06/0.446, allocations: 4 kB / 0.5025 GB, free: 2.652 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005219/0.4512, allocations: 2.147 MB / 0.5046 GB, free: 448 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001439/0.4514, allocations: 71.98 kB / 0.5047 GB, free: 376 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007525/0.4521, allocations: 91.98 kB / 0.5047 GB, free: 284 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.368e-05/0.4521, allocations: 4 kB / 0.5047 GB, free: 280 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.001e-05/0.4522, allocations: 32 kB / 0.5048 GB, free: 248 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-05/0.4523, allocations: 7.938 kB / 0.5048 GB, free: 240 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.4523, allocations: 3.938 kB / 0.5048 GB, free: 236 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003442/0.4557, allocations: 1.326 MB / 0.5061 GB, free: 14.88 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001221/0.457, allocations: 0.4921 MB / 0.5066 GB, free: 14.36 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004646/0.4574, allocations: 8 kB / 0.5066 GB, free: 14.35 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001128/0.4586, allocations: 31.95 kB / 0.5066 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000212/0.4588, allocations: 63.89 kB / 0.5067 GB, free: 14.26 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001132/0.4589, allocations: 36 kB / 0.5067 GB, free: 14.22 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004498/0.4634, allocations: 2.01 MB / 0.5087 GB, free: 12.22 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.4635, allocations: 4.062 kB / 0.5087 GB, free: 12.21 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002463/0.466, allocations: 0.5894 MB / 0.5092 GB, free: 11.62 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.001654/0.4676, allocations: 0.761 MB / 0.51 GB, free: 10.86 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002582/0.4702, allocations: 0.8175 MB / 0.5108 GB, free: 10.02 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.052e-06/0.4703, allocations: 4.062 kB / 0.5108 GB, free: 10.01 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001018/0.4713, allocations: 439 kB / 0.5112 GB, free: 9.559 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004277/0.4756, allocations: 0.6388 MB / 0.5118 GB, free: 8.918 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008943/0.4845, allocations: 4.564 MB / 0.5163 GB, free: 4.309 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00116/0.4857, allocations: 1.71 MB / 0.518 GB, free: 2.57 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003649/0.4861, allocations: 159.4 kB / 0.5181 GB, free: 2.414 MB / 446.1 MB Notification: Performance of SimCode: time 2.424e-06/0.4861, allocations: 4 kB / 0.5181 GB, free: 2.41 MB / 446.1 MB Notification: Performance of Templates: time 0.292/0.7781, allocations: 38.63 MB / 0.5558 GB, free: 122.5 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches