Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001613/0.001613, allocations: 192.1 kB / 8.534 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.23/1.23, allocations: 225.5 MB / 234.4 MB, free: 3.301 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009463/0.0009464, allocations: 89.53 kB / 286.3 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.546e-06/8.576e-06, allocations: 0 / 343.1 MB, free: 8.652 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1127, allocations: 51.47 MB / 394.6 MB, free: 5.137 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.335/0.4477, allocations: 104.3 MB / 498.9 MB, free: 5.371 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002057/0.4479, allocations: 65.84 kB / 499 MB, free: 5.34 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.4878/0.9358, allocations: 136.9 MB / 0.621 GB, free: 79.7 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001782/0.936, allocations: 45.47 kB / 0.621 GB, free: 79.7 MB / 442.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.004847/0.9408, allocations: 2.728 MB / 0.6237 GB, free: 78.21 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.9409, allocations: 11.81 kB / 0.6237 GB, free: 78.21 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005986/0.9415, allocations: 400.5 kB / 0.6241 GB, free: 78 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003845/0.9453, allocations: 2.363 MB / 0.6264 GB, free: 77.34 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.639e-05/0.9454, allocations: 17.22 kB / 0.6264 GB, free: 77.34 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002043/0.9456, allocations: 36.94 kB / 0.6264 GB, free: 77.34 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001188/0.9468, allocations: 0.6835 MB / 0.6271 GB, free: 77.34 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.9478, allocations: 0.7212 MB / 0.6278 GB, free: 77.18 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.9479, allocations: 0 / 0.6278 GB, free: 77.18 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.911e-05/0.9479, allocations: 0 / 0.6278 GB, free: 77.18 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.065e-05/0.948, allocations: 19.42 kB / 0.6278 GB, free: 77.18 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005386/0.9534, allocations: 3.087 MB / 0.6308 GB, free: 75.74 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004267/0.9538, allocations: 355.8 kB / 0.6312 GB, free: 75.57 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005774/0.9544, allocations: 0.5387 MB / 0.6317 GB, free: 75.32 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03204/0.9864, allocations: 36.59 MB / 0.6674 GB, free: 45.71 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004229/0.9869, allocations: 294.5 kB / 0.6677 GB, free: 45.59 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 2.906e-06/0.9869, allocations: 0 / 0.6677 GB, free: 45.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.001326/0.9882, allocations: 0.7751 MB / 0.6684 GB, free: 45.26 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.155e-05/0.9883, allocations: 272.2 kB / 0.6687 GB, free: 44.95 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002999/0.9913, allocations: 2.3 MB / 0.671 GB, free: 44.04 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.604e-05/0.9914, allocations: 29.02 kB / 0.671 GB, free: 44.01 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003468/0.9918, allocations: 0.6443 MB / 0.6716 GB, free: 43.6 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001063/0.9919, allocations: 162 kB / 0.6718 GB, free: 43.48 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.121e-05/0.9919, allocations: 0 / 0.6718 GB, free: 43.48 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.927e-05/0.992, allocations: 342.6 kB / 0.6721 GB, free: 43.15 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002564/0.9922, allocations: 173.8 kB / 0.6723 GB, free: 43.09 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003919/0.9926, allocations: 0.5716 MB / 0.6728 GB, free: 42.47 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004053/0.9931, allocations: 267.6 kB / 0.6731 GB, free: 42.36 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.9931, allocations: 3.406 kB / 0.6731 GB, free: 42.36 MB / 442.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001346/0.9944, allocations: 1.039 MB / 0.6741 GB, free: 41.95 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.9944, allocations: 9.156 kB / 0.6741 GB, free: 41.95 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001109/0.9946, allocations: 81.36 kB / 0.6742 GB, free: 41.95 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.874e-05/0.9946, allocations: 23.06 kB / 0.6742 GB, free: 41.94 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007316/0.9953, allocations: 216.3 kB / 0.6744 GB, free: 41.92 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.673e-05/0.9954, allocations: 30.5 kB / 0.6744 GB, free: 41.91 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001118/0.9965, allocations: 111.4 kB / 0.6745 GB, free: 41.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.803e-05/0.9966, allocations: 59.25 kB / 0.6746 GB, free: 41.86 MB / 442.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.0001621/0.9968, allocations: 152.2 kB / 0.6747 GB, free: 41.71 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002759/0.997, allocations: 390.4 kB / 0.6751 GB, free: 41.52 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003439/1, allocations: 1.359 MB / 0.6764 GB, free: 40.99 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/1.001, allocations: 6.812 kB / 0.6764 GB, free: 40.99 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/1.001, allocations: 4 kB / 0.6764 GB, free: 40.98 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/1.001, allocations: 6.406 kB / 0.6765 GB, free: 40.98 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002739/1.003, allocations: 1.983 MB / 0.6784 GB, free: 40.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001009/1.003, allocations: 75.91 kB / 0.6785 GB, free: 40.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005206/1.004, allocations: 109.5 kB / 0.6786 GB, free: 40.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.982e-06/1.004, allocations: 3.25 kB / 0.6786 GB, free: 40.09 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.944e-05/1.004, allocations: 26.38 kB / 0.6786 GB, free: 40.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/1.004, allocations: 3.438 kB / 0.6786 GB, free: 40.09 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/1.004, allocations: 1.875 kB / 0.6786 GB, free: 40.09 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001271/1.005, allocations: 1.18 MB / 0.6798 GB, free: 39.45 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007462/1.006, allocations: 0.5556 MB / 0.6803 GB, free: 39.03 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003991/1.006, allocations: 7.312 kB / 0.6803 GB, free: 39.03 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007532/1.007, allocations: 44.25 kB / 0.6803 GB, free: 39.02 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001444/1.007, allocations: 62.34 kB / 0.6804 GB, free: 39.01 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.673e-05/1.007, allocations: 37.25 kB / 0.6804 GB, free: 39.01 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001881/1.009, allocations: 1.71 MB / 0.6821 GB, free: 38.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001521/1.011, allocations: 0.6091 MB / 0.6827 GB, free: 38.22 MB / 442.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.001139/1.012, allocations: 0.9334 MB / 0.6836 GB, free: 37.93 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0009519/1.013, allocations: 0.6665 MB / 0.6843 GB, free: 37.64 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/1.013, allocations: 4.062 kB / 0.6843 GB, free: 37.64 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004245/1.013, allocations: 383.1 kB / 0.6846 GB, free: 37.43 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001976/1.015, allocations: 0.5756 MB / 0.6852 GB, free: 37.22 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004789/1.02, allocations: 3.122 MB / 0.6882 GB, free: 35.95 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00106/1.021, allocations: 1.892 MB / 0.6901 GB, free: 35.16 MB / 442.7 MB Notification: Performance of SimCode: time 4.11e-07/1.021, allocations: 0 / 0.6901 GB, free: 35.16 MB / 442.7 MB Notification: Performance of Templates: time 0.04688/1.068, allocations: 28.95 MB / 0.7184 GB, free: 14.92 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches