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/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_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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009716/0.0009716, allocations: 168.9 kB / 8.47 MB, free: 1.852 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.105/1.105, allocations: 205.2 MB / 214.1 MB, free: 5.094 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008125/0.0008124, allocations: 87.31 kB / 262.1 MB, free: 5.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.761e-06/5.781e-06, allocations: 4 kB / 315 MB, free: 41.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07016/0.07018, allocations: 47.56 MB / 362.5 MB, free: 9.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.231/0.3012, allocations: 101.6 MB / 464.2 MB, free: 5.312 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001681/0.3014, allocations: 72.31 kB / 464.2 MB, free: 5.305 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.5788/0.8803, allocations: 187.9 MB / 0.6368 GB, free: 84.4 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002534/0.8806, allocations: 88.06 kB / 0.6369 GB, free: 84.4 MB / 426.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.00861/0.8892, allocations: 4.765 MB / 0.6416 GB, free: 81.57 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.8892, allocations: 7.688 kB / 0.6416 GB, free: 81.57 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001205/0.8905, allocations: 0.7519 MB / 0.6423 GB, free: 81.18 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007921/0.8984, allocations: 4.524 MB / 0.6467 GB, free: 79.24 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.07e-05/0.8985, allocations: 28.25 kB / 0.6467 GB, free: 79.24 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002817/0.8988, allocations: 67.16 kB / 0.6468 GB, free: 79.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002414/0.9012, allocations: 1.315 MB / 0.6481 GB, free: 78.83 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001844/0.903, allocations: 1.32 MB / 0.6494 GB, free: 78.25 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/0.9031, allocations: 4 kB / 0.6494 GB, free: 78.25 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001211/0.9032, allocations: 10.67 kB / 0.6494 GB, free: 78.24 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.512e-05/0.9033, allocations: 38.08 kB / 0.6494 GB, free: 78.23 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01156/0.9148, allocations: 5.69 MB / 0.655 GB, free: 75.71 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001008/0.9159, allocations: 0.6528 MB / 0.6556 GB, free: 75.39 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001388/0.9173, allocations: 1.051 MB / 0.6567 GB, free: 74.91 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06113/0.9784, allocations: 71.62 MB / 0.7266 GB, free: 14.91 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007796/0.9793, allocations: 479.5 kB / 0.727 GB, free: 14.43 MB / 442.7 MB Notification: Performance of pre-optimization done (n=85): time 4.739e-06/0.9793, allocations: 8 kB / 0.7271 GB, free: 14.42 MB / 442.7 MB Notification: Performance of matching and sorting (n=85): time 0.003178/0.9825, allocations: 1.419 MB / 0.7284 GB, free: 12.99 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00024/0.9827, allocations: 487.2 kB / 0.7289 GB, free: 12.4 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007761/0.9905, allocations: 4.404 MB / 0.7332 GB, free: 8.035 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002645/0.9908, allocations: 25.7 kB / 0.7332 GB, free: 8.004 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001013/0.9918, allocations: 1.181 MB / 0.7344 GB, free: 6.809 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003925/0.9922, allocations: 291.1 kB / 0.7347 GB, free: 6.523 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.618e-05/0.9923, allocations: 0 / 0.7347 GB, free: 6.523 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.9925, allocations: 365.9 kB / 0.735 GB, free: 6.16 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005762/0.9931, allocations: 319.9 kB / 0.7353 GB, free: 5.848 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001078/0.9942, allocations: 1.09 MB / 0.7364 GB, free: 4.379 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008896/0.9951, allocations: 491.3 kB / 0.7369 GB, free: 3.902 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.049e-05/0.9951, allocations: 8 kB / 0.7369 GB, free: 3.895 MB / 442.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004243/0.9993, allocations: 1.924 MB / 0.7387 GB, free: 1.965 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.762e-05/0.9994, allocations: 4 kB / 0.7387 GB, free: 1.961 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000273/0.9997, allocations: 164 kB / 0.7389 GB, free: 1.801 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.307e-05/0.9998, allocations: 36 kB / 0.7389 GB, free: 1.766 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001303/1.001, allocations: 383.9 kB / 0.7393 GB, free: 1.391 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.311e-05/1.001, allocations: 55.78 kB / 0.7394 GB, free: 1.336 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004102/1.005, allocations: 174.2 kB / 0.7395 GB, free: 1.164 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003123/1.006, allocations: 120 kB / 0.7396 GB, free: 1.047 MB / 442.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 () * 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.0003931/1.006, allocations: 176.3 kB / 0.7398 GB, free: 0.8672 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001706/1.008, allocations: 0.7256 MB / 0.7405 GB, free: 136 kB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1744/1.182, allocations: 2.618 MB / 0.7431 GB, free: 139.4 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.336e-05/1.182, allocations: 10.34 kB / 0.7431 GB, free: 139.4 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/1.182, allocations: 0 / 0.7431 GB, free: 139.4 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/1.182, allocations: 3.375 kB / 0.7431 GB, free: 139.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008294/1.191, allocations: 3.553 MB / 0.7465 GB, free: 139 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002038/1.191, allocations: 141.4 kB / 0.7467 GB, free: 139 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008758/1.192, allocations: 163.9 kB / 0.7468 GB, free: 139 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.174e-05/1.192, allocations: 3.969 kB / 0.7468 GB, free: 139 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001071/1.192, allocations: 54.75 kB / 0.7469 GB, free: 139 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.641e-06/1.192, allocations: 6.344 kB / 0.7469 GB, free: 139 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/1.192, allocations: 5.656 kB / 0.7469 GB, free: 139 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002919/1.195, allocations: 2.07 MB / 0.7489 GB, free: 138.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002132/1.197, allocations: 0.9364 MB / 0.7498 GB, free: 137.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00131/1.198, allocations: 3.312 kB / 0.7498 GB, free: 137.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001687/1.2, allocations: 49.83 kB / 0.7499 GB, free: 137.9 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002378/1.2, allocations: 92.64 kB / 0.75 GB, free: 137.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001391/1.2, allocations: 69.7 kB / 0.75 GB, free: 137.9 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.007004/1.207, allocations: 3.254 MB / 0.7532 GB, free: 137.6 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003794/1.211, allocations: 1.123 MB / 0.7543 GB, free: 137.6 MB / 442.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) * 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.002156/1.213, allocations: 1.291 MB / 0.7556 GB, free: 137.5 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00182/1.215, allocations: 1.264 MB / 0.7568 GB, free: 137.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/1.215, allocations: 0 / 0.7568 GB, free: 137.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007764/1.216, allocations: 0.7089 MB / 0.7575 GB, free: 137 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004047/1.22, allocations: 0.9193 MB / 0.7584 GB, free: 137 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01167/1.232, allocations: 6.037 MB / 0.7643 GB, free: 135.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002576/1.234, allocations: 3.035 MB / 0.7673 GB, free: 134.4 MB / 442.7 MB Notification: Performance of SimCode: time 1.022e-06/1.234, allocations: 0 / 0.7673 GB, free: 134.4 MB / 442.7 MB Notification: Performance of Templates: time 0.09549/1.33, allocations: 52.48 MB / 0.8185 GB, free: 118.2 MB / 442.7 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","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches