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.0008819/0.0008819, allocations: 93.88 kB / 16.3 MB, free: 6.457 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.0009049/0.000905, allocations: 183.5 kB / 17.2 MB, free: 6.34 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.298/1.298, allocations: 223.2 MB / 241.1 MB, free: 5.371 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002342/0.0002342, allocations: 10.03 kB / 300.7 MB, free: 6.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08184/0.08209, allocations: 50.43 MB / 351.1 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.0174/0.09952, allocations: 21.37 MB / 372.5 MB, free: 6.266 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02522/0.1248, allocations: 19.65 MB / 392.2 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002944/0.1278, allocations: 59.62 kB / 392.2 MB, free: 2.504 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003563/0.1313, allocations: 1.313 MB / 393.5 MB, free: 1.184 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008155/0.1395, allocations: 3.007 MB / 396.5 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003895/0.1434, allocations: 1.317 MB / 397.9 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0191/0.1625, allocations: 12.01 MB / 409.9 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001257/0.1638, allocations: 0.795 MB / 410.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002395/0.1662, allocations: 1.8 MB / 412.5 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001959/0.1682, allocations: 1.93 MB / 414.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002377/0.1685, allocations: 76 kB / 414.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00385/0.1723, allocations: 1.464 MB / 415.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005173/0.1728, allocations: 0.5001 MB / 416.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001159/0.174, allocations: 1.17 MB / 417.6 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00422/0.1782, allocations: 4.615 MB / 422.2 MB, free: 4.395 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1783, allocations: 4 kB / 422.2 MB, free: 4.391 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1783, allocations: 0 / 422.2 MB, free: 4.391 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001832/0.1785, allocations: 0 / 422.2 MB, free: 4.391 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.1574/0.3359, allocations: 5.829 MB / 428 MB, free: 44.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.3359, allocations: 11.53 kB / 428.1 MB, free: 44.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009542/0.3369, allocations: 0.7401 MB / 428.8 MB, free: 43.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007414/0.3443, allocations: 4.274 MB / 433.1 MB, free: 42.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.812e-05/0.3444, allocations: 67.73 kB / 433.1 MB, free: 42.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000227/0.3447, allocations: 105.7 kB / 433.2 MB, free: 42.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002328/0.347, allocations: 1.311 MB / 434.6 MB, free: 42.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.347, allocations: 1.094 kB / 434.6 MB, free: 42.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001122/0.3471, allocations: 38.66 kB / 434.6 MB, free: 42.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.526e-05/0.3472, allocations: 41.23 kB / 434.6 MB, free: 42.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002441/0.3496, allocations: 1.519 MB / 436.1 MB, free: 42.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008851/0.3585, allocations: 5.615 MB / 441.8 MB, free: 42.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001526/0.36, allocations: 1.028 MB / 442.8 MB, free: 42.01 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0459/0.406, allocations: 60.12 MB / 0.4911 GB, free: 2.285 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009772/0.407, allocations: 0.571 MB / 0.4917 GB, free: 1.812 MB / 366.1 MB Notification: Performance of pre-optimization done (n=85): time 3.046e-06/0.407, allocations: 0 / 0.4917 GB, free: 1.812 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.004176/0.4112, allocations: 2.567 MB / 0.4942 GB, free: 15.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.067e-05/0.4113, allocations: 67.97 kB / 0.4943 GB, free: 15.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00756/0.4188, allocations: 5.519 MB / 0.4996 GB, free: 9.652 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002018/0.4191, allocations: 45.69 kB / 0.4997 GB, free: 9.602 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002524/0.4216, allocations: 2.942 MB / 0.5026 GB, free: 6.648 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000385/0.422, allocations: 293.8 kB / 0.5028 GB, free: 6.367 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.46e-05/0.4221, allocations: 36 kB / 0.5029 GB, free: 6.332 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.4222, allocations: 365.9 kB / 0.5032 GB, free: 5.969 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008506/0.4231, allocations: 411.8 kB / 0.5036 GB, free: 5.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001287/0.4244, allocations: 1.105 MB / 0.5047 GB, free: 4.148 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001025/0.4254, allocations: 0.5718 MB / 0.5053 GB, free: 3.605 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.267e-05/0.4255, allocations: 12 kB / 0.5053 GB, free: 3.594 MB / 382.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003672/0.4291, allocations: 2.225 MB / 0.5074 GB, free: 1.496 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.876e-05/0.4292, allocations: 16 kB / 0.5075 GB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002065/0.4294, allocations: 160 kB / 0.5076 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.759e-05/0.4294, allocations: 36 kB / 0.5076 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.4306, allocations: 371.9 kB / 0.508 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.715e-05/0.4307, allocations: 48.78 kB / 0.508 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001828/0.4325, allocations: 203.3 kB / 0.5082 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001786/0.4327, allocations: 128 kB / 0.5084 GB, free: 0.5938 MB / 382.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 ($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.001325/0.434, allocations: 0.7117 MB / 0.5091 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007653/0.4348, allocations: 0.7154 MB / 0.5098 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005106/0.4399, allocations: 2.233 MB / 0.5119 GB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.4399, allocations: 15.94 kB / 0.512 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.44, allocations: 0 / 0.512 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/0.44, allocations: 3.984 kB / 0.512 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005862/0.4458, allocations: 3.626 MB / 0.5155 GB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001895/0.4461, allocations: 140 kB / 0.5156 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007885/0.4469, allocations: 168.2 kB / 0.5158 GB, free: 8.977 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.356e-06/0.4469, allocations: 4 kB / 0.5158 GB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.314e-05/0.447, allocations: 56 kB / 0.5158 GB, free: 8.918 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.184e-06/0.447, allocations: 4 kB / 0.5159 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.447, allocations: 3.984 kB / 0.5159 GB, free: 8.91 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003652/0.4507, allocations: 2.312 MB / 0.5181 GB, free: 6.555 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001568/0.4522, allocations: 0.8006 MB / 0.5189 GB, free: 5.727 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000564/0.4528, allocations: 17.67 kB / 0.5189 GB, free: 5.711 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00108/0.4539, allocations: 50.98 kB / 0.519 GB, free: 5.664 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001984/0.4541, allocations: 100.5 kB / 0.5191 GB, free: 5.566 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001191/0.4542, allocations: 71.98 kB / 0.5191 GB, free: 5.496 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00455/0.4588, allocations: 3.534 MB / 0.5226 GB, free: 1.992 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4588, allocations: 0 / 0.5226 GB, free: 1.992 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002244/0.461, allocations: 1.072 MB / 0.5236 GB, free: 0.9609 MB / 398.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 (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.001312/0.4624, allocations: 1.094 MB / 0.5247 GB, free: 132 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002422/0.4648, allocations: 1.462 MB / 0.5261 GB, free: 14.69 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.4648, allocations: 0 / 0.5261 GB, free: 14.69 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.4659, allocations: 0.7913 MB / 0.5269 GB, free: 13.87 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004302/0.4702, allocations: 1.127 MB / 0.528 GB, free: 12.74 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01092/0.4812, allocations: 9.179 MB / 0.537 GB, free: 3.527 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001811/0.483, allocations: 2.705 MB / 0.5396 GB, free: 0.793 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00244/0.4855, allocations: 0.6807 MB / 0.5403 GB, free: 112 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003917/0.4859, allocations: 287.5 kB / 0.5405 GB, free: 15.82 MB / 430.1 MB Notification: Performance of SimCode: time 1.723e-06/0.4859, allocations: 4 kB / 0.5405 GB, free: 15.82 MB / 430.1 MB Notification: Performance of Templates: time 0.2254/0.7113, allocations: 50.43 MB / 0.5898 GB, free: 165.2 MB / 462.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 -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/jenkins/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