Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [: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.001054/0.001054, allocations: 199.7 kB / 8.54 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 225.5 MB / 234.4 MB, free: 3.387 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008353/0.0008354, allocations: 96.45 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.431e-06/5.571e-06, allocations: 0 / 343.1 MB, free: 8.711 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09587/0.09589, allocations: 51.47 MB / 394.6 MB, free: 5.191 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.263/0.359, allocations: 78.64 MB / 473.2 MB, free: 13.17 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001904/0.3592, allocations: 73.7 kB / 473.3 MB, free: 13.14 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.005845/0.3651, allocations: 2.093 MB / 475.4 MB, free: 12.04 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.3651, allocations: 0 / 475.4 MB, free: 12.04 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0003915/0.3655, allocations: 404.4 kB / 475.8 MB, free: 11.63 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.3656, allocations: 15.41 kB / 475.8 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.008e-05/0.3656, allocations: 11.81 kB / 475.8 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001767/0.3658, allocations: 202.1 kB / 476 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.3658, allocations: 4 kB / 476 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.825e-05/0.3658, allocations: 8 kB / 476 MB, free: 11.37 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001384/0.366, allocations: 68.12 kB / 476.1 MB, free: 11.33 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002881/0.3663, allocations: 190.3 kB / 476.3 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.3663, allocations: 3.938 kB / 476.3 MB, free: 11.17 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.3663, allocations: 7.906 kB / 476.3 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.3663, allocations: 4 kB / 476.3 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004787/0.3668, allocations: 0.5477 MB / 476.9 MB, free: 10.63 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000149/0.367, allocations: 118.4 kB / 477 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.193e-05/0.3671, allocations: 51.75 kB / 477 MB, free: 10.47 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/0.3671, allocations: 18.38 kB / 477 MB, free: 10.46 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.948e-05/0.3671, allocations: 34.69 kB / 477.1 MB, free: 10.42 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.312e-06/0.3671, allocations: 0 / 477.1 MB, free: 10.42 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.00024/0.3674, allocations: 106.2 kB / 477.2 MB, free: 10.33 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.668e-05/0.3674, allocations: 102.8 kB / 477.3 MB, free: 10.21 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.328e-05/0.3675, allocations: 111.9 kB / 477.4 MB, free: 10.1 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.078e-05/0.3675, allocations: 33.73 kB / 477.4 MB, free: 10.06 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.145e-05/0.3676, allocations: 106.3 kB / 477.5 MB, free: 9.961 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.565e-05/0.3676, allocations: 26.92 kB / 477.6 MB, free: 9.941 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.749e-06/0.3676, allocations: 0 / 477.6 MB, free: 9.941 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.259e-05/0.3676, allocations: 320.8 kB / 477.9 MB, free: 9.629 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.549e-05/0.3677, allocations: 19.5 kB / 477.9 MB, free: 9.617 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.214e-05/0.3677, allocations: 114.9 kB / 478 MB, free: 9.473 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.294e-05/0.3678, allocations: 43.11 kB / 478 MB, free: 9.445 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3678, allocations: 0 / 478 MB, free: 9.445 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001717/0.368, allocations: 140.8 kB / 478.2 MB, free: 9.328 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.009e-05/0.368, allocations: 8 kB / 478.2 MB, free: 9.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.368, allocations: 96 / 478.2 MB, free: 9.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.368, allocations: 11.98 kB / 478.2 MB, free: 9.309 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001764/0.3682, allocations: 42.84 kB / 478.2 MB, free: 9.273 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.3682, allocations: 11.94 kB / 478.2 MB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/0.3683, allocations: 27.7 kB / 478.3 MB, free: 9.242 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/0.3684, allocations: 8 kB / 478.3 MB, free: 9.234 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.363e-05/0.3684, allocations: 112.8 kB / 478.4 MB, free: 9.117 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/0.3685, allocations: 77.03 kB / 478.5 MB, free: 9.055 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.957e-05/0.3686, allocations: 12.25 kB / 478.5 MB, free: 9.051 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.3686, allocations: 8 kB / 478.5 MB, free: 9.043 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.3686, allocations: 0 / 478.5 MB, free: 9.043 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.3686, allocations: 3.938 kB / 478.5 MB, free: 9.039 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001748/0.3688, allocations: 173.8 kB / 478.7 MB, free: 8.863 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.3688, allocations: 2 kB / 478.7 MB, free: 8.863 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001741/0.369, allocations: 37.73 kB / 478.7 MB, free: 8.836 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.369, allocations: 4 kB / 478.7 MB, free: 8.832 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.369, allocations: 0 / 478.7 MB, free: 8.832 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.369, allocations: 8 kB / 478.7 MB, free: 8.824 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.369, allocations: 3.906 kB / 478.7 MB, free: 8.82 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002319/0.3693, allocations: 345.1 kB / 479.1 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.584e-05/0.3693, allocations: 91.91 kB / 479.1 MB, free: 8.395 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.109e-05/0.3693, allocations: 4.062 kB / 479.1 MB, free: 8.391 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001436/0.3695, allocations: 12.92 kB / 479.2 MB, free: 8.383 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.292e-05/0.3695, allocations: 7.75 kB / 479.2 MB, free: 8.379 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.3695, allocations: 6.953 kB / 479.2 MB, free: 8.375 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.112e-05/0.3696, allocations: 90.84 kB / 479.3 MB, free: 8.293 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002953/0.3699, allocations: 28.03 kB / 479.3 MB, free: 8.266 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 (14): * Single equations (assignments): 14 * 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 9.828e-05/0.37, allocations: 106.2 kB / 479.4 MB, free: 8.156 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001412/0.3701, allocations: 82.02 kB / 479.5 MB, free: 8.094 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.3701, allocations: 0 / 479.5 MB, free: 8.094 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.685e-05/0.3702, allocations: 11.94 kB / 479.5 MB, free: 8.086 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003352/0.3705, allocations: 43.34 kB / 479.5 MB, free: 8.059 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004681/0.371, allocations: 271.5 kB / 479.8 MB, free: 7.805 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001646/0.3712, allocations: 0.7388 MB / 480.5 MB, free: 7.055 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.3712, allocations: 0 / 480.5 MB, free: 7.055 MB / 346.7 MB Notification: Performance of Templates: time 0.003082/0.3743, allocations: 1.07 MB / 481.6 MB, free: 6.461 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches