Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.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.Clocked.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") [: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.001064/0.001064, allocations: 200.3 kB / 8.54 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 225.5 MB / 234.4 MB, free: 3.414 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008768/0.0008769, allocations: 91.84 kB / 286.3 MB, free: 5.203 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.102e-06/6.142e-06, allocations: 0 / 343.1 MB, free: 8.777 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09159/0.09162, allocations: 51.49 MB / 394.6 MB, free: 5.242 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2746/0.3662, allocations: 77.56 MB / 472.2 MB, free: 13.76 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002029/0.3665, allocations: 69.06 kB / 472.2 MB, free: 13.73 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.005303/0.3718, allocations: 1.951 MB / 474.2 MB, free: 12.71 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.388e-06/0.3718, allocations: 7.938 kB / 474.2 MB, free: 12.7 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0003609/0.3722, allocations: 384 kB / 474.6 MB, free: 12.3 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.3722, allocations: 8.031 kB / 474.6 MB, free: 12.3 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.721e-05/0.3723, allocations: 19.28 kB / 474.6 MB, free: 12.28 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001544/0.3724, allocations: 188.9 kB / 474.8 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.3725, allocations: 11.92 kB / 474.8 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.509e-05/0.3725, allocations: 8 kB / 474.8 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001145/0.3726, allocations: 41.36 kB / 474.8 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001257/0.3727, allocations: 91.94 kB / 474.9 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.3728, allocations: 0 / 474.9 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.3728, allocations: 2.188 kB / 474.9 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.3728, allocations: 0 / 474.9 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005488/0.3733, allocations: 0.5114 MB / 475.4 MB, free: 11.47 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.089e-05/0.3734, allocations: 41.59 kB / 475.5 MB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.207e-05/0.3735, allocations: 26.8 kB / 475.5 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.327e-05/0.3735, allocations: 4 kB / 475.5 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.549e-05/0.3735, allocations: 30.56 kB / 475.5 MB, free: 11.37 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.3735, allocations: 0 / 475.5 MB, free: 11.37 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001719/0.3737, allocations: 66.5 kB / 475.6 MB, free: 11.31 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.615e-05/0.3737, allocations: 58.58 kB / 475.7 MB, free: 11.25 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.415e-05/0.3738, allocations: 119.9 kB / 475.8 MB, free: 11.14 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.616e-06/0.3738, allocations: 25.7 kB / 475.8 MB, free: 11.11 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.163e-05/0.3739, allocations: 106.7 kB / 475.9 MB, free: 11 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.635e-05/0.3739, allocations: 25.92 kB / 475.9 MB, free: 10.98 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.648e-06/0.3739, allocations: 0 / 475.9 MB, free: 10.98 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.999e-05/0.3739, allocations: 325.4 kB / 476.3 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.4e-05/0.374, allocations: 18.62 kB / 476.3 MB, free: 10.65 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.268e-05/0.374, allocations: 57.72 kB / 476.3 MB, free: 10.59 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.153e-05/0.3741, allocations: 25.95 kB / 476.4 MB, free: 10.58 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.3741, allocations: 0 / 476.4 MB, free: 10.58 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001237/0.3742, allocations: 97.66 kB / 476.5 MB, free: 10.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.3742, allocations: 7.328 kB / 476.5 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.3742, allocations: 4 kB / 476.5 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.3743, allocations: 0 / 476.5 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002009/0.3745, allocations: 31.09 kB / 476.5 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.3745, allocations: 10.84 kB / 476.5 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.455e-05/0.3746, allocations: 15.97 kB / 476.5 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.3746, allocations: 9.703 kB / 476.5 MB, free: 10.43 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 4.259e-05/0.3746, allocations: 101 kB / 476.6 MB, free: 10.33 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.977e-05/0.3747, allocations: 7.906 kB / 476.6 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.331e-05/0.3747, allocations: 11.12 kB / 476.7 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.3747, allocations: 0 / 476.7 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.3747, allocations: 3.906 kB / 476.7 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.3747, allocations: 3.328 kB / 476.7 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/0.3749, allocations: 172.8 kB / 476.8 MB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.3749, allocations: 3.688 kB / 476.8 MB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001508/0.375, allocations: 29.5 kB / 476.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.375, allocations: 0 / 476.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.3751, allocations: 3.938 kB / 476.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.3751, allocations: 7.906 kB / 476.9 MB, free: 10.1 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3751, allocations: 3.938 kB / 476.9 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001568/0.3752, allocations: 190.5 kB / 477.1 MB, free: 9.918 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.186e-05/0.3753, allocations: 81.02 kB / 477.1 MB, free: 9.82 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.95e-05/0.3753, allocations: 96 / 477.1 MB, free: 9.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.3754, allocations: 11.38 kB / 477.1 MB, free: 9.812 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.689e-05/0.3754, allocations: 11.31 kB / 477.2 MB, free: 9.805 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-06/0.3755, allocations: 7.469 kB / 477.2 MB, free: 9.801 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.984e-05/0.3755, allocations: 94.59 kB / 477.3 MB, free: 9.711 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002325/0.3757, allocations: 19.33 kB / 477.3 MB, free: 9.695 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 Backend phase and start with SimCode phase: time 8.997e-05/0.3758, allocations: 99.25 kB / 477.4 MB, free: 9.59 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001096/0.3759, allocations: 53.31 kB / 477.4 MB, free: 9.551 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.3759, allocations: 0 / 477.4 MB, free: 9.551 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.411e-05/0.376, allocations: 29.48 kB / 477.5 MB, free: 9.531 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002434/0.3762, allocations: 23 kB / 477.5 MB, free: 9.516 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004743/0.3767, allocations: 250.1 kB / 477.7 MB, free: 9.289 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/0.3769, allocations: 0.7197 MB / 478.4 MB, free: 8.559 MB / 346.7 MB Notification: Performance of SimCode: time 2.81e-07/0.3769, allocations: 0 / 478.4 MB, free: 8.559 MB / 346.7 MB Notification: Performance of Templates: time 0.003164/0.3801, allocations: 0.9292 MB / 479.4 MB, free: 8.055 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches