Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [: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.0009884/0.0009884, allocations: 178.7 kB / 8.476 MB, free: 1.871 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.119/1.119, allocations: 205.2 MB / 214.1 MB, free: 5.242 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.0008591/0.0008591, allocations: 94.25 kB / 262.1 MB, free: 5.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.969e-06/9.989e-06, allocations: 3.938 kB / 315 MB, free: 41.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06983/0.06985, allocations: 47.57 MB / 362.5 MB, free: 9.992 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2309/0.3008, allocations: 101.5 MB / 464 MB, free: 5.129 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002115/0.301, allocations: 69.22 kB / 464.1 MB, free: 5.121 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.2485/0.5495, allocations: 122.7 MB / 0.5731 GB, free: 2.996 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.655e-05/0.5496, allocations: 48 kB / 0.5731 GB, free: 2.949 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004493/0.5541, allocations: 2.843 MB / 0.5759 GB, free: 48 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.5542, allocations: 12.03 kB / 0.5759 GB, free: 36 kB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1398/0.694, allocations: 416.3 kB / 0.5763 GB, free: 74.64 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003726/0.6977, allocations: 2.428 MB / 0.5787 GB, free: 74.18 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.451e-05/0.6978, allocations: 17.91 kB / 0.5787 GB, free: 74.18 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.6979, allocations: 40.75 kB / 0.5787 GB, free: 74.17 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009798/0.6989, allocations: 0.6843 MB / 0.5794 GB, free: 74.17 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009397/0.6999, allocations: 0.7256 MB / 0.5801 GB, free: 74.06 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.6999, allocations: 0 / 0.5801 GB, free: 74.06 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.596e-05/0.7, allocations: 3.406 kB / 0.5801 GB, free: 74.06 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.444e-05/0.7, allocations: 21.25 kB / 0.5801 GB, free: 74.06 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00537/0.7054, allocations: 3.177 MB / 0.5832 GB, free: 73.62 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003883/0.7058, allocations: 356.6 kB / 0.5836 GB, free: 73.6 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005338/0.7063, allocations: 0.5388 MB / 0.5841 GB, free: 73.58 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02664/0.733, allocations: 36.08 MB / 0.6193 GB, free: 47.24 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000354/0.7334, allocations: 289.1 kB / 0.6196 GB, free: 47.18 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 2.335e-06/0.7334, allocations: 7.156 kB / 0.6196 GB, free: 47.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.001096/0.7345, allocations: 0.7848 MB / 0.6204 GB, free: 46.94 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.173e-05/0.7345, allocations: 273.6 kB / 0.6207 GB, free: 46.63 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002788/0.7373, allocations: 2.45 MB / 0.623 GB, free: 46.36 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.842e-05/0.7374, allocations: 31.7 kB / 0.6231 GB, free: 46.32 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004439/0.7379, allocations: 0.664 MB / 0.6237 GB, free: 46.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/0.738, allocations: 165.2 kB / 0.6239 GB, free: 46.02 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.953e-05/0.738, allocations: 0 / 0.6239 GB, free: 46.02 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.545e-05/0.7381, allocations: 343.7 kB / 0.6242 GB, free: 45.71 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002688/0.7384, allocations: 171.1 kB / 0.6244 GB, free: 45.71 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003809/0.7388, allocations: 0.572 MB / 0.6249 GB, free: 45.2 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003995/0.7392, allocations: 268.7 kB / 0.6252 GB, free: 45.19 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.7392, allocations: 3.75 kB / 0.6252 GB, free: 45.19 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001262/0.7405, allocations: 1.055 MB / 0.6262 GB, free: 44.96 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.7405, allocations: 7.812 kB / 0.6262 GB, free: 44.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001104/0.7406, allocations: 79.42 kB / 0.6263 GB, free: 44.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.405e-05/0.7406, allocations: 23.22 kB / 0.6263 GB, free: 44.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007198/0.7413, allocations: 223.7 kB / 0.6265 GB, free: 44.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.438e-05/0.7414, allocations: 23 kB / 0.6266 GB, free: 44.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001086/0.7425, allocations: 118.2 kB / 0.6267 GB, free: 44.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.707e-05/0.7426, allocations: 63.75 kB / 0.6267 GB, free: 44.93 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0001359/0.7427, allocations: 135.6 kB / 0.6269 GB, free: 44.82 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002707/0.743, allocations: 409.5 kB / 0.6273 GB, free: 44.62 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003404/0.7464, allocations: 1.399 MB / 0.6286 GB, free: 44.52 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.912e-06/0.7464, allocations: 3.469 kB / 0.6286 GB, free: 44.52 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.7464, allocations: 0 / 0.6286 GB, free: 44.52 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.7464, allocations: 7.094 kB / 0.6286 GB, free: 44.52 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002492/0.7489, allocations: 2.084 MB / 0.6307 GB, free: 44.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.747e-05/0.749, allocations: 72.16 kB / 0.6307 GB, free: 44.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004999/0.7495, allocations: 110.4 kB / 0.6308 GB, free: 44.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.698e-06/0.7496, allocations: 3.969 kB / 0.6308 GB, free: 44.18 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.573e-05/0.7496, allocations: 24.97 kB / 0.6309 GB, free: 44.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.7496, allocations: 7.688 kB / 0.6309 GB, free: 44.18 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.7496, allocations: 0 / 0.6309 GB, free: 44.18 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001192/0.7508, allocations: 1.194 MB / 0.632 GB, free: 43.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006372/0.7515, allocations: 0.518 MB / 0.6326 GB, free: 43.43 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003937/0.7519, allocations: 10.88 kB / 0.6326 GB, free: 43.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007884/0.7527, allocations: 43.41 kB / 0.6326 GB, free: 43.43 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.7528, allocations: 56.77 kB / 0.6327 GB, free: 43.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.981e-05/0.7529, allocations: 36 kB / 0.6327 GB, free: 43.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001984/0.7549, allocations: 1.821 MB / 0.6345 GB, free: 43.25 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001363/0.7563, allocations: 0.6222 MB / 0.6351 GB, free: 43.24 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.001086/0.7574, allocations: 0.9914 MB / 0.636 GB, free: 43.14 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009034/0.7583, allocations: 0.6741 MB / 0.6367 GB, free: 43 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.7583, allocations: 0 / 0.6367 GB, free: 43 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004247/0.7587, allocations: 398.2 kB / 0.6371 GB, free: 42.87 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001521/0.7602, allocations: 0.5021 MB / 0.6376 GB, free: 42.83 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005565/0.7658, allocations: 3.282 MB / 0.6408 GB, free: 41.84 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001326/0.7672, allocations: 1.951 MB / 0.6427 GB, free: 41.09 MB / 426.7 MB Notification: Performance of SimCode: time 1.292e-06/0.7672, allocations: 3.906 kB / 0.6427 GB, free: 41.09 MB / 426.7 MB Notification: Performance of Templates: time 0.04811/0.8153, allocations: 29.97 MB / 0.672 GB, free: 33.83 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches