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.001202/0.001202, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 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.001414/0.001414, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 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 1.42/1.42, allocations: 230.3 MB / 258 MB, free: 8.195 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001997/0.001997, allocations: 63.89 kB / 378.8 MB, free: 2.766 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.2838, allocations: 53.37 MB / 432.1 MB, free: 7.062 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003735/0.2875, allocations: 2.397 MB / 434.5 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001616/0.2891, allocations: 0.8455 MB / 435.4 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000151/0.2893, allocations: 11.88 kB / 435.4 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003198/0.2896, allocations: 59.56 kB / 435.4 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002029/0.2898, allocations: 59.56 kB / 435.5 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004896/0.2903, allocations: 179.6 kB / 435.7 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004225/0.2907, allocations: 387.5 kB / 436.1 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001934/0.2909, allocations: 68.36 kB / 436.1 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003069/0.2912, allocations: 171.4 kB / 436.3 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002569/0.2914, allocations: 183.2 kB / 436.5 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.889e-05/0.2915, allocations: 36 kB / 436.5 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.621e-05/0.2916, allocations: 36 kB / 436.5 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001239/0.2917, allocations: 99.7 kB / 436.6 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001512/0.2918, allocations: 143.2 kB / 436.8 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004394/0.2923, allocations: 344.2 kB / 437.1 MB, free: 2.066 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.2923, allocations: 0 / 437.1 MB, free: 2.066 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2923, allocations: 0 / 437.1 MB, free: 2.066 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.2923, allocations: 0 / 437.1 MB, free: 2.066 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.001252/0.2935, allocations: 0.5444 MB / 437.7 MB, free: 1.492 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.2936, allocations: 8.031 kB / 437.7 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.651e-05/0.2937, allocations: 44.7 kB / 437.7 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004524/0.2941, allocations: 223.1 kB / 437.9 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002272/0.2943, allocations: 138.3 kB / 438.1 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.781e-05/0.2944, allocations: 28.38 kB / 438.1 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.2957, allocations: 0.5622 MB / 438.6 MB, free: 436 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/0.2958, allocations: 3.984 kB / 438.7 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.715e-05/0.2958, allocations: 19.94 kB / 438.7 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.2958, allocations: 8 kB / 438.7 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00147/0.2973, allocations: 0.5081 MB / 439.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001657/0.2989, allocations: 0.953 MB / 440.1 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001707/0.3006, allocations: 482.5 kB / 440.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006768/0.3013, allocations: 235.3 kB / 440.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.03e-05/0.3014, allocations: 12 kB / 440.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.912e-05/0.3014, allocations: 38.5 kB / 440.9 MB, free: 14.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.385e-06/0.3014, allocations: 4 kB / 440.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.0417/0.3431, allocations: 5.726 MB / 446.6 MB, free: 8.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/0.3432, allocations: 149 kB / 446.8 MB, free: 8.145 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002285/0.3435, allocations: 204 kB / 447 MB, free: 7.934 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.545e-05/0.3436, allocations: 37.7 kB / 447 MB, free: 7.891 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.3437, allocations: 145.7 kB / 447.1 MB, free: 7.742 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002154/0.3439, allocations: 198.4 kB / 447.3 MB, free: 7.547 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003026/0.3442, allocations: 110.6 kB / 447.4 MB, free: 7.434 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.3443, allocations: 346.8 kB / 447.8 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001737/0.3461, allocations: 0.6187 MB / 448.4 MB, free: 6.465 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001857/0.3479, allocations: 0.8042 MB / 449.2 MB, free: 5.586 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003316/0.3512, allocations: 1.247 MB / 450.5 MB, free: 4.262 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.772e-06/0.3512, allocations: 4 kB / 450.5 MB, free: 4.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003817/0.3551, allocations: 1.386 MB / 451.8 MB, free: 2.863 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.3551, allocations: 12.02 kB / 451.9 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/0.3551, allocations: 12 kB / 451.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.435e-05/0.3551, allocations: 8 kB / 451.9 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001445/0.3566, allocations: 211.6 kB / 452.1 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.553e-05/0.3566, allocations: 8 kB / 452.1 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/0.3576, allocations: 112 kB / 452.2 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.675e-05/0.3577, allocations: 28.38 kB / 452.2 MB, free: 2.48 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: 2 (kinematicPTP.noWphase,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 (83): * Single equations (assignments): 83 * 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.0003422/0.358, allocations: 181.6 kB / 452.4 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003327/0.3584, allocations: 161.3 kB / 452.6 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001901/0.3586, allocations: 59.31 kB / 452.6 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.3586, allocations: 8 kB / 452.6 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.3586, allocations: 0 / 452.6 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.3586, allocations: 7.984 kB / 452.6 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005239/0.3638, allocations: 2.14 MB / 454.8 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.491e-05/0.3638, allocations: 12 kB / 454.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008127/0.3647, allocations: 187.6 kB / 455 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.658e-05/0.3647, allocations: 12 kB / 455 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.489e-05/0.3647, allocations: 28 kB / 455 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.812e-05/0.3648, allocations: 19.92 kB / 455 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-05/0.3648, allocations: 16.16 kB / 455 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003417/0.3682, allocations: 1.549 MB / 456.6 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002255/0.3684, allocations: 95.62 kB / 456.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.873e-05/0.3685, allocations: 24 kB / 456.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006254/0.3691, allocations: 79.97 kB / 456.8 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002176/0.3693, allocations: 99.64 kB / 456.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.281e-05/0.3694, allocations: 28 kB / 456.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000154/0.3695, allocations: 137.2 kB / 457 MB, free: 13.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3695, allocations: 0 / 457 MB, free: 13.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007488/0.3703, allocations: 124 kB / 457.2 MB, free: 13.2 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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.0002106/0.3705, allocations: 138.9 kB / 457.3 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003013/0.3735, allocations: 1.03 MB / 458.3 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/0.3735, allocations: 0 / 458.3 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001072/0.3746, allocations: 330.6 kB / 458.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009483/0.3755, allocations: 143.3 kB / 458.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002579/0.3781, allocations: 1.177 MB / 460 MB, free: 10.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004878/0.3786, allocations: 0.8128 MB / 460.8 MB, free: 9.375 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004864/0.3791, allocations: 91.33 kB / 460.9 MB, free: 9.285 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003031/0.3794, allocations: 43.42 kB / 460.9 MB, free: 9.246 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3794, allocations: 0 / 460.9 MB, free: 9.246 MB / 366.1 MB Notification: Performance of Templates: time 0.01687/0.3963, allocations: 8.879 MB / 469.8 MB, free: 388 kB / 366.1 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.919404651038349]