Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [: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.002496/0.002496, allocations: 178.5 kB / 8.153 MB, free: 2.18 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.717/1.717, allocations: 205.2 MB / 213.8 MB, free: 13.92 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.001279/0.001279, allocations: 89.72 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.18e-05/1.213e-05, allocations: 0 / 314.3 MB, free: 9.051 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2516, allocations: 47.55 MB / 361.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1595/0.4111, allocations: 101.5 MB / 463.3 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002522/0.4114, allocations: 67.97 kB / 463.4 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.6418/1.053, allocations: 121 MB / 0.5706 GB, free: 56.71 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001138/1.053, allocations: 51.83 kB / 0.5707 GB, free: 56.66 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005855/1.059, allocations: 2.756 MB / 0.5734 GB, free: 53.85 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/1.059, allocations: 8.031 kB / 0.5734 GB, free: 53.84 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006275/1.06, allocations: 399.1 kB / 0.5738 GB, free: 53.45 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005766/1.066, allocations: 2.37 MB / 0.5761 GB, free: 51.09 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.728e-05/1.066, allocations: 20 kB / 0.5761 GB, free: 51.07 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001834/1.066, allocations: 35.91 kB / 0.5761 GB, free: 51.04 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001658/1.068, allocations: 0.6857 MB / 0.5768 GB, free: 50.35 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001525/1.069, allocations: 0.7187 MB / 0.5775 GB, free: 49.6 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.09e-05/1.069, allocations: 4 kB / 0.5775 GB, free: 49.6 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001088/1.069, allocations: 4 kB / 0.5775 GB, free: 49.59 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.671e-05/1.069, allocations: 19.98 kB / 0.5775 GB, free: 49.57 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008552/1.078, allocations: 3.091 MB / 0.5805 GB, free: 46.45 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007724/1.079, allocations: 359 kB / 0.5809 GB, free: 46.09 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009913/1.08, allocations: 0.5375 MB / 0.5814 GB, free: 45.55 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0452/1.125, allocations: 36.04 MB / 0.6166 GB, free: 4.418 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005932/1.126, allocations: 293.8 kB / 0.6169 GB, free: 4.121 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 3.437e-06/1.126, allocations: 4 kB / 0.6169 GB, free: 4.117 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.001775/1.127, allocations: 0.7664 MB / 0.6176 GB, free: 3.34 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.348e-05/1.128, allocations: 272.6 kB / 0.6179 GB, free: 3.016 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004281/1.132, allocations: 2.31 MB / 0.6202 GB, free: 0.7031 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001445/1.132, allocations: 37.69 kB / 0.6202 GB, free: 0.6602 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000204/1.132, allocations: 385.4 kB / 0.6206 GB, free: 284 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000174/1.132, allocations: 165.8 kB / 0.6207 GB, free: 116 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.374e-05/1.133, allocations: 0 / 0.6207 GB, free: 116 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001935/1.133, allocations: 350.7 kB / 0.6211 GB, free: 15.76 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005382/1.133, allocations: 170 kB / 0.6212 GB, free: 15.59 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008927/1.134, allocations: 0.5763 MB / 0.6218 GB, free: 14.82 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008047/1.135, allocations: 264.5 kB / 0.622 GB, free: 14.55 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.047e-05/1.135, allocations: 4 kB / 0.622 GB, free: 14.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00213/1.137, allocations: 0.725 MB / 0.6227 GB, free: 13.83 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/1.137, allocations: 6.969 kB / 0.6228 GB, free: 13.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001893/1.137, allocations: 79.98 kB / 0.6228 GB, free: 13.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.541e-05/1.137, allocations: 20 kB / 0.6228 GB, free: 13.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001494/1.139, allocations: 219.7 kB / 0.6231 GB, free: 13.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.763e-05/1.139, allocations: 35.77 kB / 0.6231 GB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008629/1.14, allocations: 87.41 kB / 0.6232 GB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00016/1.14, allocations: 67.98 kB / 0.6232 GB, free: 13.32 MB / 410.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.0002272/1.14, allocations: 69.33 kB / 0.6233 GB, free: 13.25 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008251/1.141, allocations: 383.3 kB / 0.6237 GB, free: 12.87 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006916/1.148, allocations: 1.38 MB / 0.625 GB, free: 11.48 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-05/1.148, allocations: 7.906 kB / 0.625 GB, free: 11.47 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/1.148, allocations: 0 / 0.625 GB, free: 11.47 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/1.148, allocations: 0 / 0.625 GB, free: 11.47 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005579/1.154, allocations: 2.023 MB / 0.627 GB, free: 9.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001779/1.154, allocations: 67.98 kB / 0.6271 GB, free: 9.344 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001039/1.155, allocations: 119.9 kB / 0.6272 GB, free: 9.227 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-05/1.155, allocations: 4 kB / 0.6272 GB, free: 9.223 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.303e-05/1.155, allocations: 24 kB / 0.6272 GB, free: 9.199 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/1.155, allocations: 0 / 0.6272 GB, free: 9.199 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.181e-06/1.155, allocations: 0 / 0.6272 GB, free: 9.199 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002682/1.158, allocations: 1.19 MB / 0.6284 GB, free: 7.961 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001474/1.159, allocations: 0.5529 MB / 0.6289 GB, free: 7.371 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006168/1.16, allocations: 7.984 kB / 0.6289 GB, free: 7.363 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001491/1.162, allocations: 47.94 kB / 0.629 GB, free: 7.316 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002213/1.162, allocations: 59.94 kB / 0.629 GB, free: 7.258 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001211/1.162, allocations: 39.98 kB / 0.6291 GB, free: 7.219 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.004109/1.166, allocations: 1.721 MB / 0.6307 GB, free: 5.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002474/1.169, allocations: 0.6126 MB / 0.6313 GB, free: 4.887 MB / 410.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.001903/1.17, allocations: 0.9399 MB / 0.6323 GB, free: 4.02 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001726/1.172, allocations: 0.6763 MB / 0.6329 GB, free: 3.32 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/1.172, allocations: 1.312 kB / 0.6329 GB, free: 3.32 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008622/1.173, allocations: 391 kB / 0.6333 GB, free: 2.91 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002954/1.176, allocations: 490.6 kB / 0.6338 GB, free: 2.426 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009491/1.186, allocations: 3.211 MB / 0.6369 GB, free: 15.14 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002254/1.188, allocations: 1.897 MB / 0.6387 GB, free: 13.21 MB / 426.7 MB Notification: Performance of SimCode: time 1.472e-06/1.188, allocations: 0 / 0.6387 GB, free: 13.21 MB / 426.7 MB Notification: Performance of Templates: time 0.227/1.415, allocations: 36.87 MB / 0.6748 GB, free: 153.7 MB / 442.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches