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.0008289/0.0008289, allocations: 88.28 kB / 21.44 MB, free: 3.121 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.00321/0.00321, allocations: 154.5 kB / 24.69 MB, free: 9.441 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.8869/0.8869, allocations: 177 MB / 204.9 MB, free: 5.754 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 2.254e-06/2.254e-06, allocations: 0 / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.35e-05/3.576e-05, allocations: 3.266 kB / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.00276/0.002796, allocations: 2.274 MB / 328 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00127/0.004066, allocations: 0.7986 MB / 328.8 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001648/0.004231, allocations: 7.938 kB / 328.8 MB, free: 12.31 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002659/0.004496, allocations: 55.56 kB / 328.9 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002019/0.004698, allocations: 59.5 kB / 329 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004538/0.005152, allocations: 194.6 kB / 329.1 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003808/0.005533, allocations: 387.5 kB / 329.5 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001625/0.005695, allocations: 64.34 kB / 329.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003639/0.006059, allocations: 247.4 kB / 329.8 MB, free: 11.33 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001686/0.006228, allocations: 143.6 kB / 330 MB, free: 11.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.218e-05/0.00627, allocations: 32 kB / 330 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.606e-05/0.006306, allocations: 36 kB / 330 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.967e-05/0.006396, allocations: 103.7 kB / 330.1 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.675e-05/0.006483, allocations: 107.7 kB / 330.2 MB, free: 10.92 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003574/0.00684, allocations: 358.9 kB / 330.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.006843, allocations: 0 / 330.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.006845, allocations: 0 / 330.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.006852, allocations: 0 / 330.6 MB, free: 10.57 MB / 298.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.0008773/0.007729, allocations: 0.5483 MB / 331.1 MB, free: 9.988 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.00777, allocations: 11.98 kB / 331.1 MB, free: 9.977 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.936e-05/0.007849, allocations: 44.75 kB / 331.2 MB, free: 9.934 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000364/0.008213, allocations: 221.7 kB / 331.4 MB, free: 9.691 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002193/0.008433, allocations: 347.9 kB / 331.7 MB, free: 9.281 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.211e-05/0.008485, allocations: 28.38 kB / 331.8 MB, free: 9.254 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008084/0.009293, allocations: 0.5741 MB / 332.3 MB, free: 8.652 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/0.009311, allocations: 4.188 kB / 332.4 MB, free: 8.648 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.733e-05/0.009338, allocations: 16.12 kB / 332.4 MB, free: 8.633 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.009346, allocations: 8 kB / 332.4 MB, free: 8.625 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008768/0.01022, allocations: 0.519 MB / 332.9 MB, free: 8.105 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009855/0.01121, allocations: 0.8326 MB / 333.7 MB, free: 7.219 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008972/0.01211, allocations: 470.6 kB / 334.2 MB, free: 6.723 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003797/0.01248, allocations: 243.3 kB / 334.4 MB, free: 6.473 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.9e-05/0.01252, allocations: 4 kB / 334.4 MB, free: 6.469 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.12e-05/0.01256, allocations: 46.5 kB / 334.5 MB, free: 6.414 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 2.725e-06/0.01256, allocations: 0 / 334.5 MB, free: 6.414 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.01824/0.0308, allocations: 5.76 MB / 340.2 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.217e-05/0.03089, allocations: 149.1 kB / 340.4 MB, free: 476 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/0.03107, allocations: 208 kB / 340.6 MB, free: 256 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.613e-05/0.03113, allocations: 37.7 kB / 340.6 MB, free: 212 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.079e-05/0.0312, allocations: 141.8 kB / 340.8 MB, free: 68 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00014/0.03134, allocations: 198.5 kB / 341 MB, free: 15.87 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001756/0.03151, allocations: 94.28 kB / 341 MB, free: 15.77 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.506e-05/0.03161, allocations: 342.6 kB / 341.4 MB, free: 15.43 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000885/0.03249, allocations: 0.6103 MB / 342 MB, free: 14.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000924/0.03342, allocations: 0.6898 MB / 342.7 MB, free: 14.1 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00165/0.03507, allocations: 1.122 MB / 343.8 MB, free: 12.95 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.03507, allocations: 0 / 343.8 MB, free: 12.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001937/0.03701, allocations: 1.302 MB / 345.1 MB, free: 11.64 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.03703, allocations: 4 kB / 345.1 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.03704, allocations: 4 kB / 345.1 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.059e-05/0.03706, allocations: 4 kB / 345.1 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005926/0.03766, allocations: 179.8 kB / 345.3 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.03767, allocations: 7.984 kB / 345.3 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003944/0.03806, allocations: 91.83 kB / 345.4 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.42e-05/0.0381, allocations: 19.98 kB / 345.4 MB, free: 11.34 MB / 314.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.000226/0.03833, allocations: 169.7 kB / 345.6 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002045/0.03853, allocations: 153.4 kB / 345.7 MB, free: 11 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.03864, allocations: 71.3 kB / 345.8 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.03865, allocations: 8 kB / 345.8 MB, free: 10.92 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.03865, allocations: 0 / 345.8 MB, free: 10.92 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.03866, allocations: 3.984 kB / 345.8 MB, free: 10.92 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002758/0.04142, allocations: 1.91 MB / 347.7 MB, free: 8.844 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.497e-06/0.04143, allocations: 12.19 kB / 347.7 MB, free: 8.832 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003783/0.04181, allocations: 192.5 kB / 347.9 MB, free: 8.645 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.859e-06/0.04182, allocations: 15.94 kB / 347.9 MB, free: 8.629 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.054e-05/0.04185, allocations: 24 kB / 348 MB, free: 8.605 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.325e-05/0.04186, allocations: 23.92 kB / 348 MB, free: 8.582 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.864e-06/0.04187, allocations: 15.94 kB / 348 MB, free: 8.566 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001854/0.04372, allocations: 1.554 MB / 349.5 MB, free: 6.859 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001307/0.04385, allocations: 91.7 kB / 349.6 MB, free: 6.77 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.427e-05/0.0439, allocations: 27.98 kB / 349.7 MB, free: 6.742 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002928/0.04419, allocations: 83.91 kB / 349.7 MB, free: 6.66 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001499/0.04434, allocations: 99.58 kB / 349.8 MB, free: 6.562 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.975e-05/0.04437, allocations: 32 kB / 349.9 MB, free: 6.531 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.415e-05/0.04446, allocations: 145.2 kB / 350 MB, free: 6.391 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04446, allocations: 0 / 350 MB, free: 6.391 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004077/0.04487, allocations: 123.9 kB / 350.1 MB, free: 6.27 MB / 314.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 0.0001393/0.04501, allocations: 139 kB / 350.3 MB, free: 6.125 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001546/0.04656, allocations: 0.9911 MB / 351.3 MB, free: 5.137 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.992e-06/0.04656, allocations: 8.062 kB / 351.3 MB, free: 5.129 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005633/0.04713, allocations: 333.8 kB / 351.6 MB, free: 4.805 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006251/0.04775, allocations: 123.9 kB / 351.7 MB, free: 4.684 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001451/0.0492, allocations: 1.149 MB / 352.9 MB, free: 3.363 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001556/0.04936, allocations: 211.3 kB / 353.1 MB, free: 3.133 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002334/0.04959, allocations: 44.48 kB / 353.1 MB, free: 3.09 MB / 314.7 MB Notification: Performance of SimCode: time 9.21e-07/0.04959, allocations: 7.875 kB / 353.1 MB, free: 3.082 MB / 314.7 MB Notification: Performance of Templates: time 0.007068/0.05666, allocations: 7.206 MB / 360.3 MB, free: 11.89 MB / 330.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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.620962401852012]