Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001738/0.001738, allocations: 103.6 kB / 21.19 MB, free: 0.6445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002054/0.002054, allocations: 217.1 kB / 24.49 MB, free: 3.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.461/1.461, allocations: 230.6 MB / 258.2 MB, free: 7.824 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 47.92 kB / 379 MB, free: 2.504 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2652, allocations: 53.36 MB / 432.3 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003937/0.2691, allocations: 2.261 MB / 434.6 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001615/0.2707, allocations: 0.8065 MB / 435.4 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001459/0.2709, allocations: 4 kB / 435.4 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002814/0.2711, allocations: 55.56 kB / 435.4 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002048/0.2714, allocations: 63.5 kB / 435.5 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005022/0.2719, allocations: 179.6 kB / 435.7 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004343/0.2723, allocations: 383.6 kB / 436.1 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000189/0.2725, allocations: 72.02 kB / 436.1 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004117/0.2729, allocations: 171.4 kB / 436.3 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002464/0.2731, allocations: 187.3 kB / 436.5 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.04e-05/0.2732, allocations: 32 kB / 436.5 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.021e-05/0.2733, allocations: 36 kB / 436.5 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001223/0.2734, allocations: 107.6 kB / 436.6 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001378/0.2735, allocations: 123.4 kB / 436.8 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004306/0.2739, allocations: 341.6 kB / 437.1 MB, free: 1.934 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.274, allocations: 0 / 437.1 MB, free: 1.934 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.274, allocations: 0 / 437.1 MB, free: 1.934 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.274, allocations: 0 / 437.1 MB, free: 1.934 MB / 334.1 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.001253/0.2752, allocations: 0.5522 MB / 437.7 MB, free: 1.352 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.2753, allocations: 8.031 kB / 437.7 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.017e-05/0.2753, allocations: 48.7 kB / 437.7 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000453/0.2758, allocations: 218.5 kB / 437.9 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003206/0.2761, allocations: 355.8 kB / 438.3 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.277e-05/0.2762, allocations: 28.38 kB / 438.3 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001262/0.2774, allocations: 0.5661 MB / 438.9 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.015e-05/0.2775, allocations: 4 kB / 438.9 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.421e-05/0.2775, allocations: 12 kB / 438.9 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.876e-05/0.2775, allocations: 8.047 kB / 438.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001465/0.279, allocations: 0.512 MB / 439.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001545/0.2805, allocations: 0.8483 MB / 440.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001534/0.2821, allocations: 478.3 kB / 440.7 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000687/0.2828, allocations: 241 kB / 441 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.483e-05/0.2828, allocations: 12 kB / 441 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.182e-05/0.2829, allocations: 46.44 kB / 441 MB, free: 13.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.235e-06/0.2829, allocations: 0 / 441 MB, free: 13.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.0372/0.3201, allocations: 5.738 MB / 446.7 MB, free: 8.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002075/0.3203, allocations: 156.9 kB / 446.9 MB, free: 7.836 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003097/0.3206, allocations: 212.3 kB / 447.1 MB, free: 7.617 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.609e-05/0.3207, allocations: 37.7 kB / 447.1 MB, free: 7.574 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001169/0.3208, allocations: 133.8 kB / 447.3 MB, free: 7.438 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002453/0.321, allocations: 206.3 kB / 447.5 MB, free: 7.234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002855/0.3213, allocations: 110.7 kB / 447.6 MB, free: 7.121 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001914/0.3215, allocations: 346.7 kB / 447.9 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001711/0.3232, allocations: 0.6266 MB / 448.5 MB, free: 6.145 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001956/0.3252, allocations: 0.8003 MB / 449.3 MB, free: 5.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003274/0.3284, allocations: 1.264 MB / 450.6 MB, free: 3.934 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.3284, allocations: 0 / 450.6 MB, free: 3.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003781/0.3322, allocations: 1.407 MB / 452 MB, free: 2.516 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.211e-05/0.3323, allocations: 10.97 kB / 452 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.3323, allocations: 8 kB / 452 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.914e-05/0.3323, allocations: 11.98 kB / 452.1 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00131/0.3336, allocations: 203.7 kB / 452.2 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.055e-05/0.3336, allocations: 15.97 kB / 452.3 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008993/0.3345, allocations: 111.7 kB / 452.4 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.884e-05/0.3346, allocations: 24 kB / 452.4 MB, free: 2.141 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (84): * Single equations (assignments): 84 * 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.000346/0.335, allocations: 185.6 kB / 452.6 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003184/0.3353, allocations: 153.4 kB / 452.7 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001626/0.3354, allocations: 55.31 kB / 452.8 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.3354, allocations: 15.98 kB / 452.8 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.3355, allocations: 4 kB / 452.8 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.3355, allocations: 4.406 kB / 452.8 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004899/0.3404, allocations: 1.918 MB / 454.7 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.519e-05/0.3404, allocations: 11.83 kB / 454.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007462/0.3411, allocations: 188.3 kB / 454.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.817e-05/0.3411, allocations: 20 kB / 454.9 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001249/0.3413, allocations: 24 kB / 455 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.762e-05/0.3413, allocations: 19.88 kB / 455 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.501e-05/0.3413, allocations: 15.94 kB / 455 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003493/0.3448, allocations: 1.57 MB / 456.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002441/0.345, allocations: 95.66 kB / 456.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.419e-05/0.3451, allocations: 24.06 kB / 456.7 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005853/0.3457, allocations: 83.84 kB / 456.8 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001993/0.3459, allocations: 103.6 kB / 456.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.413e-05/0.346, allocations: 32 kB / 456.9 MB, free: 13.31 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001521/0.3461, allocations: 149.2 kB / 457 MB, free: 13.17 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3461, allocations: 0 / 457 MB, free: 13.17 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006792/0.3468, allocations: 124 kB / 457.2 MB, free: 13.05 MB / 366.1 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.0001843/0.347, allocations: 135 kB / 457.3 MB, free: 12.9 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00299/0.35, allocations: 1.038 MB / 458.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.35, allocations: 4 kB / 458.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00107/0.351, allocations: 338.3 kB / 458.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009623/0.352, allocations: 139.2 kB / 458.8 MB, free: 11.4 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002589/0.3546, allocations: 1.218 MB / 460 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002439/0.3548, allocations: 211.3 kB / 460.2 MB, free: 9.785 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003091/0.3551, allocations: 43.44 kB / 460.3 MB, free: 9.742 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3551, allocations: 3.938 kB / 460.3 MB, free: 9.738 MB / 366.1 MB Notification: Performance of Templates: time 0.0115/0.3666, allocations: 7.368 MB / 467.6 MB, free: 2.379 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 7.610778507019859]