Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.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_4.0.0_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_4.0.0_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.001625/0.001625, allocations: 111.8 kB / 17.68 MB, free: 5.355 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.00181/0.00181, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.345/1.345, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009954/0.0009956, allocations: 51.48 kB / 302 MB, free: 5.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08551/0.08652, allocations: 49.44 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1689/0.2555, allocations: 26.71 MB / 378.2 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02485/0.2804, allocations: 22.34 MB / 400.5 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006026/0.2864, allocations: 173.6 kB / 400.7 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005134/0.2916, allocations: 1.775 MB / 402.5 MB, free: 12.44 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01264/0.3043, allocations: 3.218 MB / 405.7 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00763/0.3119, allocations: 1.627 MB / 407.3 MB, free: 8.512 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0201/0.3321, allocations: 12.67 MB / 420 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001508/0.3336, allocations: 0.863 MB / 420.9 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004009/0.3376, allocations: 2.061 MB / 422.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00282/0.3405, allocations: 2.103 MB / 425 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003233/0.3408, allocations: 136 kB / 425.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00464/0.3455, allocations: 1.53 MB / 426.7 MB, free: 8.895 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006292/0.3461, allocations: 0.6009 MB / 427.3 MB, free: 8.289 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002818/0.3489, allocations: 2.628 MB / 429.9 MB, free: 5.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007823/0.3568, allocations: 6.63 MB / 436.5 MB, free: 14.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.3568, allocations: 4 kB / 436.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3568, allocations: 0 / 436.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000106/0.3569, allocations: 0 / 436.5 MB, free: 14.98 MB / 350.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.009432/0.3664, allocations: 6.663 MB / 443.2 MB, free: 8.227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.3664, allocations: 12.03 kB / 443.2 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000781/0.3672, allocations: 0.7457 MB / 444 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006682/0.3739, allocations: 4.59 MB / 448.6 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.622e-05/0.374, allocations: 69.98 kB / 448.6 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002189/0.3742, allocations: 95.91 kB / 448.7 MB, free: 2.617 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002201/0.3764, allocations: 1.309 MB / 450 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.099e-05/0.3764, allocations: 0 / 450 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001089/0.3765, allocations: 36 kB / 450.1 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.504e-05/0.3766, allocations: 39.97 kB / 450.1 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002419/0.379, allocations: 1.484 MB / 451.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01128/0.3903, allocations: 5.62 MB / 457.2 MB, free: 10.03 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001828/0.3922, allocations: 0.9818 MB / 458.2 MB, free: 9.031 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001684/0.3939, allocations: 1.229 MB / 459.4 MB, free: 7.797 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05642/0.4503, allocations: 59.8 MB / 0.507 GB, free: 3.816 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009605/0.4513, allocations: 0.5598 MB / 0.5076 GB, free: 3.242 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 2.975e-06/0.4513, allocations: 0 / 0.5076 GB, free: 3.242 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.003413/0.4547, allocations: 1.871 MB / 0.5094 GB, free: 1.363 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.61e-05/0.4548, allocations: 71.94 kB / 0.5095 GB, free: 1.277 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00706/0.4619, allocations: 5.586 MB / 0.5149 GB, free: 11.72 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001233/0.462, allocations: 41.7 kB / 0.515 GB, free: 11.67 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002284/0.4643, allocations: 2.943 MB / 0.5179 GB, free: 8.715 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000297/0.4646, allocations: 295.9 kB / 0.5181 GB, free: 8.422 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000491/0.4651, allocations: 418.5 kB / 0.5185 GB, free: 8.008 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.4652, allocations: 305.1 kB / 0.5188 GB, free: 7.707 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008136/0.4661, allocations: 403.7 kB / 0.5192 GB, free: 7.312 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001214/0.4673, allocations: 1.083 MB / 0.5203 GB, free: 5.902 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002066/0.4694, allocations: 1.615 MB / 0.5219 GB, free: 3.953 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-05/0.4694, allocations: 8 kB / 0.5219 GB, free: 3.945 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003392/0.4728, allocations: 2.21 MB / 0.524 GB, free: 1.723 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.4728, allocations: 12 kB / 0.524 GB, free: 1.711 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001919/0.473, allocations: 164 kB / 0.5242 GB, free: 1.551 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.261e-05/0.4731, allocations: 39.94 kB / 0.5242 GB, free: 1.512 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001154/0.4742, allocations: 367.7 kB / 0.5246 GB, free: 1.156 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.876e-05/0.4743, allocations: 47.8 kB / 0.5246 GB, free: 1.109 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001704/0.476, allocations: 190.1 kB / 0.5248 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000179/0.4762, allocations: 120 kB / 0.5249 GB, free: 0.8047 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.001211/0.4774, allocations: 0.716 MB / 0.5256 GB, free: 80 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1577/0.6351, allocations: 0.7118 MB / 0.5263 GB, free: 155.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004597/0.6398, allocations: 2.149 MB / 0.5284 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.6398, allocations: 7.688 kB / 0.5284 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.6398, allocations: 1.891 kB / 0.5284 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.6398, allocations: 4.5 kB / 0.5284 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005923/0.6458, allocations: 3.606 MB / 0.5319 GB, free: 154 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001803/0.646, allocations: 142.3 kB / 0.5321 GB, free: 154 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007601/0.6467, allocations: 151.5 kB / 0.5322 GB, free: 154 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.417e-06/0.6468, allocations: 3.688 kB / 0.5322 GB, free: 154 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001021/0.6469, allocations: 64.42 kB / 0.5323 GB, free: 154 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.614e-06/0.6469, allocations: 3.125 kB / 0.5323 GB, free: 154 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.6469, allocations: 1.062 kB / 0.5323 GB, free: 154 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003146/0.65, allocations: 2.149 MB / 0.5344 GB, free: 153.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001565/0.6516, allocations: 0.8216 MB / 0.5352 GB, free: 152.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005512/0.6522, allocations: 17.48 kB / 0.5352 GB, free: 152.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001113/0.6533, allocations: 37.19 kB / 0.5352 GB, free: 152.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002388/0.6536, allocations: 103.8 kB / 0.5353 GB, free: 152.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001354/0.6537, allocations: 70.16 kB / 0.5354 GB, free: 152.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005572/0.6593, allocations: 3.605 MB / 0.5389 GB, free: 151.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.6593, allocations: 1.156 kB / 0.5389 GB, free: 151.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00255/0.6619, allocations: 1.078 MB / 0.54 GB, free: 151.3 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.001659/0.6635, allocations: 1.178 MB / 0.5411 GB, free: 151 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00244/0.666, allocations: 1.425 MB / 0.5425 GB, free: 150.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.666, allocations: 2.594 kB / 0.5425 GB, free: 150.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009506/0.6669, allocations: 0.7712 MB / 0.5433 GB, free: 150 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00435/0.6713, allocations: 1.179 MB / 0.5444 GB, free: 149.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00926/0.6806, allocations: 8.078 MB / 0.5523 GB, free: 145.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001282/0.6819, allocations: 2.598 MB / 0.5549 GB, free: 144.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001691/0.6836, allocations: 0.679 MB / 0.5555 GB, free: 143.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00031/0.6839, allocations: 283.4 kB / 0.5558 GB, free: 143.6 MB / 446.1 MB Notification: Performance of SimCode: time 7.51e-07/0.6839, allocations: 0 / 0.5558 GB, free: 143.6 MB / 446.1 MB Notification: Performance of Templates: time 0.07895/0.7629, allocations: 55.11 MB / 0.6096 GB, free: 89.09 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches