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") [: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.00167/0.00167, allocations: 176.4 kB / 8.151 MB, free: 2.215 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.694/1.694, allocations: 205.2 MB / 213.8 MB, free: 13.88 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.001245/0.001245, allocations: 83.62 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.083e-05/1.137e-05, allocations: 4 kB / 314.3 MB, free: 9.062 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2484/0.2485, allocations: 47.55 MB / 361.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1547/0.4033, allocations: 101.6 MB / 463.5 MB, free: 396 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002915/0.4036, allocations: 76.45 kB / 463.5 MB, free: 320 kB / 346.7 MB Notification: Performance of FrontEnd: time 0.7557/1.159, allocations: 187.9 MB / 0.6361 GB, free: 1.227 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004618/1.16, allocations: 88 kB / 0.6362 GB, free: 1.141 MB / 394.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.01335/1.173, allocations: 4.757 MB / 0.6409 GB, free: 12.32 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/1.173, allocations: 8.031 kB / 0.6409 GB, free: 12.31 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001946/1.175, allocations: 0.7564 MB / 0.6416 GB, free: 11.54 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01483/1.19, allocations: 4.524 MB / 0.646 GB, free: 6.934 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.72e-05/1.19, allocations: 32 kB / 0.6461 GB, free: 6.902 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004531/1.191, allocations: 71.8 kB / 0.6461 GB, free: 6.832 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00387/1.195, allocations: 1.309 MB / 0.6474 GB, free: 5.52 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003652/1.198, allocations: 1.328 MB / 0.6487 GB, free: 4.117 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.353e-05/1.198, allocations: 3.984 kB / 0.6487 GB, free: 4.113 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002004/1.199, allocations: 4 kB / 0.6487 GB, free: 4.109 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.074e-05/1.199, allocations: 35.98 kB / 0.6488 GB, free: 4.074 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1817/1.38, allocations: 5.689 MB / 0.6543 GB, free: 93.99 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002426/1.383, allocations: 0.6542 MB / 0.655 GB, free: 93.97 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003345/1.386, allocations: 1.046 MB / 0.656 GB, free: 93.96 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1431/1.529, allocations: 71.6 MB / 0.7259 GB, free: 41.64 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001504/1.531, allocations: 488.7 kB / 0.7264 GB, free: 41.59 MB / 410.7 MB Notification: Performance of pre-optimization done (n=85): time 6.802e-06/1.531, allocations: 0 / 0.7264 GB, free: 41.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=85): time 0.005355/1.536, allocations: 1.43 MB / 0.7278 GB, free: 41.18 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001736/1.537, allocations: 477.5 kB / 0.7282 GB, free: 40.62 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01607/1.553, allocations: 4.41 MB / 0.7325 GB, free: 40.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003535/1.553, allocations: 25.7 kB / 0.7325 GB, free: 40.17 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005903/1.554, allocations: 0.6029 MB / 0.7331 GB, free: 39.79 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006042/1.554, allocations: 292.4 kB / 0.7334 GB, free: 39.64 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001825/1.555, allocations: 0 / 0.7334 GB, free: 39.64 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000159/1.555, allocations: 371.2 kB / 0.7338 GB, free: 39.33 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001365/1.556, allocations: 311.8 kB / 0.7341 GB, free: 39.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001928/1.558, allocations: 1.086 MB / 0.7351 GB, free: 38.34 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002302/1.56, allocations: 491.5 kB / 0.7356 GB, free: 38.33 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.861e-05/1.561, allocations: 7.781 kB / 0.7356 GB, free: 38.33 MB / 410.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.006504/1.567, allocations: 1.317 MB / 0.7369 GB, free: 38.26 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.587e-05/1.567, allocations: 7.281 kB / 0.7369 GB, free: 38.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005708/1.568, allocations: 162.5 kB / 0.7371 GB, free: 38.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.839e-05/1.568, allocations: 38.88 kB / 0.7371 GB, free: 38.26 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00388/1.572, allocations: 374.9 kB / 0.7374 GB, free: 38.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.446e-05/1.572, allocations: 52.78 kB / 0.7375 GB, free: 38.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002527/1.574, allocations: 144.7 kB / 0.7376 GB, free: 38.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004402/1.575, allocations: 123.9 kB / 0.7378 GB, free: 38.23 MB / 410.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.0005618/1.576, allocations: 99.25 kB / 0.7378 GB, free: 38.19 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001934/1.578, allocations: 0.722 MB / 0.7386 GB, free: 37.82 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02002/1.598, allocations: 2.624 MB / 0.7411 GB, free: 37.68 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-05/1.598, allocations: 11.12 kB / 0.7411 GB, free: 37.68 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.181e-05/1.598, allocations: 0 / 0.7411 GB, free: 37.68 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.634e-05/1.598, allocations: 3.094 kB / 0.7411 GB, free: 37.68 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01366/1.611, allocations: 3.6 MB / 0.7446 GB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0004363/1.612, allocations: 142.3 kB / 0.7448 GB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002283/1.614, allocations: 169 kB / 0.7449 GB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.867e-05/1.614, allocations: 3.938 kB / 0.7449 GB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000272/1.615, allocations: 51.14 kB / 0.745 GB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.177e-05/1.615, allocations: 6.906 kB / 0.745 GB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/1.615, allocations: 0 / 0.745 GB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006786/1.621, allocations: 2.066 MB / 0.747 GB, free: 36.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004329/1.626, allocations: 0.9506 MB / 0.7479 GB, free: 36.04 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002818/1.629, allocations: 10.97 kB / 0.748 GB, free: 36.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005025/1.634, allocations: 45.91 kB / 0.748 GB, free: 36.04 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005779/1.634, allocations: 99.02 kB / 0.7481 GB, free: 36.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003174/1.635, allocations: 71.08 kB / 0.7482 GB, free: 36.04 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.01425/1.649, allocations: 3.254 MB / 0.7513 GB, free: 35.79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006967/1.656, allocations: 1.122 MB / 0.7524 GB, free: 35.77 MB / 410.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.004184/1.66, allocations: 1.31 MB / 0.7537 GB, free: 35.66 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004439/1.665, allocations: 1.253 MB / 0.7549 GB, free: 35.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.124e-05/1.665, allocations: 6.844 kB / 0.7549 GB, free: 35.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00217/1.667, allocations: 0.705 MB / 0.7556 GB, free: 35.16 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007779/1.675, allocations: 0.9162 MB / 0.7565 GB, free: 35.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01763/1.693, allocations: 6.143 MB / 0.7625 GB, free: 33.31 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004048/1.697, allocations: 3.037 MB / 0.7655 GB, free: 32.52 MB / 410.7 MB Notification: Performance of SimCode: time 1.603e-06/1.697, allocations: 2.438 kB / 0.7655 GB, free: 32.52 MB / 410.7 MB Notification: Performance of Templates: time 0.297/1.994, allocations: 68.79 MB / 0.8327 GB, free: 85.29 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/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