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.002472/0.002479, allocations: 188.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.769/3.769, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.00181/0.00181, allocations: 90.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000643/0.0006434, allocations: 16 kB / 327 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2833/0.284, allocations: 47.58 MB / 374.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.4359/0.72, allocations: 20.3 MB / 394.8 MB, free: 8.488 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.05841/0.7785, allocations: 18.76 MB / 413.6 MB, free: 15.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008845/0.7874, allocations: 58.72 kB / 413.7 MB, free: 15.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009741/0.7972, allocations: 1.276 MB / 414.9 MB, free: 15.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02449/0.8218, allocations: 2.986 MB / 417.9 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01188/0.8337, allocations: 1.277 MB / 419.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.05327/0.8871, allocations: 11.9 MB / 431.1 MB, free: 4.461 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004325/0.8915, allocations: 0.7988 MB / 431.9 MB, free: 3.629 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006621/0.8982, allocations: 1.555 MB / 433.5 MB, free: 2.066 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007161/0.9054, allocations: 1.871 MB / 435.3 MB, free: 188 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00153/0.907, allocations: 80 kB / 435.4 MB, free: 108 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01318/0.9202, allocations: 1.249 MB / 436.7 MB, free: 14.86 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002102/0.9224, allocations: 0.504 MB / 437.2 MB, free: 14.35 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004408/0.9269, allocations: 1.182 MB / 438.3 MB, free: 13.16 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01559/0.9426, allocations: 4.647 MB / 443 MB, free: 8.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.9427, allocations: 3.938 kB / 443 MB, free: 8.496 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.907e-06/0.9427, allocations: 0 / 443 MB, free: 8.496 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000335/0.943, allocations: 0 / 443 MB, free: 8.496 MB / 314.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.02319/0.9662, allocations: 5.874 MB / 448.9 MB, free: 2.531 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.602e-05/0.9663, allocations: 8.031 kB / 448.9 MB, free: 2.523 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00296/0.9693, allocations: 0.7457 MB / 449.6 MB, free: 1.77 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02001/0.9894, allocations: 4.317 MB / 453.9 MB, free: 13.37 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002275/0.9897, allocations: 66 kB / 454 MB, free: 13.3 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000848/0.9906, allocations: 95.91 kB / 454.1 MB, free: 13.21 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007345/0.9979, allocations: 1.317 MB / 455.4 MB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.2e-05/0.9981, allocations: 0 / 455.4 MB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004357/0.9985, allocations: 35.98 kB / 455.4 MB, free: 11.84 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.338e-05/0.9987, allocations: 39.98 kB / 455.5 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008077/1.007, allocations: 1.523 MB / 457 MB, free: 10.28 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02796/1.035, allocations: 5.634 MB / 462.6 MB, free: 4.547 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005303/1.04, allocations: 1.028 MB / 463.7 MB, free: 3.508 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1512/1.191, allocations: 60.24 MB / 0.5116 GB, free: 15.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003037/1.194, allocations: 0.5755 MB / 0.5122 GB, free: 14.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=85): time 7.494e-06/1.195, allocations: 0 / 0.5122 GB, free: 14.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=85): time 0.01179/1.206, allocations: 2.575 MB / 0.5147 GB, free: 11.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.716e-05/1.207, allocations: 59.97 kB / 0.5148 GB, free: 11.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02226/1.229, allocations: 5.557 MB / 0.5202 GB, free: 6.172 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004101/1.229, allocations: 37.7 kB / 0.5202 GB, free: 6.129 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005762/1.235, allocations: 2.367 MB / 0.5225 GB, free: 3.75 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009013/1.236, allocations: 299.8 kB / 0.5228 GB, free: 3.453 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002529/1.236, allocations: 28 kB / 0.5228 GB, free: 3.426 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003559/1.237, allocations: 378.7 kB / 0.5232 GB, free: 3.047 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002846/1.24, allocations: 415.8 kB / 0.5236 GB, free: 2.641 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003858/1.244, allocations: 1.103 MB / 0.5247 GB, free: 1.203 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003324/1.247, allocations: 0.5686 MB / 0.5252 GB, free: 0.6328 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.354e-05/1.247, allocations: 8 kB / 0.5252 GB, free: 0.625 MB / 410.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.009492/1.257, allocations: 1.632 MB / 0.5268 GB, free: 14.98 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.47e-05/1.257, allocations: 16 kB / 0.5269 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006643/1.257, allocations: 160 kB / 0.527 GB, free: 14.81 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001263/1.258, allocations: 39.94 kB / 0.527 GB, free: 14.78 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003683/1.261, allocations: 371.4 kB / 0.5274 GB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001341/1.261, allocations: 51.78 kB / 0.5274 GB, free: 14.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005708/1.267, allocations: 198.2 kB / 0.5276 GB, free: 14.17 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007087/1.268, allocations: 124 kB / 0.5278 GB, free: 14.05 MB / 426.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.003955/1.272, allocations: 0.7237 MB / 0.5285 GB, free: 13.31 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006697/1.279, allocations: 0.714 MB / 0.5292 GB, free: 12.59 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02437/1.303, allocations: 2.245 MB / 0.5313 GB, free: 10.34 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.752e-05/1.303, allocations: 8 kB / 0.5314 GB, free: 10.33 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-05/1.303, allocations: 3.938 kB / 0.5314 GB, free: 10.32 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-05/1.303, allocations: 3.984 kB / 0.5314 GB, free: 10.32 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01842/1.322, allocations: 3.662 MB / 0.5349 GB, free: 6.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0005866/1.322, allocations: 140 kB / 0.5351 GB, free: 6.453 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002341/1.325, allocations: 167.8 kB / 0.5352 GB, free: 6.289 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.754e-05/1.325, allocations: 4 kB / 0.5352 GB, free: 6.285 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004382/1.325, allocations: 59.98 kB / 0.5353 GB, free: 6.227 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.196e-05/1.325, allocations: 0 / 0.5353 GB, free: 6.227 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.135e-05/1.325, allocations: 7.953 kB / 0.5353 GB, free: 6.219 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01112/1.336, allocations: 2.31 MB / 0.5376 GB, free: 3.859 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003913/1.34, allocations: 0.8161 MB / 0.5384 GB, free: 3.016 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002074/1.343, allocations: 12 kB / 0.5384 GB, free: 3.004 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004468/1.347, allocations: 39.97 kB / 0.5384 GB, free: 2.965 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000807/1.348, allocations: 100.5 kB / 0.5385 GB, free: 2.867 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004413/1.349, allocations: 71.98 kB / 0.5386 GB, free: 2.797 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.4488/1.797, allocations: 3.559 MB / 0.542 GB, free: 147.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.292e-06/1.797, allocations: 4.344 kB / 0.542 GB, free: 147.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006947/1.804, allocations: 1.082 MB / 0.5431 GB, free: 147.5 MB / 426.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.004501/1.809, allocations: 1.103 MB / 0.5442 GB, free: 147.4 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007141/1.816, allocations: 1.466 MB / 0.5456 GB, free: 147.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.242e-05/1.816, allocations: 3.844 kB / 0.5456 GB, free: 147.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003529/1.82, allocations: 0.7883 MB / 0.5464 GB, free: 146.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009645/1.829, allocations: 0.933 MB / 0.5473 GB, free: 146.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03274/1.862, allocations: 9.328 MB / 0.5564 GB, free: 141.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007981/1.87, allocations: 2.724 MB / 0.5591 GB, free: 140.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001392/1.872, allocations: 293.6 kB / 0.5593 GB, free: 140.5 MB / 426.7 MB Notification: Performance of SimCode: time 3.467e-06/1.872, allocations: 0 / 0.5593 GB, free: 140.5 MB / 426.7 MB Notification: Performance of Templates: time 0.1948/2.067, allocations: 67.8 MB / 0.6256 GB, free: 81 MB / 426.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/jenkins1/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