Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.0009681/0.0009681, allocations: 88.73 kB / 21.5 MB, free: 2.984 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.0009074/0.0009074, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 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.9538/0.9538, allocations: 177 MB / 205.2 MB, free: 5.039 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.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 273.4 MB, free: 1.066 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.427e-05/1.567e-05, allocations: 6.25 kB / 273.4 MB, free: 1.059 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002557/0.002573, allocations: 2.402 MB / 275.8 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001061/0.003633, allocations: 0.8412 MB / 276.6 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001138/0.003747, allocations: 7.938 kB / 276.6 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002169/0.003964, allocations: 47.62 kB / 276.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001505/0.004115, allocations: 63.44 kB / 276.8 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003017/0.004416, allocations: 187.4 kB / 276.9 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002681/0.004684, allocations: 391.5 kB / 277.3 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001258/0.00481, allocations: 82.81 kB / 277.4 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002576/0.005068, allocations: 223.6 kB / 277.6 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001476/0.005215, allocations: 143.6 kB / 277.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.782e-05/0.005253, allocations: 43.88 kB / 277.8 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.069e-05/0.005284, allocations: 36 kB / 277.8 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.004e-05/0.005364, allocations: 103.7 kB / 277.9 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.509e-05/0.005429, allocations: 103.7 kB / 278 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002114/0.00564, allocations: 251.2 kB / 278.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.112e-06/0.005641, allocations: 0 / 278.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.005642, allocations: 3.938 kB / 278.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.076e-06/0.005645, allocations: 0 / 278.3 MB, free: 12.14 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.000589/0.006234, allocations: 0.5235 MB / 278.8 MB, free: 11.59 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.089e-05/0.006265, allocations: 11.98 kB / 278.8 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.99e-05/0.006335, allocations: 60.89 kB / 278.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001827/0.006517, allocations: 181.8 kB / 279.1 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001524/0.00667, allocations: 351.9 kB / 279.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.632e-05/0.006706, allocations: 36.36 kB / 279.4 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000406/0.007112, allocations: 411.7 kB / 279.8 MB, free: 10.44 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.007125, allocations: 12.08 kB / 279.9 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.935e-05/0.007145, allocations: 16.12 kB / 279.9 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.034e-06/0.007152, allocations: 8 kB / 279.9 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00024/0.007392, allocations: 178.6 kB / 280.1 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006083/0.008, allocations: 0.639 MB / 280.7 MB, free: 9.547 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004067/0.008407, allocations: 318.7 kB / 281 MB, free: 9.195 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.008513, allocations: 111.5 kB / 281.1 MB, free: 9.074 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.839e-05/0.008542, allocations: 8 kB / 281.1 MB, free: 9.066 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.053e-05/0.008562, allocations: 42.5 kB / 281.2 MB, free: 9.016 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.413e-06/0.008564, allocations: 4 kB / 281.2 MB, free: 9.012 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.005382/0.01395, allocations: 2.253 MB / 283.4 MB, free: 6.758 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.86e-05/0.014, allocations: 157 kB / 283.6 MB, free: 6.574 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.356e-05/0.0141, allocations: 183.3 kB / 283.7 MB, free: 6.379 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.701e-05/0.01415, allocations: 37.7 kB / 283.8 MB, free: 6.336 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.39e-05/0.01419, allocations: 133.7 kB / 283.9 MB, free: 6.199 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000118/0.01431, allocations: 190.4 kB / 284.1 MB, free: 6.012 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001563/0.01446, allocations: 98.25 kB / 284.2 MB, free: 5.91 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.442e-05/0.01456, allocations: 346.7 kB / 284.5 MB, free: 5.562 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000239/0.0148, allocations: 204.1 kB / 284.7 MB, free: 5.359 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002632/0.01506, allocations: 286.7 kB / 285 MB, free: 5.055 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004819/0.01554, allocations: 495 kB / 285.5 MB, free: 4.539 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.01554, allocations: 7.938 kB / 285.5 MB, free: 4.531 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0005892/0.01613, allocations: 0.5324 MB / 286 MB, free: 3.992 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.01615, allocations: 8 kB / 286 MB, free: 3.984 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.01615, allocations: 0 / 286 MB, free: 3.984 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.01616, allocations: 4 kB / 286.1 MB, free: 3.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005676/0.01673, allocations: 175.7 kB / 286.2 MB, free: 3.809 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.01674, allocations: 12.16 kB / 286.2 MB, free: 3.797 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003081/0.01705, allocations: 71.86 kB / 286.3 MB, free: 3.727 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.86e-05/0.01708, allocations: 15.98 kB / 286.3 MB, free: 3.711 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * 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.0001535/0.01724, allocations: 148.5 kB / 286.5 MB, free: 3.555 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001561/0.01739, allocations: 113.6 kB / 286.6 MB, free: 3.438 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.372e-05/0.01746, allocations: 71.17 kB / 286.6 MB, free: 3.367 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.01746, allocations: 8 kB / 286.7 MB, free: 3.359 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.287e-06/0.01747, allocations: 4 kB / 286.7 MB, free: 3.355 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.01747, allocations: 7.984 kB / 286.7 MB, free: 3.348 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001413/0.01888, allocations: 1.188 MB / 287.9 MB, free: 2.008 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.01889, allocations: 8.938 kB / 287.9 MB, free: 2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000353/0.01924, allocations: 179.7 kB / 288 MB, free: 1.824 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.494e-06/0.01925, allocations: 12 kB / 288 MB, free: 1.812 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.025e-05/0.01928, allocations: 27.98 kB / 288.1 MB, free: 1.785 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.405e-06/0.01929, allocations: 19.94 kB / 288.1 MB, free: 1.766 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.722e-06/0.0193, allocations: 15.94 kB / 288.1 MB, free: 1.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005779/0.01987, allocations: 0.8477 MB / 289 MB, free: 0.75 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.764e-05/0.01996, allocations: 59.67 kB / 289 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.848e-05/0.02, allocations: 27.98 kB / 289 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002549/0.02026, allocations: 59.95 kB / 289.1 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.02036, allocations: 83.64 kB / 289.2 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.651e-05/0.02039, allocations: 27.98 kB / 289.2 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.644e-05/0.02043, allocations: 50.78 kB / 289.3 MB, free: 456 kB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.02043, allocations: 0 / 289.3 MB, free: 456 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003179/0.02074, allocations: 124 kB / 289.4 MB, free: 332 kB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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 8.759e-05/0.02083, allocations: 116.1 kB / 289.5 MB, free: 204 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.09078/0.1116, allocations: 453.7 kB / 289.9 MB, free: 25.58 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-05/0.1116, allocations: 4.281 kB / 289.9 MB, free: 25.58 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002355/0.1119, allocations: 160.2 kB / 290.1 MB, free: 25.57 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005638/0.1124, allocations: 137.5 kB / 290.2 MB, free: 25.57 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001148/0.1136, allocations: 0.9874 MB / 291.2 MB, free: 24.94 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.085e-05/0.1137, allocations: 133.1 kB / 291.4 MB, free: 24.86 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002643/0.1139, allocations: 74.14 kB / 291.4 MB, free: 24.86 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003023/0.1142, allocations: 114.9 kB / 291.5 MB, free: 24.82 MB / 266.7 MB Notification: Performance of SimCode: time 1.132e-06/0.1142, allocations: 1.062 kB / 291.5 MB, free: 24.82 MB / 266.7 MB Notification: Performance of Templates: time 0.0102/0.1244, allocations: 9.386 MB / 300.9 MB, free: 22.14 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.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.741452776361257]