Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.0009923/0.0009927, allocations: 183.1 kB / 8.134 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.165/1.165, allocations: 221.4 MB / 230 MB, free: 3.301 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009675/0.0009673, allocations: 94.09 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.372e-06/6.402e-06, allocations: 0 / 336.5 MB, free: 9.539 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2351/0.2351, allocations: 50.39 MB / 386.9 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1192/0.3544, allocations: 103.5 MB / 490.4 MB, free: 15.29 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001996/0.3546, allocations: 72.66 kB / 490.4 MB, free: 15.21 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.4059/0.7605, allocations: 136.5 MB / 0.6122 GB, free: 10.12 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001041/0.7607, allocations: 44 kB / 0.6123 GB, free: 10.07 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.005136/0.7658, allocations: 2.733 MB / 0.6149 GB, free: 7.285 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/0.7659, allocations: 11.97 kB / 0.6149 GB, free: 7.273 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007088/0.7666, allocations: 399.1 kB / 0.6153 GB, free: 6.879 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004606/0.7712, allocations: 2.363 MB / 0.6176 GB, free: 4.438 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.704e-05/0.7713, allocations: 16 kB / 0.6176 GB, free: 4.422 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.7715, allocations: 28 kB / 0.6177 GB, free: 4.395 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001252/0.7727, allocations: 0.6896 MB / 0.6183 GB, free: 3.707 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001219/0.7739, allocations: 0.7188 MB / 0.619 GB, free: 2.957 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.801e-05/0.774, allocations: 0 / 0.619 GB, free: 2.957 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.838e-05/0.7741, allocations: 4 kB / 0.619 GB, free: 2.953 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.568e-05/0.7741, allocations: 23.98 kB / 0.6191 GB, free: 2.93 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007099/0.7812, allocations: 3.08 MB / 0.6221 GB, free: 15.78 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005636/0.7818, allocations: 370.9 kB / 0.6224 GB, free: 15.41 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007043/0.7825, allocations: 0.5298 MB / 0.6229 GB, free: 14.88 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1677/0.9503, allocations: 35.92 MB / 0.658 GB, free: 111.9 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000385/0.9507, allocations: 303.6 kB / 0.6583 GB, free: 111.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 2.776e-06/0.9507, allocations: 0 / 0.6583 GB, free: 111.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.001239/0.952, allocations: 0.7649 MB / 0.6591 GB, free: 111.6 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.282e-05/0.9521, allocations: 267.1 kB / 0.6593 GB, free: 111.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003526/0.9556, allocations: 2.306 MB / 0.6616 GB, free: 111.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.379e-05/0.9557, allocations: 32.77 kB / 0.6616 GB, free: 111 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003754/0.9561, allocations: 0.6374 MB / 0.6622 GB, free: 110.8 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/0.9562, allocations: 168.4 kB / 0.6624 GB, free: 110.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.247e-05/0.9562, allocations: 0 / 0.6624 GB, free: 110.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.396e-05/0.9563, allocations: 339 kB / 0.6627 GB, free: 110.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002769/0.9566, allocations: 176.2 kB / 0.6629 GB, free: 110.4 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003895/0.957, allocations: 0.5706 MB / 0.6634 GB, free: 109.9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004275/0.9574, allocations: 268.4 kB / 0.6637 GB, free: 109.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.9574, allocations: 3.875 kB / 0.6637 GB, free: 109.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001431/0.9589, allocations: 1.031 MB / 0.6647 GB, free: 109.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.9589, allocations: 2.625 kB / 0.6647 GB, free: 109.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001194/0.959, allocations: 80.22 kB / 0.6648 GB, free: 109.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.816e-05/0.9591, allocations: 21.11 kB / 0.6648 GB, free: 109.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007368/0.9598, allocations: 220.4 kB / 0.665 GB, free: 109.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.826e-05/0.9598, allocations: 28.75 kB / 0.665 GB, free: 109.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001193/0.961, allocations: 117.2 kB / 0.6652 GB, free: 109.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001028/0.9611, allocations: 64.78 kB / 0.6652 GB, free: 109.7 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.0001657/0.9613, allocations: 148 kB / 0.6654 GB, free: 109.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003472/0.9617, allocations: 382.7 kB / 0.6657 GB, free: 109.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003629/0.9653, allocations: 1.365 MB / 0.6671 GB, free: 109.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.9653, allocations: 6.812 kB / 0.6671 GB, free: 109.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.9653, allocations: 0 / 0.6671 GB, free: 109.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.9653, allocations: 3.516 kB / 0.6671 GB, free: 109.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002973/0.9683, allocations: 2.001 MB / 0.669 GB, free: 108.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.744e-05/0.9684, allocations: 69.98 kB / 0.6691 GB, free: 108.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005259/0.969, allocations: 110.1 kB / 0.6692 GB, free: 108.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.969, allocations: 3.75 kB / 0.6692 GB, free: 108.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.241e-05/0.9691, allocations: 28.7 kB / 0.6692 GB, free: 108.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.9691, allocations: 3.969 kB / 0.6692 GB, free: 108.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.9691, allocations: 2.531 kB / 0.6692 GB, free: 108.9 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00133/0.9704, allocations: 1.176 MB / 0.6704 GB, free: 108.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008153/0.9712, allocations: 0.5512 MB / 0.6709 GB, free: 108.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000543/0.9718, allocations: 6.125 kB / 0.6709 GB, free: 108.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009027/0.9727, allocations: 37.7 kB / 0.671 GB, free: 108.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/0.9729, allocations: 60.67 kB / 0.671 GB, free: 108.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.083e-05/0.9729, allocations: 43.41 kB / 0.6711 GB, free: 108.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002073/0.975, allocations: 1.708 MB / 0.6727 GB, free: 108 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001395/0.9764, allocations: 0.6053 MB / 0.6733 GB, free: 108 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.001215/0.9776, allocations: 0.9324 MB / 0.6742 GB, free: 107.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009436/0.9786, allocations: 0.6685 MB / 0.6749 GB, free: 107.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.9786, allocations: 3.938 kB / 0.6749 GB, free: 107.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004381/0.9791, allocations: 389.6 kB / 0.6753 GB, free: 107.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002165/0.9812, allocations: 0.5748 MB / 0.6758 GB, free: 107.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005409/0.9867, allocations: 3.121 MB / 0.6789 GB, free: 106.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001218/0.9879, allocations: 1.89 MB / 0.6807 GB, free: 105.9 MB / 426.7 MB Notification: Performance of SimCode: time 5.51e-07/0.9879, allocations: 0 / 0.6807 GB, free: 105.9 MB / 426.7 MB Notification: Performance of Templates: time 0.05184/1.04, allocations: 28.92 MB / 0.7089 GB, free: 104.2 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches