Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,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.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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001015/0.001016, allocations: 180.9 kB / 8.13 MB, free: 2.199 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.161/1.161, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.0008865/0.0008865, allocations: 101.7 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.33e-06/5.37e-06, allocations: 0 / 336.5 MB, free: 9.539 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1919/0.1919, allocations: 50.39 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08409/0.2761, allocations: 78.07 MB / 465 MB, free: 8.754 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002175/0.2763, allocations: 72.98 kB / 465 MB, free: 8.684 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.007279/0.2836, allocations: 2.433 MB / 467.5 MB, free: 6.289 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.173e-05/0.2837, allocations: 4 kB / 467.5 MB, free: 6.285 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.0004893/0.2842, allocations: 418.2 kB / 467.9 MB, free: 5.832 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.2842, allocations: 16.03 kB / 467.9 MB, free: 5.816 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.193e-05/0.2843, allocations: 19.72 kB / 467.9 MB, free: 5.797 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002084/0.2845, allocations: 218.7 kB / 468.1 MB, free: 5.543 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.063e-05/0.2845, allocations: 4 kB / 468.1 MB, free: 5.539 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.876e-05/0.2845, allocations: 8 kB / 468.1 MB, free: 5.531 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001564/0.2847, allocations: 59.98 kB / 468.2 MB, free: 5.473 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003284/0.285, allocations: 218.1 kB / 468.4 MB, free: 5.238 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.285, allocations: 0 / 468.4 MB, free: 5.238 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.2851, allocations: 0 / 468.4 MB, free: 5.238 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.2851, allocations: 7.984 kB / 468.4 MB, free: 5.23 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005335/0.2856, allocations: 0.5652 MB / 469 MB, free: 4.602 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002389/0.2859, allocations: 118.9 kB / 469.1 MB, free: 4.461 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.642e-05/0.286, allocations: 66.75 kB / 469.2 MB, free: 4.387 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.286, allocations: 3.938 kB / 469.2 MB, free: 4.383 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.764e-05/0.286, allocations: 34.56 kB / 469.2 MB, free: 4.34 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.286, allocations: 0 / 469.2 MB, free: 4.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002669/0.2863, allocations: 105.5 kB / 469.3 MB, free: 4.23 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.162e-05/0.2864, allocations: 114.8 kB / 469.4 MB, free: 4.094 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.2865, allocations: 138.8 kB / 469.6 MB, free: 3.953 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.36e-05/0.2865, allocations: 29.64 kB / 469.6 MB, free: 3.918 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.602e-05/0.2865, allocations: 104.5 kB / 469.7 MB, free: 3.812 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.117e-05/0.2866, allocations: 31.64 kB / 469.7 MB, free: 3.781 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.019e-06/0.2866, allocations: 0 / 469.7 MB, free: 3.781 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.315e-05/0.2867, allocations: 322.8 kB / 470 MB, free: 3.457 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.053e-05/0.2867, allocations: 20.38 kB / 470.1 MB, free: 3.434 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.508e-05/0.2868, allocations: 118.3 kB / 470.2 MB, free: 3.27 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.277e-05/0.2869, allocations: 43.86 kB / 470.2 MB, free: 3.227 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2869, allocations: 4 kB / 470.2 MB, free: 3.223 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002045/0.2871, allocations: 141.2 kB / 470.4 MB, free: 3.078 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.107e-05/0.2871, allocations: 8 kB / 470.4 MB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.2871, allocations: 4.469 kB / 470.4 MB, free: 3.066 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.2871, allocations: 8 kB / 470.4 MB, free: 3.059 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001688/0.2873, allocations: 47.92 kB / 470.4 MB, free: 3.012 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.2873, allocations: 16.48 kB / 470.4 MB, free: 2.996 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.2875, allocations: 16.88 kB / 470.5 MB, free: 2.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/0.2875, allocations: 8 kB / 470.5 MB, free: 2.973 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 6.448e-05/0.2875, allocations: 112.9 kB / 470.6 MB, free: 2.855 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001346/0.2877, allocations: 81.53 kB / 470.7 MB, free: 2.77 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.577e-05/0.2878, allocations: 20.48 kB / 470.7 MB, free: 2.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.2878, allocations: 10.16 kB / 470.7 MB, free: 2.742 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.2878, allocations: 0.75 kB / 470.7 MB, free: 2.742 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.2878, allocations: 4 kB / 470.7 MB, free: 2.738 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002092/0.288, allocations: 182 kB / 470.9 MB, free: 2.523 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.288, allocations: 4 kB / 470.9 MB, free: 2.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002016/0.2882, allocations: 48.72 kB / 470.9 MB, free: 2.473 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.2882, allocations: 4 kB / 470.9 MB, free: 2.469 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.131e-05/0.2883, allocations: 0 / 470.9 MB, free: 2.469 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.2883, allocations: 0 / 470.9 MB, free: 2.469 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.2883, allocations: 4 kB / 470.9 MB, free: 2.465 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002929/0.2886, allocations: 362.7 kB / 471.3 MB, free: 2.078 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.353e-05/0.2886, allocations: 97 kB / 471.4 MB, free: 1.965 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.547e-05/0.2887, allocations: 5.094 kB / 471.4 MB, free: 1.961 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.2888, allocations: 11.98 kB / 471.4 MB, free: 1.949 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.287e-05/0.2889, allocations: 8.062 kB / 471.4 MB, free: 1.941 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.2889, allocations: 8 kB / 471.4 MB, free: 1.934 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.316e-05/0.289, allocations: 111.2 kB / 471.5 MB, free: 1.824 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000309/0.2893, allocations: 28.08 kB / 471.5 MB, free: 1.797 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.000107/0.2894, allocations: 103.2 kB / 471.6 MB, free: 1.688 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001482/0.2895, allocations: 84.42 kB / 471.7 MB, free: 1.605 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.2896, allocations: 320 / 471.7 MB, free: 1.605 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.114e-05/0.2896, allocations: 20 kB / 471.7 MB, free: 1.586 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003448/0.2899, allocations: 57.03 kB / 471.8 MB, free: 1.531 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005179/0.2905, allocations: 309.9 kB / 472.1 MB, free: 1.207 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002729/0.2908, allocations: 0.747 MB / 472.8 MB, free: 444 kB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2908, allocations: 0 / 472.8 MB, free: 444 kB / 346.7 MB Notification: Performance of Templates: time 0.003291/0.2941, allocations: 1.21 MB / 474.1 MB, free: 15.27 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches