Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 182.8 kB / 8.137 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.16/1.16, allocations: 221.4 MB / 229.9 MB, free: 3.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009215/0.0009215, allocations: 99.84 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.464e-06/7.474e-06, allocations: 4 kB / 336.5 MB, free: 9.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1825/0.1825, allocations: 50.4 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07848/0.261, allocations: 77.81 MB / 464.7 MB, free: 9.004 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001835/0.2612, allocations: 75.89 kB / 464.8 MB, free: 8.93 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.005934/0.2672, allocations: 2.036 MB / 466.8 MB, free: 6.922 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.2672, allocations: 0 / 466.8 MB, free: 6.922 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.0004572/0.2677, allocations: 402.1 kB / 467.2 MB, free: 6.484 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.2677, allocations: 12.88 kB / 467.2 MB, free: 6.473 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.025e-05/0.2678, allocations: 11.81 kB / 467.2 MB, free: 6.461 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002019/0.268, allocations: 203 kB / 467.4 MB, free: 6.223 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.268, allocations: 7.906 kB / 467.4 MB, free: 6.215 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.609e-05/0.268, allocations: 8 kB / 467.5 MB, free: 6.207 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001706/0.2682, allocations: 59.98 kB / 467.5 MB, free: 6.148 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003254/0.2685, allocations: 202.6 kB / 467.7 MB, free: 5.926 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.2686, allocations: 0 / 467.7 MB, free: 5.926 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.2686, allocations: 0 / 467.7 MB, free: 5.926 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.515e-06/0.2686, allocations: 14.33 kB / 467.7 MB, free: 5.914 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000527/0.2691, allocations: 0.5535 MB / 468.3 MB, free: 5.297 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001648/0.2693, allocations: 120.5 kB / 468.4 MB, free: 5.156 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.009e-05/0.2694, allocations: 54.66 kB / 468.4 MB, free: 5.094 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.527e-05/0.2694, allocations: 7.984 kB / 468.5 MB, free: 5.086 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.157e-05/0.2694, allocations: 42.5 kB / 468.5 MB, free: 5.035 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.362e-06/0.2695, allocations: 3.938 kB / 468.5 MB, free: 5.031 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002411/0.2697, allocations: 105.4 kB / 468.6 MB, free: 4.922 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.426e-05/0.2698, allocations: 102.8 kB / 468.7 MB, free: 4.797 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.949e-05/0.2699, allocations: 113.3 kB / 468.8 MB, free: 4.676 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.54e-05/0.2699, allocations: 25.7 kB / 468.8 MB, free: 4.645 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.795e-05/0.2699, allocations: 110.4 kB / 468.9 MB, free: 4.535 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.05e-05/0.27, allocations: 31.67 kB / 469 MB, free: 4.504 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.909e-06/0.27, allocations: 0 / 469 MB, free: 4.504 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.2701, allocations: 318.8 kB / 469.3 MB, free: 4.184 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.084e-05/0.2701, allocations: 20.66 kB / 469.3 MB, free: 4.164 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.384e-05/0.2702, allocations: 112.8 kB / 469.4 MB, free: 4.008 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.774e-05/0.2703, allocations: 37.28 kB / 469.5 MB, free: 3.973 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2703, allocations: 4 kB / 469.5 MB, free: 3.969 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000201/0.2705, allocations: 137.6 kB / 469.6 MB, free: 3.828 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.05e-05/0.2705, allocations: 4 kB / 469.6 MB, free: 3.824 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.2705, allocations: 4 kB / 469.6 MB, free: 3.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.2706, allocations: 8.75 kB / 469.6 MB, free: 3.812 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000191/0.2708, allocations: 51.91 kB / 469.7 MB, free: 3.762 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.459e-05/0.2708, allocations: 7.938 kB / 469.7 MB, free: 3.754 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001152/0.2709, allocations: 27.89 kB / 469.7 MB, free: 3.727 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.316e-05/0.2709, allocations: 8.75 kB / 469.7 MB, free: 3.719 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 6.433e-05/0.271, allocations: 106.6 kB / 469.8 MB, free: 3.609 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001311/0.2711, allocations: 78.44 kB / 469.9 MB, free: 3.523 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.55e-05/0.2712, allocations: 12.5 kB / 469.9 MB, free: 3.512 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.2712, allocations: 4 kB / 469.9 MB, free: 3.508 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.2712, allocations: 0 / 469.9 MB, free: 3.508 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.2712, allocations: 3.984 kB / 469.9 MB, free: 3.504 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002029/0.2714, allocations: 178 kB / 470.1 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.2714, allocations: 0.7812 kB / 470.1 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001933/0.2716, allocations: 39.92 kB / 470.1 MB, free: 3.254 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.2716, allocations: 11.92 kB / 470.1 MB, free: 3.242 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.2717, allocations: 4.797 kB / 470.1 MB, free: 3.238 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.2717, allocations: 4 kB / 470.1 MB, free: 3.234 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.2717, allocations: 0 / 470.1 MB, free: 3.234 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002908/0.272, allocations: 351.3 kB / 470.5 MB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.579e-05/0.272, allocations: 85.02 kB / 470.6 MB, free: 2.758 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.095e-05/0.2721, allocations: 3.938 kB / 470.6 MB, free: 2.754 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001551/0.2722, allocations: 21.61 kB / 470.6 MB, free: 2.734 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.03e-05/0.2723, allocations: 4 kB / 470.6 MB, free: 2.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.155e-06/0.2723, allocations: 3.984 kB / 470.6 MB, free: 2.727 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.58e-05/0.2723, allocations: 98.66 kB / 470.7 MB, free: 2.633 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003211/0.2726, allocations: 27.84 kB / 470.7 MB, free: 2.605 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 0.0001066/0.2728, allocations: 103.2 kB / 470.8 MB, free: 2.496 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001458/0.2729, allocations: 83.81 kB / 470.9 MB, free: 2.414 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.2729, allocations: 0 / 470.9 MB, free: 2.414 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.125e-05/0.273, allocations: 12 kB / 470.9 MB, free: 2.402 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003202/0.2733, allocations: 46.33 kB / 471 MB, free: 2.359 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000532/0.2738, allocations: 276 kB / 471.2 MB, free: 2.062 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002735/0.2741, allocations: 0.7313 MB / 472 MB, free: 1.305 MB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.2741, allocations: 4 kB / 472 MB, free: 1.301 MB / 346.7 MB Notification: Performance of Templates: time 0.002992/0.2771, allocations: 1.076 MB / 473 MB, free: 276 kB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches