Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [: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.001407/0.001407, allocations: 199.2 kB / 8.542 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.224/1.224, allocations: 225.5 MB / 234.4 MB, free: 3.434 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008611/0.0008611, allocations: 87.77 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.212e-06/6.232e-06, allocations: 0 / 343.1 MB, free: 8.781 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08712/0.08714, allocations: 51.47 MB / 394.6 MB, free: 5.25 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2598/0.347, allocations: 78.8 MB / 473.4 MB, free: 13.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000206/0.3472, allocations: 77.64 kB / 473.5 MB, free: 13.03 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.006255/0.3535, allocations: 2.375 MB / 475.9 MB, free: 11.78 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.3535, allocations: 4 kB / 475.9 MB, free: 11.77 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.000399/0.3539, allocations: 413.1 kB / 476.3 MB, free: 11.36 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.354, allocations: 8.031 kB / 476.3 MB, free: 11.35 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.933e-05/0.354, allocations: 15.81 kB / 476.3 MB, free: 11.33 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001695/0.3542, allocations: 203.4 kB / 476.5 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.063e-05/0.3542, allocations: 4 kB / 476.5 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.08e-05/0.3543, allocations: 11.25 kB / 476.5 MB, free: 11.1 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001458/0.3544, allocations: 51.95 kB / 476.6 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002875/0.3547, allocations: 188.5 kB / 476.7 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.3547, allocations: 0 / 476.7 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.3548, allocations: 3.391 kB / 476.7 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.3548, allocations: 7.375 kB / 476.7 MB, free: 10.9 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004709/0.3552, allocations: 0.5576 MB / 477.3 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002185/0.3555, allocations: 126.9 kB / 477.4 MB, free: 10.25 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.749e-05/0.3555, allocations: 52.89 kB / 477.5 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.888e-05/0.3556, allocations: 8.125 kB / 477.5 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.336e-05/0.3556, allocations: 37.78 kB / 477.5 MB, free: 10.15 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.202e-06/0.3556, allocations: 4 kB / 477.5 MB, free: 10.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002189/0.3558, allocations: 102.8 kB / 477.6 MB, free: 10.06 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.006e-05/0.3559, allocations: 110.2 kB / 477.7 MB, free: 9.934 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.449e-05/0.356, allocations: 114.6 kB / 477.9 MB, free: 9.824 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.271e-05/0.356, allocations: 29.7 kB / 477.9 MB, free: 9.789 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.332e-05/0.356, allocations: 117.2 kB / 478 MB, free: 9.684 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.556e-05/0.356, allocations: 26.33 kB / 478 MB, free: 9.664 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.341e-06/0.356, allocations: 4.031 kB / 478 MB, free: 9.66 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.516e-05/0.3561, allocations: 325.3 kB / 478.3 MB, free: 9.344 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.68e-05/0.3561, allocations: 19.31 kB / 478.4 MB, free: 9.328 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.051e-05/0.3562, allocations: 118.8 kB / 478.5 MB, free: 9.18 MB / 346.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = 0.0 (PI.y_start = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0001752/0.3564, allocations: 128.4 kB / 478.6 MB, free: 9.055 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3564, allocations: 0 / 478.6 MB, free: 9.055 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001991/0.3566, allocations: 149.3 kB / 478.7 MB, free: 8.93 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.768e-06/0.3566, allocations: 4 kB / 478.8 MB, free: 8.926 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.3566, allocations: 4 kB / 478.8 MB, free: 8.922 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.3567, allocations: 7.094 kB / 478.8 MB, free: 8.918 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001587/0.3568, allocations: 50.22 kB / 478.8 MB, free: 8.875 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.3568, allocations: 8.281 kB / 478.8 MB, free: 8.867 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001105/0.357, allocations: 26.8 kB / 478.8 MB, free: 8.844 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.357, allocations: 14.94 kB / 478.9 MB, free: 8.836 MB / 346.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: PI.y = 0.0 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.02e-05/0.357, allocations: 105 kB / 479 MB, free: 8.727 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.3572, allocations: 91.12 kB / 479.1 MB, free: 8.652 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.936e-05/0.3572, allocations: 8 kB / 479.1 MB, free: 8.652 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.3572, allocations: 11.83 kB / 479.1 MB, free: 8.645 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.768e-06/0.3572, allocations: 0 / 479.1 MB, free: 8.645 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.3572, allocations: 3.094 kB / 479.1 MB, free: 8.645 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001787/0.3574, allocations: 179.5 kB / 479.2 MB, free: 8.461 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3574, allocations: 0 / 479.2 MB, free: 8.461 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002157/0.3577, allocations: 53.22 kB / 479.3 MB, free: 8.422 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.3577, allocations: 0 / 479.3 MB, free: 8.422 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.3577, allocations: 0 / 479.3 MB, free: 8.422 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.3577, allocations: 10.81 kB / 479.3 MB, free: 8.414 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.3577, allocations: 0 / 479.3 MB, free: 8.414 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002344/0.3579, allocations: 358.1 kB / 479.7 MB, free: 8.086 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.82e-05/0.358, allocations: 92.28 kB / 479.8 MB, free: 7.98 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.296e-05/0.358, allocations: 8.062 kB / 479.8 MB, free: 7.973 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000154/0.3582, allocations: 7.094 kB / 479.8 MB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.025e-05/0.3582, allocations: 7.906 kB / 479.8 MB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.416e-06/0.3582, allocations: 9.891 kB / 479.8 MB, free: 7.957 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.718e-05/0.3583, allocations: 96.81 kB / 479.9 MB, free: 7.871 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003167/0.3586, allocations: 22.16 kB / 479.9 MB, free: 7.852 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 9.173e-05/0.3587, allocations: 106.7 kB / 480 MB, free: 7.742 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001457/0.3588, allocations: 94.81 kB / 480.1 MB, free: 7.672 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3588, allocations: 0 / 480.1 MB, free: 7.672 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.745e-05/0.3589, allocations: 11.06 kB / 480.1 MB, free: 7.664 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000352/0.3592, allocations: 52.95 kB / 480.2 MB, free: 7.629 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006076/0.3598, allocations: 298.7 kB / 480.5 MB, free: 7.359 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001647/0.36, allocations: 0.7389 MB / 481.2 MB, free: 6.613 MB / 346.7 MB Notification: Performance of SimCode: time 6.31e-07/0.36, allocations: 4 kB / 481.2 MB, free: 6.609 MB / 346.7 MB Notification: Performance of Templates: time 0.003142/0.3632, allocations: 1.197 MB / 482.4 MB, free: 5.836 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches