Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [: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.001021/0.001021, allocations: 192.1 kB / 8.534 MB, free: 1.84 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.219/1.219, allocations: 225.5 MB / 234.4 MB, free: 3.406 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001071/0.001071, allocations: 95.42 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.574e-06/7.594e-06, allocations: 4 kB / 343.1 MB, free: 8.707 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08987/0.08989, allocations: 51.48 MB / 394.6 MB, free: 5.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2507/0.3406, allocations: 78.88 MB / 473.5 MB, free: 13.01 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001969/0.3408, allocations: 65.95 kB / 473.6 MB, free: 12.99 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.007105/0.348, allocations: 2.49 MB / 476 MB, free: 11.67 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.14e-05/0.348, allocations: 4 kB / 476.1 MB, free: 11.66 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004594/0.3485, allocations: 428.9 kB / 476.5 MB, free: 11.23 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.3485, allocations: 8.219 kB / 476.5 MB, free: 11.23 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.393e-05/0.3486, allocations: 19.72 kB / 476.5 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002065/0.3488, allocations: 209.4 kB / 476.7 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/0.3488, allocations: 4 kB / 476.7 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.757e-05/0.3489, allocations: 8 kB / 476.7 MB, free: 10.97 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001657/0.349, allocations: 68.22 kB / 476.8 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003182/0.3494, allocations: 209.4 kB / 477 MB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.3494, allocations: 3.141 kB / 477 MB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.553e-05/0.3494, allocations: 0 / 477 MB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.3494, allocations: 4 kB / 477 MB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000487/0.3499, allocations: 0.5561 MB / 477.5 MB, free: 10.21 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002158/0.3501, allocations: 127 kB / 477.7 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.615e-05/0.3502, allocations: 60.02 kB / 477.7 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.991e-05/0.3503, allocations: 7.984 kB / 477.7 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.363e-05/0.3503, allocations: 37.88 kB / 477.8 MB, free: 9.992 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.3503, allocations: 4 kB / 477.8 MB, free: 9.988 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002552/0.3505, allocations: 115.2 kB / 477.9 MB, free: 9.895 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/0.3506, allocations: 102.8 kB / 478 MB, free: 9.77 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.692e-05/0.3507, allocations: 139 kB / 478.1 MB, free: 9.648 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.203e-05/0.3507, allocations: 29.64 kB / 478.2 MB, free: 9.613 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.366e-05/0.3508, allocations: 109.2 kB / 478.3 MB, free: 9.512 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.823e-05/0.3508, allocations: 25.78 kB / 478.3 MB, free: 9.496 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.46e-06/0.3508, allocations: 4.031 kB / 478.3 MB, free: 9.492 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.057e-05/0.3509, allocations: 317.8 kB / 478.6 MB, free: 9.18 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.941e-05/0.3509, allocations: 25.78 kB / 478.6 MB, free: 9.16 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.127e-05/0.351, allocations: 122.3 kB / 478.7 MB, free: 9.012 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.741e-05/0.351, allocations: 41.73 kB / 478.8 MB, free: 8.984 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.351, allocations: 0 / 478.8 MB, free: 8.984 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001928/0.3512, allocations: 149.8 kB / 478.9 MB, free: 8.859 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.3513, allocations: 4 kB / 478.9 MB, free: 8.855 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.3513, allocations: 4 kB / 478.9 MB, free: 8.852 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.3513, allocations: 4 kB / 478.9 MB, free: 8.848 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000166/0.3515, allocations: 51.92 kB / 479 MB, free: 8.809 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.3515, allocations: 8 kB / 479 MB, free: 8.801 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.3516, allocations: 27.39 kB / 479 MB, free: 8.777 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.138e-05/0.3516, allocations: 8 kB / 479 MB, free: 8.77 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 5.18e-05/0.3517, allocations: 112.8 kB / 479.1 MB, free: 8.652 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.3518, allocations: 79.81 kB / 479.2 MB, free: 8.582 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.083e-05/0.3519, allocations: 26.53 kB / 479.3 MB, free: 8.57 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.3519, allocations: 0 / 479.3 MB, free: 8.57 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.3519, allocations: 4 kB / 479.3 MB, free: 8.566 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.3519, allocations: 7.281 kB / 479.3 MB, free: 8.562 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001913/0.3521, allocations: 181 kB / 479.4 MB, free: 8.383 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3521, allocations: 2.438 kB / 479.4 MB, free: 8.383 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001893/0.3523, allocations: 38.83 kB / 479.5 MB, free: 8.352 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.3524, allocations: 7.5 kB / 479.5 MB, free: 8.348 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.3524, allocations: 0 / 479.5 MB, free: 8.348 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.3524, allocations: 4 kB / 479.5 MB, free: 8.344 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.3524, allocations: 0 / 479.5 MB, free: 8.344 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002816/0.3527, allocations: 358.9 kB / 479.8 MB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.268e-05/0.3527, allocations: 103.8 kB / 479.9 MB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.576e-05/0.3528, allocations: 3.906 kB / 479.9 MB, free: 7.898 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001572/0.3529, allocations: 18.86 kB / 480 MB, free: 7.887 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.819e-05/0.353, allocations: 7.938 kB / 480 MB, free: 7.879 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.666e-06/0.353, allocations: 7.375 kB / 480 MB, free: 7.875 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.363e-05/0.3531, allocations: 118.2 kB / 480.1 MB, free: 7.773 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003298/0.3534, allocations: 20 kB / 480.1 MB, free: 7.754 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 0.0001175/0.3535, allocations: 99.25 kB / 480.2 MB, free: 7.648 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001506/0.3537, allocations: 88.7 kB / 480.3 MB, free: 7.582 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3537, allocations: 0 / 480.3 MB, free: 7.582 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.024e-05/0.3537, allocations: 19.5 kB / 480.3 MB, free: 7.566 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003672/0.3541, allocations: 62.92 kB / 480.4 MB, free: 7.531 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005366/0.3546, allocations: 297 kB / 480.7 MB, free: 7.262 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002001/0.3548, allocations: 0.7433 MB / 481.4 MB, free: 6.512 MB / 346.7 MB Notification: Performance of SimCode: time 2.91e-07/0.3549, allocations: 0 / 481.4 MB, free: 6.512 MB / 346.7 MB Notification: Performance of Templates: time 0.003553/0.3584, allocations: 1.209 MB / 482.6 MB, free: 5.676 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches