Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001236/0.001236, allocations: 179.8 kB / 8.477 MB, free: 1.879 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.317/1.317, allocations: 205.2 MB / 214.1 MB, free: 5.184 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.0008666/0.0008666, allocations: 86.5 kB / 262.1 MB, free: 5.215 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.566e-06/8.656e-06, allocations: 4 kB / 315 MB, free: 41.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08808/0.08811, allocations: 47.57 MB / 362.5 MB, free: 9.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2652/0.3534, allocations: 101.5 MB / 464 MB, free: 5.383 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002023/0.3536, allocations: 66.97 kB / 464.1 MB, free: 5.375 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.2509/0.6045, allocations: 121 MB / 0.5713 GB, free: 4.859 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001076/0.6047, allocations: 44 kB / 0.5714 GB, free: 4.816 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.005295/0.61, allocations: 2.748 MB / 0.574 GB, free: 2.008 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.61, allocations: 8.031 kB / 0.5741 GB, free: 2 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005696/0.6106, allocations: 403.1 kB / 0.5744 GB, free: 1.602 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1268/0.7374, allocations: 2.377 MB / 0.5768 GB, free: 131.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.861e-05/0.7374, allocations: 16.91 kB / 0.5768 GB, free: 131.7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/0.7376, allocations: 32 kB / 0.5768 GB, free: 131.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001009/0.7386, allocations: 0.6897 MB / 0.5775 GB, free: 131.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008798/0.7395, allocations: 0.7224 MB / 0.5782 GB, free: 131.6 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.7395, allocations: 0 / 0.5782 GB, free: 131.6 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.659e-05/0.7396, allocations: 3.375 kB / 0.5782 GB, free: 131.6 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.256e-05/0.7396, allocations: 20.78 kB / 0.5782 GB, free: 131.6 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005022/0.7446, allocations: 3.089 MB / 0.5812 GB, free: 131.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004267/0.7451, allocations: 353 kB / 0.5816 GB, free: 131.1 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005537/0.7456, allocations: 0.5326 MB / 0.5821 GB, free: 131.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02736/0.773, allocations: 36.04 MB / 0.6173 GB, free: 104.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003581/0.7734, allocations: 287.6 kB / 0.6176 GB, free: 104.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 2.325e-06/0.7734, allocations: 0 / 0.6176 GB, free: 104.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.001099/0.7745, allocations: 0.7794 MB / 0.6183 GB, free: 104.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.512e-05/0.7746, allocations: 264.8 kB / 0.6186 GB, free: 104.2 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002563/0.7772, allocations: 2.325 MB / 0.6208 GB, free: 103.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.711e-05/0.7772, allocations: 25.7 kB / 0.6209 GB, free: 103.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003649/0.7776, allocations: 0.6471 MB / 0.6215 GB, free: 103.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001125/0.7777, allocations: 157.5 kB / 0.6216 GB, free: 103.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.126e-05/0.7778, allocations: 0 / 0.6216 GB, free: 103.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.276e-05/0.7779, allocations: 344.3 kB / 0.622 GB, free: 103.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002698/0.7781, allocations: 177.1 kB / 0.6221 GB, free: 103.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004108/0.7786, allocations: 0.5676 MB / 0.6227 GB, free: 102.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004285/0.779, allocations: 272.7 kB / 0.623 GB, free: 102.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.779, allocations: 3.812 kB / 0.623 GB, free: 102.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001339/0.7804, allocations: 1.04 MB / 0.624 GB, free: 102.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.7804, allocations: 3.625 kB / 0.624 GB, free: 102.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000112/0.7805, allocations: 84.39 kB / 0.6241 GB, free: 102.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.071e-05/0.7805, allocations: 18.22 kB / 0.6241 GB, free: 102.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007287/0.7813, allocations: 220.7 kB / 0.6243 GB, free: 102.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.795e-05/0.7813, allocations: 29.3 kB / 0.6243 GB, free: 102.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001203/0.7825, allocations: 116.1 kB / 0.6244 GB, free: 102.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001044/0.7826, allocations: 66.19 kB / 0.6245 GB, free: 102.5 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.0001762/0.7828, allocations: 142.3 kB / 0.6246 GB, free: 102.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003057/0.7831, allocations: 383.5 kB / 0.625 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003738/0.7869, allocations: 1.382 MB / 0.6263 GB, free: 102.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.7869, allocations: 3.969 kB / 0.6263 GB, free: 102.1 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.7869, allocations: 0 / 0.6263 GB, free: 102.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.7869, allocations: 3.328 kB / 0.6263 GB, free: 102.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002884/0.7898, allocations: 2.007 MB / 0.6283 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.762e-05/0.7899, allocations: 70 kB / 0.6284 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005154/0.7904, allocations: 111.4 kB / 0.6285 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.264e-06/0.7905, allocations: 3.906 kB / 0.6285 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.894e-05/0.7905, allocations: 28.66 kB / 0.6285 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.7905, allocations: 7.656 kB / 0.6285 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.7905, allocations: 0 / 0.6285 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001269/0.7918, allocations: 1.175 MB / 0.6297 GB, free: 101.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000749/0.7926, allocations: 0.5554 MB / 0.6302 GB, free: 101 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000404/0.793, allocations: 6.781 kB / 0.6302 GB, free: 101 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007749/0.7938, allocations: 42.02 kB / 0.6303 GB, free: 101 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001387/0.7939, allocations: 63.36 kB / 0.6303 GB, free: 101 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.972e-05/0.794, allocations: 35.62 kB / 0.6303 GB, free: 101 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001967/0.796, allocations: 1.721 MB / 0.632 GB, free: 100.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001495/0.7975, allocations: 0.6179 MB / 0.6326 GB, free: 100.8 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.001105/0.7986, allocations: 0.9292 MB / 0.6335 GB, free: 100.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008989/0.7995, allocations: 0.6761 MB / 0.6342 GB, free: 100.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.7995, allocations: 3.844 kB / 0.6342 GB, free: 100.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004077/0.7999, allocations: 392.8 kB / 0.6346 GB, free: 100.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001425/0.8013, allocations: 484.6 kB / 0.635 GB, free: 100.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005427/0.8068, allocations: 3.133 MB / 0.6381 GB, free: 99.44 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001356/0.8082, allocations: 1.902 MB / 0.64 GB, free: 98.7 MB / 426.7 MB Notification: Performance of SimCode: time 9.41e-07/0.8082, allocations: 0 / 0.64 GB, free: 98.7 MB / 426.7 MB Notification: Performance of Templates: time 0.04608/0.8543, allocations: 28.97 MB / 0.6682 GB, free: 94.15 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches