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.001123/0.001122, allocations: 105.4 kB / 17.73 MB, free: 5.336 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.001215/0.001215, allocations: 192.2 kB / 18.66 MB, free: 4.406 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.381/1.381, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.00117/0.00117, allocations: 43.94 kB / 328.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1115, allocations: 46.62 MB / 375.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.2245/0.3361, allocations: 25.35 MB / 400.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03216/0.3683, allocations: 21.34 MB / 421.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006081/0.3744, allocations: 179.2 kB / 422 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005297/0.3797, allocations: 1.717 MB / 423.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01244/0.3922, allocations: 3.167 MB / 426.9 MB, free: 8.754 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005648/0.3979, allocations: 1.572 MB / 428.5 MB, free: 7.516 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02005/0.418, allocations: 12.39 MB / 440.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001522/0.4195, allocations: 0.8718 MB / 441.7 MB, free: 12.83 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003029/0.4226, allocations: 1.917 MB / 443.6 MB, free: 10.9 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002409/0.425, allocations: 2.054 MB / 445.7 MB, free: 8.836 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003757/0.4254, allocations: 136 kB / 445.8 MB, free: 8.703 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004134/0.4295, allocations: 1.222 MB / 447 MB, free: 7.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005277/0.4301, allocations: 0.6049 MB / 447.6 MB, free: 6.871 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002567/0.4326, allocations: 2.635 MB / 450.3 MB, free: 4.219 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007953/0.4406, allocations: 6.673 MB / 457 MB, free: 13.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.4406, allocations: 4 kB / 457 MB, free: 13.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.4406, allocations: 3.938 kB / 457 MB, free: 13.51 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.417e-05/0.4407, allocations: 0 / 457 MB, free: 13.51 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.008562/0.4493, allocations: 6.725 MB / 463.7 MB, free: 6.688 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.4494, allocations: 8.031 kB / 463.7 MB, free: 6.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007641/0.4501, allocations: 0.7487 MB / 464.4 MB, free: 5.922 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006023/0.4562, allocations: 4.622 MB / 469.1 MB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.793e-05/0.4562, allocations: 66 kB / 469.1 MB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001999/0.4564, allocations: 99.91 kB / 469.2 MB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002185/0.4586, allocations: 1.305 MB / 470.5 MB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.4587, allocations: 0 / 470.5 MB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001189/0.4588, allocations: 36 kB / 470.6 MB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.309e-05/0.4588, allocations: 43.91 kB / 470.6 MB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002446/0.4613, allocations: 1.488 MB / 472.1 MB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008871/0.4702, allocations: 5.64 MB / 477.7 MB, free: 8.418 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00164/0.4718, allocations: 0.989 MB / 478.7 MB, free: 7.418 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001542/0.4734, allocations: 1.216 MB / 479.9 MB, free: 6.199 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05557/0.529, allocations: 59.93 MB / 0.5272 GB, free: 2.082 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001114/0.5301, allocations: 0.5598 MB / 0.5278 GB, free: 1.516 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 4.127e-06/0.5301, allocations: 0 / 0.5278 GB, free: 1.516 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.003872/0.534, allocations: 1.879 MB / 0.5296 GB, free: 15.62 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.947e-05/0.5341, allocations: 67.95 kB / 0.5297 GB, free: 15.54 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007147/0.5412, allocations: 5.628 MB / 0.5352 GB, free: 9.945 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001715/0.5414, allocations: 37.7 kB / 0.5352 GB, free: 9.902 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00273/0.5442, allocations: 2.935 MB / 0.5381 GB, free: 6.953 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000368/0.5446, allocations: 303.9 kB / 0.5384 GB, free: 6.652 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005984/0.5452, allocations: 422.5 kB / 0.5388 GB, free: 6.234 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.5453, allocations: 309 kB / 0.5391 GB, free: 5.93 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008972/0.5462, allocations: 399.8 kB / 0.5394 GB, free: 5.539 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001315/0.5475, allocations: 1.087 MB / 0.5405 GB, free: 4.117 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002367/0.5499, allocations: 1.615 MB / 0.5421 GB, free: 2.172 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.49e-05/0.5499, allocations: 8 kB / 0.5421 GB, free: 2.164 MB / 478.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.1777/0.7276, allocations: 2.208 MB / 0.5442 GB, free: 156.4 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.406e-05/0.7277, allocations: 14.84 kB / 0.5442 GB, free: 156.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003328/0.728, allocations: 162.1 kB / 0.5444 GB, free: 156.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.467e-05/0.7281, allocations: 39.5 kB / 0.5444 GB, free: 156.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/0.7294, allocations: 353.1 kB / 0.5448 GB, free: 156.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.136e-05/0.7295, allocations: 54.77 kB / 0.5448 GB, free: 156.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00211/0.7316, allocations: 184.7 kB / 0.545 GB, free: 156.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002159/0.7319, allocations: 126.3 kB / 0.5451 GB, free: 156.4 MB / 478.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.001464/0.7333, allocations: 0.715 MB / 0.5458 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007318/0.7341, allocations: 0.7219 MB / 0.5465 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004685/0.7388, allocations: 2.168 MB / 0.5486 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.096e-05/0.7388, allocations: 6.812 kB / 0.5487 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.7388, allocations: 1.844 kB / 0.5487 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.7388, allocations: 7.031 kB / 0.5487 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005246/0.7441, allocations: 3.625 MB / 0.5522 GB, free: 155.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002051/0.7443, allocations: 140.6 kB / 0.5523 GB, free: 155.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007938/0.7451, allocations: 154.9 kB / 0.5525 GB, free: 155.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.25e-05/0.7451, allocations: 5.656 kB / 0.5525 GB, free: 155.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001018/0.7452, allocations: 60.19 kB / 0.5525 GB, free: 155.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.662e-06/0.7452, allocations: 11.31 kB / 0.5526 GB, free: 155.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.7452, allocations: 0 / 0.5526 GB, free: 155.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003397/0.7486, allocations: 2.161 MB / 0.5547 GB, free: 154.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/0.7499, allocations: 0.8212 MB / 0.5555 GB, free: 154.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005653/0.7505, allocations: 20.33 kB / 0.5555 GB, free: 154.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001135/0.7516, allocations: 33.92 kB / 0.5555 GB, free: 154.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002288/0.7519, allocations: 101.1 kB / 0.5556 GB, free: 154.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001219/0.752, allocations: 66.06 kB / 0.5557 GB, free: 154.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005883/0.7579, allocations: 3.631 MB / 0.5592 GB, free: 153.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.7579, allocations: 0 / 0.5592 GB, free: 153.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002835/0.7608, allocations: 1.087 MB / 0.5603 GB, free: 153 MB / 478.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.001794/0.7626, allocations: 1.188 MB / 0.5614 GB, free: 152.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002523/0.7651, allocations: 1.439 MB / 0.5629 GB, free: 152.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.7651, allocations: 0 / 0.5629 GB, free: 152.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.7662, allocations: 0.7726 MB / 0.5636 GB, free: 151.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00323/0.7694, allocations: 0.99 MB / 0.5646 GB, free: 151.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009782/0.7792, allocations: 8.132 MB / 0.5725 GB, free: 147.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001493/0.7807, allocations: 2.604 MB / 0.5751 GB, free: 146.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001762/0.7825, allocations: 0.6875 MB / 0.5757 GB, free: 145.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003177/0.7828, allocations: 283.4 kB / 0.576 GB, free: 145.3 MB / 478.1 MB Notification: Performance of SimCode: time 9.21e-07/0.7828, allocations: 3.5 kB / 0.576 GB, free: 145.3 MB / 478.1 MB Notification: Performance of Templates: time 0.07813/0.861, allocations: 55.61 MB / 0.6303 GB, free: 90.13 MB / 478.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches