Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [: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.001169/0.001169, allocations: 203 kB / 8.543 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.209/1.209, allocations: 225.5 MB / 234.4 MB, free: 3.363 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001273/0.001273, allocations: 95.42 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.643e-06/6.743e-06, allocations: 0 / 343.1 MB, free: 8.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1008, allocations: 51.48 MB / 394.6 MB, free: 5.199 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2338/0.3346, allocations: 78.68 MB / 473.3 MB, free: 13.08 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001917/0.3348, allocations: 72.7 kB / 473.4 MB, free: 13.05 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.005901/0.3407, allocations: 2.111 MB / 475.5 MB, free: 11.94 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.3408, allocations: 0 / 475.5 MB, free: 11.94 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0003628/0.3411, allocations: 407.9 kB / 475.9 MB, free: 11.52 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.032e-05/0.3412, allocations: 8.031 kB / 475.9 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.904e-05/0.3412, allocations: 18.11 kB / 475.9 MB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001503/0.3414, allocations: 198.9 kB / 476.1 MB, free: 11.28 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.808e-06/0.3414, allocations: 4 kB / 476.1 MB, free: 11.28 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.336e-05/0.3414, allocations: 8 kB / 476.1 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001405/0.3416, allocations: 61.72 kB / 476.2 MB, free: 11.23 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002765/0.3419, allocations: 204.8 kB / 476.4 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.3419, allocations: 3.906 kB / 476.4 MB, free: 11.06 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/0.3419, allocations: 0 / 476.4 MB, free: 11.06 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.3419, allocations: 8 kB / 476.4 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004102/0.3423, allocations: 0.5643 MB / 476.9 MB, free: 10.51 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001979/0.3425, allocations: 110.7 kB / 477 MB, free: 10.4 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.972e-05/0.3426, allocations: 59.84 kB / 477.1 MB, free: 10.35 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.52e-05/0.3426, allocations: 3.938 kB / 477.1 MB, free: 10.35 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.222e-05/0.3427, allocations: 44.64 kB / 477.2 MB, free: 10.3 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.282e-06/0.3427, allocations: 3.188 kB / 477.2 MB, free: 10.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002198/0.3429, allocations: 105.2 kB / 477.3 MB, free: 10.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.001e-05/0.3429, allocations: 110.2 kB / 477.4 MB, free: 10.09 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.004e-05/0.343, allocations: 121.2 kB / 477.5 MB, free: 9.973 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.177e-06/0.343, allocations: 29.64 kB / 477.5 MB, free: 9.938 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.634e-05/0.343, allocations: 106.7 kB / 477.6 MB, free: 9.836 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.394e-05/0.3431, allocations: 18.58 kB / 477.6 MB, free: 9.824 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.789e-06/0.3431, allocations: 4 kB / 477.6 MB, free: 9.82 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.775e-05/0.3431, allocations: 329.1 kB / 478 MB, free: 9.5 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.585e-05/0.3432, allocations: 19.44 kB / 478 MB, free: 9.484 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.625e-05/0.3432, allocations: 120.3 kB / 478.1 MB, free: 9.332 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.378e-05/0.3433, allocations: 47.31 kB / 478.1 MB, free: 9.305 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3433, allocations: 0 / 478.1 MB, free: 9.305 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000186/0.3435, allocations: 138.2 kB / 478.3 MB, free: 9.188 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.001e-05/0.3435, allocations: 4 kB / 478.3 MB, free: 9.184 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.3435, allocations: 4 kB / 478.3 MB, free: 9.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.3435, allocations: 8 kB / 478.3 MB, free: 9.172 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000156/0.3437, allocations: 46.45 kB / 478.3 MB, free: 9.133 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.3437, allocations: 11.22 kB / 478.4 MB, free: 9.125 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001074/0.3438, allocations: 23.94 kB / 478.4 MB, free: 9.105 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.3438, allocations: 11.91 kB / 478.4 MB, free: 9.094 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.611e-05/0.3439, allocations: 112.3 kB / 478.5 MB, free: 8.98 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/0.344, allocations: 82.19 kB / 478.6 MB, free: 8.91 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.538e-05/0.3441, allocations: 15.53 kB / 478.6 MB, free: 8.91 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.3441, allocations: 4 kB / 478.6 MB, free: 8.906 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.3441, allocations: 4 kB / 478.6 MB, free: 8.902 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.3441, allocations: 7.906 kB / 478.6 MB, free: 8.895 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001662/0.3443, allocations: 166.9 kB / 478.8 MB, free: 8.723 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3443, allocations: 4 kB / 478.8 MB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001876/0.3445, allocations: 42.5 kB / 478.8 MB, free: 8.684 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.3445, allocations: 7.828 kB / 478.8 MB, free: 8.68 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.3445, allocations: 0 / 478.8 MB, free: 8.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.3445, allocations: 3.125 kB / 478.8 MB, free: 8.68 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3445, allocations: 8 kB / 478.8 MB, free: 8.672 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002256/0.3448, allocations: 356.6 kB / 479.2 MB, free: 8.344 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.354e-05/0.3448, allocations: 92.42 kB / 479.3 MB, free: 8.238 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.144e-05/0.3448, allocations: 3.906 kB / 479.3 MB, free: 8.234 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001514/0.345, allocations: 15.34 kB / 479.3 MB, free: 8.223 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.077e-05/0.345, allocations: 0 / 479.3 MB, free: 8.223 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-06/0.345, allocations: 6.156 kB / 479.3 MB, free: 8.219 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.976e-05/0.3451, allocations: 98.5 kB / 479.4 MB, free: 8.133 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002997/0.3454, allocations: 20 kB / 479.4 MB, free: 8.113 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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 7.666e-05/0.3454, allocations: 103.2 kB / 479.5 MB, free: 8.004 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001385/0.3456, allocations: 92.58 kB / 479.6 MB, free: 7.938 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.3456, allocations: 0 / 479.6 MB, free: 7.938 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.689e-05/0.3456, allocations: 15.5 kB / 479.6 MB, free: 7.926 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003015/0.3459, allocations: 45 kB / 479.7 MB, free: 7.895 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004366/0.3464, allocations: 279.1 kB / 479.9 MB, free: 7.641 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001461/0.3465, allocations: 0.7423 MB / 480.7 MB, free: 6.895 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3465, allocations: 0 / 480.7 MB, free: 6.895 MB / 346.7 MB Notification: Performance of Templates: time 0.003017/0.3496, allocations: 1.081 MB / 481.8 MB, free: 6.289 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches