Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,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.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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 183.9 kB / 8.134 MB, free: 2.203 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.238/1.238, allocations: 221.4 MB / 229.9 MB, free: 3.031 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.0009077/0.0009077, allocations: 94.75 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.01e-06/5.05e-06, allocations: 0 / 336.5 MB, free: 9.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1822/0.1822, allocations: 50.4 MB / 386.9 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0844/0.2666, allocations: 77.86 MB / 464.8 MB, free: 9.027 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002752/0.267, allocations: 67.97 kB / 464.8 MB, free: 8.961 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.009228/0.2762, allocations: 2.049 MB / 466.9 MB, free: 6.938 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.539e-05/0.2763, allocations: 4 kB / 466.9 MB, free: 6.934 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.0006443/0.2769, allocations: 414.2 kB / 467.3 MB, free: 6.484 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.277, allocations: 8.031 kB / 467.3 MB, free: 6.477 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.043e-05/0.277, allocations: 15.81 kB / 467.3 MB, free: 6.461 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002678/0.2773, allocations: 194.9 kB / 467.5 MB, free: 6.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.518e-05/0.2774, allocations: 4 kB / 467.5 MB, free: 6.227 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.148e-05/0.2774, allocations: 11.94 kB / 467.5 MB, free: 6.215 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002398/0.2777, allocations: 63.98 kB / 467.6 MB, free: 6.152 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005205/0.2782, allocations: 208 kB / 467.8 MB, free: 5.926 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.2782, allocations: 0 / 467.8 MB, free: 5.926 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.346e-05/0.2783, allocations: 12.94 kB / 467.8 MB, free: 5.914 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.327e-06/0.2783, allocations: 0.9375 kB / 467.8 MB, free: 5.914 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007985/0.2791, allocations: 0.5575 MB / 468.4 MB, free: 5.293 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003611/0.2795, allocations: 125.1 kB / 468.5 MB, free: 5.148 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001333/0.2796, allocations: 54.56 kB / 468.5 MB, free: 5.086 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.135e-05/0.2797, allocations: 4 kB / 468.5 MB, free: 5.082 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.603e-05/0.2797, allocations: 42.69 kB / 468.6 MB, free: 5.031 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.314e-06/0.2797, allocations: 3.938 kB / 468.6 MB, free: 5.027 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003557/0.2801, allocations: 111.5 kB / 468.7 MB, free: 4.914 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.571e-05/0.2802, allocations: 102.8 kB / 468.8 MB, free: 4.789 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001155/0.2803, allocations: 113.3 kB / 468.9 MB, free: 4.668 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.079e-05/0.2803, allocations: 25.7 kB / 468.9 MB, free: 4.637 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.937e-05/0.2804, allocations: 112 kB / 469 MB, free: 4.523 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.019e-05/0.2804, allocations: 31.64 kB / 469.1 MB, free: 4.488 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.504e-06/0.2804, allocations: 0 / 469.1 MB, free: 4.488 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.2806, allocations: 318.8 kB / 469.4 MB, free: 4.168 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.011e-05/0.2806, allocations: 20.38 kB / 469.4 MB, free: 4.145 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000138/0.2808, allocations: 122.2 kB / 469.5 MB, free: 3.977 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001104/0.2809, allocations: 45.14 kB / 469.6 MB, free: 3.934 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.2809, allocations: 0 / 469.6 MB, free: 3.934 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003591/0.2813, allocations: 141.4 kB / 469.7 MB, free: 3.789 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.2813, allocations: 8 kB / 469.7 MB, free: 3.781 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.258e-06/0.2813, allocations: 4 kB / 469.7 MB, free: 3.777 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.2814, allocations: 4.562 kB / 469.7 MB, free: 3.773 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002761/0.2816, allocations: 52.78 kB / 469.8 MB, free: 3.723 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.2817, allocations: 8.375 kB / 469.8 MB, free: 3.715 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001992/0.2819, allocations: 23.83 kB / 469.8 MB, free: 3.691 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.093e-05/0.2819, allocations: 12 kB / 469.8 MB, free: 3.68 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 9.216e-05/0.282, allocations: 112.8 kB / 469.9 MB, free: 3.562 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002415/0.2823, allocations: 82.47 kB / 470 MB, free: 3.477 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.139e-05/0.2824, allocations: 16.5 kB / 470 MB, free: 3.461 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/0.2824, allocations: 4 kB / 470 MB, free: 3.457 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.679e-06/0.2824, allocations: 7.984 kB / 470 MB, free: 3.449 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.2824, allocations: 1.812 kB / 470 MB, free: 3.449 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003678/0.2828, allocations: 170.1 kB / 470.2 MB, free: 3.246 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.2828, allocations: 3.938 kB / 470.2 MB, free: 3.242 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003104/0.2831, allocations: 43.91 kB / 470.2 MB, free: 3.199 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.2832, allocations: 3.906 kB / 470.2 MB, free: 3.195 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.2832, allocations: 0 / 470.2 MB, free: 3.195 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.167e-06/0.2832, allocations: 8 kB / 470.3 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/0.2832, allocations: 0 / 470.3 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004931/0.2837, allocations: 350.2 kB / 470.6 MB, free: 2.816 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.884e-05/0.2838, allocations: 89 kB / 470.7 MB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.346e-05/0.2838, allocations: 8 kB / 470.7 MB, free: 2.703 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000279/0.2841, allocations: 12.41 kB / 470.7 MB, free: 2.691 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.466e-05/0.2842, allocations: 11.98 kB / 470.7 MB, free: 2.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/0.2842, allocations: 4 kB / 470.7 MB, free: 2.676 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.492e-05/0.2843, allocations: 95.2 kB / 470.8 MB, free: 2.582 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006248/0.2849, allocations: 28.08 kB / 470.8 MB, free: 2.555 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.0001382/0.2851, allocations: 99.25 kB / 470.9 MB, free: 2.449 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002447/0.2853, allocations: 87.86 kB / 471 MB, free: 2.363 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2853, allocations: 0 / 471 MB, free: 2.363 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.096e-05/0.2854, allocations: 15.94 kB / 471 MB, free: 2.348 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005324/0.2859, allocations: 57.52 kB / 471.1 MB, free: 2.297 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000801/0.2868, allocations: 284.5 kB / 471.4 MB, free: 1.996 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003816/0.2872, allocations: 0.7393 MB / 472.1 MB, free: 1.23 MB / 346.7 MB Notification: Performance of SimCode: time 4.21e-07/0.2872, allocations: 0 / 472.1 MB, free: 1.23 MB / 346.7 MB Notification: Performance of Templates: time 0.004911/0.2921, allocations: 1.092 MB / 473.2 MB, free: 172 kB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches