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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.000793/0.0007931, allocations: 178.8 kB / 17.04 MB, free: 5.113 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.162/1.162, allocations: 223.3 MB / 241 MB, free: 11.82 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007187/0.0007187, allocations: 96.27 kB / 292.2 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002062/0.0002063, allocations: 11.88 kB / 351.8 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1762/0.1764, allocations: 50.4 MB / 402.2 MB, free: 32.6 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01244/0.1889, allocations: 23.74 MB / 425.9 MB, free: 8.793 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02032/0.2092, allocations: 20.51 MB / 446.4 MB, free: 4.23 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003185/0.2124, allocations: 55.69 kB / 446.5 MB, free: 4.176 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003093/0.2155, allocations: 1.278 MB / 447.8 MB, free: 2.891 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007718/0.2233, allocations: 2.627 MB / 450.4 MB, free: 252 kB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00372/0.227, allocations: 1.245 MB / 451.7 MB, free: 15 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0143/0.2413, allocations: 11.82 MB / 463.5 MB, free: 3.133 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001507/0.2428, allocations: 0.7872 MB / 464.3 MB, free: 2.305 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002429/0.2453, allocations: 1.815 MB / 466.1 MB, free: 492 kB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002567/0.2479, allocations: 1.918 MB / 468 MB, free: 14.55 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004/0.2483, allocations: 76 kB / 468.1 MB, free: 14.48 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003569/0.2518, allocations: 1.365 MB / 469.4 MB, free: 13.11 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003922/0.2523, allocations: 0.5 MB / 469.9 MB, free: 12.61 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001162/0.2534, allocations: 1.17 MB / 471.1 MB, free: 11.43 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003518/0.2569, allocations: 4.782 MB / 475.9 MB, free: 6.629 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.257, allocations: 7.875 kB / 475.9 MB, free: 6.621 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.257, allocations: 4 kB / 475.9 MB, free: 6.617 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.396e-05/0.257, allocations: 0 / 475.9 MB, free: 6.617 MB / 346.7 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.00735/0.2644, allocations: 5.855 MB / 481.8 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.2644, allocations: 16.02 kB / 481.8 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006/0.265, allocations: 0.7372 MB / 482.5 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005505/0.2706, allocations: 4.304 MB / 486.8 MB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.288e-05/0.2706, allocations: 70 kB / 486.9 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000192/0.2708, allocations: 103.8 kB / 487 MB, free: 11.35 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002073/0.2729, allocations: 1.309 MB / 488.3 MB, free: 10.03 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.2729, allocations: 0 / 488.3 MB, free: 10.03 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001105/0.2731, allocations: 39.98 kB / 488.3 MB, free: 9.988 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.004e-05/0.2731, allocations: 35.98 kB / 488.4 MB, free: 9.953 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002318/0.2754, allocations: 1.523 MB / 489.9 MB, free: 8.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007664/0.2831, allocations: 5.656 MB / 495.5 MB, free: 2.688 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001541/0.2846, allocations: 1.026 MB / 496.6 MB, free: 1.652 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001493/0.2861, allocations: 1.243 MB / 497.8 MB, free: 420 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1799/0.4661, allocations: 59.84 MB / 0.5446 GB, free: 55.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000805/0.4669, allocations: 0.5793 MB / 0.5452 GB, free: 54.86 MB / 378.7 MB Notification: Performance of pre-optimization done (n=85): time 2.574e-06/0.4669, allocations: 0 / 0.5452 GB, free: 54.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=85): time 0.002627/0.4695, allocations: 1.93 MB / 0.547 GB, free: 52.96 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.477e-05/0.4696, allocations: 67.97 kB / 0.5471 GB, free: 52.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004501/0.4741, allocations: 5.522 MB / 0.5525 GB, free: 47.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.91e-05/0.4742, allocations: 37.7 kB / 0.5525 GB, free: 47.36 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001548/0.4757, allocations: 2.936 MB / 0.5554 GB, free: 44.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001784/0.4759, allocations: 305.5 kB / 0.5557 GB, free: 44.14 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.52e-05/0.476, allocations: 32 kB / 0.5557 GB, free: 44.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.066e-05/0.4761, allocations: 365.5 kB / 0.5561 GB, free: 43.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007082/0.4768, allocations: 415.1 kB / 0.5565 GB, free: 43.35 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000892/0.4777, allocations: 1.115 MB / 0.5576 GB, free: 41.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008201/0.4785, allocations: 0.5687 MB / 0.5581 GB, free: 41.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.4785, allocations: 4 kB / 0.5581 GB, free: 41.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002641/0.4812, allocations: 2.238 MB / 0.5603 GB, free: 39.17 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.4812, allocations: 16 kB / 0.5603 GB, free: 39.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001329/0.4813, allocations: 163.8 kB / 0.5605 GB, free: 39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.016e-05/0.4814, allocations: 36 kB / 0.5605 GB, free: 38.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/0.4824, allocations: 371.3 kB / 0.5609 GB, free: 38.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.498e-05/0.4825, allocations: 47.86 kB / 0.5609 GB, free: 38.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001454/0.4839, allocations: 194.2 kB / 0.5611 GB, free: 38.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001354/0.4841, allocations: 124 kB / 0.5612 GB, free: 38.25 MB / 378.7 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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001025/0.4851, allocations: 0.713 MB / 0.5619 GB, free: 37.53 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004388/0.4855, allocations: 0.714 MB / 0.5626 GB, free: 36.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004003/0.4895, allocations: 2.209 MB / 0.5648 GB, free: 34.64 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.4896, allocations: 8 kB / 0.5648 GB, free: 34.63 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.4896, allocations: 0 / 0.5648 GB, free: 34.63 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.4896, allocations: 3.984 kB / 0.5648 GB, free: 34.62 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003912/0.4935, allocations: 3.655 MB / 0.5683 GB, free: 30.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001123/0.4936, allocations: 136 kB / 0.5685 GB, free: 30.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006602/0.4943, allocations: 163.8 kB / 0.5686 GB, free: 30.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.4943, allocations: 4 kB / 0.5686 GB, free: 30.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.273e-05/0.4944, allocations: 67.94 kB / 0.5687 GB, free: 30.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.4944, allocations: 0 / 0.5687 GB, free: 30.56 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.4944, allocations: 8 kB / 0.5687 GB, free: 30.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002488/0.4969, allocations: 2.207 MB / 0.5709 GB, free: 28.31 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009243/0.4978, allocations: 0.8163 MB / 0.5717 GB, free: 27.47 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004299/0.4983, allocations: 12 kB / 0.5717 GB, free: 27.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001023/0.4993, allocations: 47.92 kB / 0.5717 GB, free: 27.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001466/0.4995, allocations: 108.4 kB / 0.5718 GB, free: 27.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.435e-05/0.4996, allocations: 67.98 kB / 0.5719 GB, free: 27.24 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003247/0.5028, allocations: 3.538 MB / 0.5753 GB, free: 23.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5028, allocations: 0 / 0.5753 GB, free: 23.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001719/0.5045, allocations: 1.072 MB / 0.5764 GB, free: 22.7 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001169/0.5057, allocations: 1.12 MB / 0.5775 GB, free: 21.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001854/0.5076, allocations: 1.463 MB / 0.5789 GB, free: 20.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.5076, allocations: 0 / 0.5789 GB, free: 20.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000849/0.5085, allocations: 0.7864 MB / 0.5797 GB, free: 19.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003614/0.5121, allocations: 1.14 MB / 0.5808 GB, free: 18.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008034/0.5201, allocations: 9.29 MB / 0.5899 GB, free: 9.027 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001192/0.5213, allocations: 2.592 MB / 0.5924 GB, free: 6.406 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004212/0.5218, allocations: 291.4 kB / 0.5927 GB, free: 6.121 MB / 378.7 MB Notification: Performance of SimCode: time 7.02e-07/0.5218, allocations: 0 / 0.5927 GB, free: 6.121 MB / 378.7 MB Notification: Performance of Templates: time 0.08886/0.6106, allocations: 69.67 MB / 0.6607 GB, free: 0.6602 MB / 442.7 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 -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","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches