Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001246/0.001246, allocations: 91.5 kB / 21.19 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001045/0.001045, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8837/0.8837, allocations: 177 MB / 204.8 MB, free: 5.246 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 272.9 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.548e-05/1.677e-05, allocations: 5.266 kB / 272.9 MB, free: 1.328 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002286/0.002303, allocations: 2.183 MB / 275.1 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008952/0.003198, allocations: 0.6664 MB / 275.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001013/0.003299, allocations: 7.938 kB / 275.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002486/0.003548, allocations: 39.7 kB / 275.8 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001224/0.00367, allocations: 59.55 kB / 275.8 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003074/0.003978, allocations: 123.7 kB / 276 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002721/0.00425, allocations: 351.1 kB / 276.3 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/0.004394, allocations: 48.53 kB / 276.3 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002877/0.004682, allocations: 203.6 kB / 276.5 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001728/0.004854, allocations: 127.7 kB / 276.7 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.106e-05/0.004895, allocations: 32 kB / 276.7 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.535e-05/0.004931, allocations: 28 kB / 276.7 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.204e-05/0.005013, allocations: 103.6 kB / 276.8 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.599e-05/0.005089, allocations: 87.78 kB / 276.9 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002208/0.00531, allocations: 223.3 kB / 277.1 MB, free: 13.05 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.005312, allocations: 0 / 277.1 MB, free: 13.05 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.51e-07/0.005312, allocations: 0 / 277.1 MB, free: 13.05 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.005317, allocations: 0 / 277.1 MB, free: 13.05 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0006756/0.005993, allocations: 0.5972 MB / 277.7 MB, free: 12.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.006026, allocations: 11.98 kB / 277.7 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.696e-05/0.006103, allocations: 60.8 kB / 277.8 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002047/0.006308, allocations: 184.8 kB / 278 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001856/0.006493, allocations: 335.8 kB / 278.3 MB, free: 11.74 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.105e-05/0.006534, allocations: 24.38 kB / 278.3 MB, free: 11.72 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003787/0.006913, allocations: 297.2 kB / 278.6 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.006927, allocations: 7.953 kB / 278.6 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.11e-05/0.006948, allocations: 4 kB / 278.6 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.006959, allocations: 8 kB / 278.6 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003391/0.007298, allocations: 218.8 kB / 278.9 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009592/0.008258, allocations: 0.8705 MB / 279.7 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003527/0.00861, allocations: 186.9 kB / 279.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001222/0.008732, allocations: 75.64 kB / 280 MB, free: 9.988 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.557e-05/0.008758, allocations: 4 kB / 280 MB, free: 9.984 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/0.008779, allocations: 41.39 kB / 280 MB, free: 9.934 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.212e-06/0.008781, allocations: 0 / 280 MB, free: 9.934 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.005357/0.01414, allocations: 2.845 MB / 282.9 MB, free: 7.023 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.84e-05/0.01417, allocations: 55.91 kB / 282.9 MB, free: 6.957 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001391/0.01431, allocations: 245.8 kB / 283.2 MB, free: 6.699 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.423e-05/0.01434, allocations: 37.7 kB / 283.2 MB, free: 6.656 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.063e-05/0.01441, allocations: 195.7 kB / 283.4 MB, free: 6.461 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.763e-05/0.01451, allocations: 182.4 kB / 283.6 MB, free: 6.281 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001354/0.01464, allocations: 99.94 kB / 283.7 MB, free: 6.176 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.01476, allocations: 0.5078 MB / 284.2 MB, free: 5.656 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002776/0.01504, allocations: 209.2 kB / 284.4 MB, free: 5.449 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003039/0.01534, allocations: 293.4 kB / 284.7 MB, free: 5.145 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004699/0.01581, allocations: 412.3 kB / 285.1 MB, free: 4.723 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.01581, allocations: 0 / 285.1 MB, free: 4.723 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006743/0.01649, allocations: 0.5481 MB / 285.6 MB, free: 4.164 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.0165, allocations: 4 kB / 285.6 MB, free: 4.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.01651, allocations: 0 / 285.6 MB, free: 4.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.01653, allocations: 8.125 kB / 285.6 MB, free: 4.152 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004373/0.01696, allocations: 155.8 kB / 285.8 MB, free: 4 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.615e-06/0.01697, allocations: 4 kB / 285.8 MB, free: 3.996 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002614/0.01723, allocations: 71.84 kB / 285.9 MB, free: 3.926 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.173e-05/0.01726, allocations: 16 kB / 285.9 MB, free: 3.91 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001233/0.01739, allocations: 184.5 kB / 286.1 MB, free: 3.719 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.876e-05/0.01746, allocations: 43.81 kB / 286.1 MB, free: 3.676 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.448e-05/0.01751, allocations: 59.23 kB / 286.2 MB, free: 3.621 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.01751, allocations: 8 kB / 286.2 MB, free: 3.613 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.01752, allocations: 0 / 286.2 MB, free: 3.613 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.01752, allocations: 0 / 286.2 MB, free: 3.613 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001445/0.01897, allocations: 1.321 MB / 287.5 MB, free: 2.105 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.229e-06/0.01897, allocations: 8 kB / 287.5 MB, free: 2.098 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002773/0.01925, allocations: 131.8 kB / 287.6 MB, free: 1.969 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.965e-06/0.01926, allocations: 12 kB / 287.6 MB, free: 1.957 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.379e-05/0.01928, allocations: 16.59 kB / 287.6 MB, free: 1.941 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.997e-06/0.01929, allocations: 23.92 kB / 287.7 MB, free: 1.918 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.0193, allocations: 11.94 kB / 287.7 MB, free: 1.906 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007561/0.02005, allocations: 0.8801 MB / 288.6 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.258e-05/0.02015, allocations: 63.81 kB / 288.6 MB, free: 0.793 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.545e-05/0.02018, allocations: 23.98 kB / 288.6 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002072/0.02039, allocations: 55.94 kB / 288.7 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/0.0205, allocations: 79.66 kB / 288.8 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.328e-05/0.02053, allocations: 27.98 kB / 288.8 MB, free: 0.6094 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.958e-05/0.02061, allocations: 168.2 kB / 289 MB, free: 456 kB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02061, allocations: 0 / 289 MB, free: 456 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002854/0.02089, allocations: 92 kB / 289.1 MB, free: 364 kB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.62e-05/0.02099, allocations: 127.1 kB / 289.2 MB, free: 224 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005611/0.02155, allocations: 427 kB / 289.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.02155, allocations: 0 / 289.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001951/0.02175, allocations: 166 kB / 289.8 MB, free: 15.63 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003785/0.02213, allocations: 87.83 kB / 289.8 MB, free: 15.55 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001243/0.02337, allocations: 0.9661 MB / 290.8 MB, free: 14.4 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.246e-05/0.02344, allocations: 105.6 kB / 290.9 MB, free: 14.28 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002127/0.02365, allocations: 78.88 kB / 291 MB, free: 14.21 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.0238, allocations: 32.5 kB / 291 MB, free: 14.18 MB / 282.7 MB Notification: Performance of SimCode: time 7.22e-07/0.0238, allocations: 0 / 291 MB, free: 14.18 MB / 282.7 MB Notification: Performance of Templates: time 0.006783/0.03059, allocations: 6.136 MB / 297.2 MB, free: 8.113 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9689076440408826]