Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009868/0.0009868, allocations: 176.1 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.395/1.395, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001043/0.001043, allocations: 92.67 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004601/0.0004602, allocations: 11.98 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2686, allocations: 47.57 MB / 375.1 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01328/0.2819, allocations: 22.5 MB / 397.6 MB, free: 26.17 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02075/0.3027, allocations: 19.5 MB / 417.1 MB, free: 6.605 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005599/0.3083, allocations: 59.62 kB / 417.1 MB, free: 6.547 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005342/0.3137, allocations: 1.235 MB / 418.4 MB, free: 5.301 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0123/0.3261, allocations: 2.584 MB / 421 MB, free: 2.699 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005118/0.3312, allocations: 1.202 MB / 422.2 MB, free: 1.492 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01939/0.3507, allocations: 11.55 MB / 433.7 MB, free: 5.906 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002025/0.3528, allocations: 0.8336 MB / 434.5 MB, free: 5.035 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002449/0.3552, allocations: 1.601 MB / 436.1 MB, free: 3.426 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001863/0.3571, allocations: 1.879 MB / 438 MB, free: 1.535 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003141/0.3574, allocations: 76 kB / 438.1 MB, free: 1.461 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00342/0.3609, allocations: 1.109 MB / 439.2 MB, free: 360 kB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005687/0.3615, allocations: 0.5194 MB / 439.7 MB, free: 15.83 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003312/0.3648, allocations: 2.452 MB / 442.2 MB, free: 13.35 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006256/0.3711, allocations: 4.802 MB / 447 MB, free: 8.535 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.157e-06/0.3711, allocations: 0 / 447 MB, free: 8.535 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.3711, allocations: 0 / 447 MB, free: 8.535 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002524/0.3714, allocations: 4 kB / 447 MB, free: 8.531 MB / 330.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.01026/0.3816, allocations: 5.823 MB / 452.8 MB, free: 2.617 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.3817, allocations: 8.031 kB / 452.8 MB, free: 2.609 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001344/0.3831, allocations: 0.7448 MB / 453.6 MB, free: 1.855 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008118/0.3912, allocations: 4.672 MB / 458.2 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.957e-05/0.3913, allocations: 66 kB / 458.3 MB, free: 13.03 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002786/0.3916, allocations: 103.8 kB / 458.4 MB, free: 12.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002351/0.394, allocations: 1.313 MB / 459.7 MB, free: 11.6 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.48e-05/0.394, allocations: 0 / 459.7 MB, free: 11.6 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001166/0.3941, allocations: 36 kB / 459.7 MB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.95e-05/0.3942, allocations: 47.97 kB / 459.8 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002473/0.3967, allocations: 1.523 MB / 461.3 MB, free: 9.992 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01008/0.4068, allocations: 5.671 MB / 467 MB, free: 4.227 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001567/0.4084, allocations: 1.02 MB / 468 MB, free: 3.195 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001541/0.4099, allocations: 1.247 MB / 469.3 MB, free: 1.953 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.232/0.6419, allocations: 59.97 MB / 0.5168 GB, free: 114.4 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001037/0.643, allocations: 0.5748 MB / 0.5174 GB, free: 114.1 MB / 394.7 MB Notification: Performance of pre-optimization done (n=85): time 3.376e-06/0.643, allocations: 0 / 0.5174 GB, free: 114.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=85): time 0.003762/0.6468, allocations: 1.947 MB / 0.5193 GB, free: 113.6 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.384e-05/0.6468, allocations: 60.91 kB / 0.5193 GB, free: 113.6 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006053/0.6529, allocations: 5.561 MB / 0.5248 GB, free: 110.7 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.888e-05/0.653, allocations: 41.67 kB / 0.5248 GB, free: 110.7 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00158/0.6546, allocations: 2.942 MB / 0.5277 GB, free: 107.9 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001859/0.6548, allocations: 289.5 kB / 0.528 GB, free: 107.6 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.694e-05/0.6549, allocations: 31.47 kB / 0.528 GB, free: 107.6 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.268e-05/0.655, allocations: 369.9 kB / 0.5283 GB, free: 107.2 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007075/0.6557, allocations: 415.1 kB / 0.5287 GB, free: 106.8 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000891/0.6566, allocations: 1.108 MB / 0.5298 GB, free: 105.4 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001718/0.6583, allocations: 1.648 MB / 0.5314 GB, free: 103.5 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.478e-06/0.6583, allocations: 11.83 kB / 0.5314 GB, free: 103.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002706/0.661, allocations: 2.243 MB / 0.5336 GB, free: 101.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.6611, allocations: 17.81 kB / 0.5336 GB, free: 101.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001542/0.6612, allocations: 164.5 kB / 0.5338 GB, free: 101.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.902e-05/0.6613, allocations: 39.94 kB / 0.5338 GB, free: 101 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.6623, allocations: 371 kB / 0.5342 GB, free: 100.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.69e-05/0.6624, allocations: 52.73 kB / 0.5342 GB, free: 100.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001462/0.6638, allocations: 190.2 kB / 0.5344 GB, free: 100.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00015/0.664, allocations: 135.5 kB / 0.5346 GB, free: 100.3 MB / 394.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.001095/0.6651, allocations: 0.7144 MB / 0.5353 GB, free: 99.58 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004764/0.6656, allocations: 0.7217 MB / 0.536 GB, free: 98.85 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004325/0.6699, allocations: 2.207 MB / 0.5381 GB, free: 96.71 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.6699, allocations: 8 kB / 0.5381 GB, free: 96.71 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.67, allocations: 3.938 kB / 0.5381 GB, free: 96.7 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.67, allocations: 3.984 kB / 0.5381 GB, free: 96.7 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004177/0.6741, allocations: 3.664 MB / 0.5417 GB, free: 93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000131/0.6743, allocations: 143.5 kB / 0.5418 GB, free: 92.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006493/0.675, allocations: 163.9 kB / 0.542 GB, free: 92.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.162e-06/0.675, allocations: 4 kB / 0.542 GB, free: 92.7 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.793e-05/0.675, allocations: 60 kB / 0.5421 GB, free: 92.64 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.938e-06/0.6751, allocations: 0 / 0.5421 GB, free: 92.64 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.6751, allocations: 4 kB / 0.5421 GB, free: 92.63 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002555/0.6776, allocations: 2.222 MB / 0.5442 GB, free: 90.38 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009532/0.6786, allocations: 0.8201 MB / 0.545 GB, free: 89.53 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004517/0.6791, allocations: 16 kB / 0.5451 GB, free: 89.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001/0.6801, allocations: 43.95 kB / 0.5451 GB, free: 89.47 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001737/0.6802, allocations: 96.48 kB / 0.5452 GB, free: 89.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.887e-05/0.6803, allocations: 75.98 kB / 0.5453 GB, free: 89.3 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003693/0.684, allocations: 3.559 MB / 0.5487 GB, free: 85.78 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6841, allocations: 0 / 0.5487 GB, free: 85.78 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002081/0.6861, allocations: 1.08 MB / 0.5498 GB, free: 84.74 MB / 394.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.001431/0.6876, allocations: 1.186 MB / 0.5509 GB, free: 83.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002037/0.6896, allocations: 1.475 MB / 0.5524 GB, free: 82.29 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.6896, allocations: 4 kB / 0.5524 GB, free: 82.28 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008839/0.6905, allocations: 0.7942 MB / 0.5532 GB, free: 81.44 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003515/0.6941, allocations: 0.9244 MB / 0.5541 GB, free: 80.51 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01032/0.7044, allocations: 9.339 MB / 0.5632 GB, free: 71.13 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001438/0.7059, allocations: 2.6 MB / 0.5657 GB, free: 68.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006225/0.7065, allocations: 295.4 kB / 0.566 GB, free: 68.21 MB / 394.7 MB Notification: Performance of SimCode: time 8.12e-07/0.7065, allocations: 0 / 0.566 GB, free: 68.21 MB / 394.7 MB Notification: Performance of Templates: time 0.08486/0.7914, allocations: 69.89 MB / 0.6343 GB, free: 14.23 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches