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.0009692/0.0009692, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 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.001599/0.001599, allocations: 165.4 kB / 25.61 MB, free: 8.582 MB / 18.57 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 0.9252/0.9252, allocations: 177.1 MB / 206 MB, free: 4.473 MB / 186.7 MB " [Timeout remaining time 179] 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 6.903e-06/6.903e-06, allocations: 4 kB / 274.2 MB, free: 4.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.476e-05/3.166e-05, allocations: 2.312 kB / 274.2 MB, free: 4.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.006834/0.006866, allocations: 2.344 MB / 276.5 MB, free: 2.082 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004696/0.01156, allocations: 0.8205 MB / 277.3 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001972/0.01176, allocations: 11.94 kB / 277.3 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002958/0.01205, allocations: 52.53 kB / 277.4 MB, free: 1.195 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000222/0.01228, allocations: 64.91 kB / 277.4 MB, free: 1.133 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005417/0.01282, allocations: 180.8 kB / 277.6 MB, free: 0.957 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002972/0.01579, allocations: 391.5 kB / 278 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001994/0.01599, allocations: 68.97 kB / 278.1 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004408/0.01643, allocations: 237.9 kB / 278.3 MB, free: 284 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002221/0.01665, allocations: 143.6 kB / 278.4 MB, free: 140 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.183e-05/0.0167, allocations: 36 kB / 278.5 MB, free: 104 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.71e-05/0.01675, allocations: 36 kB / 278.5 MB, free: 68 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001231/0.01687, allocations: 107.6 kB / 278.6 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.01699, allocations: 99.77 kB / 278.7 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003956/0.01738, allocations: 259 kB / 279 MB, free: 15.61 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.371e-06/0.01739, allocations: 1.938 kB / 279 MB, free: 15.61 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.01739, allocations: 0 / 279 MB, free: 15.61 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.132e-06/0.0174, allocations: 0 / 279 MB, free: 15.61 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.0008286/0.01822, allocations: 0.6492 MB / 279.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.01826, allocations: 8.031 kB / 279.6 MB, free: 14.92 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.895e-05/0.01835, allocations: 68.75 kB / 279.7 MB, free: 14.85 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002615/0.01861, allocations: 216.6 kB / 279.9 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004972/0.01911, allocations: 347.9 kB / 280.3 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.686e-05/0.01916, allocations: 28.38 kB / 280.3 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005375/0.01969, allocations: 423.5 kB / 280.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/0.01971, allocations: 8.172 kB / 280.7 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.642e-05/0.01974, allocations: 16.12 kB / 280.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.01974, allocations: 15.98 kB / 280.7 MB, free: 13.69 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003017/0.02005, allocations: 192.4 kB / 280.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009402/0.02099, allocations: 0.9023 MB / 281.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005088/0.0215, allocations: 315.1 kB / 282.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001365/0.02163, allocations: 138.7 kB / 282.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.915e-05/0.02167, allocations: 12.41 kB / 282.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/0.0217, allocations: 45.39 kB / 282.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.843e-06/0.0217, allocations: 0 / 282.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006619/0.02832, allocations: 2.394 MB / 284.7 MB, free: 9.578 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.865e-05/0.02841, allocations: 145 kB / 284.9 MB, free: 9.406 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001796/0.02859, allocations: 242.5 kB / 285.1 MB, free: 9.148 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.356e-05/0.02866, allocations: 41.7 kB / 285.1 MB, free: 9.102 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.395e-05/0.02874, allocations: 184.5 kB / 285.3 MB, free: 8.914 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001499/0.02889, allocations: 202.3 kB / 285.5 MB, free: 8.715 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001874/0.02908, allocations: 95.97 kB / 285.6 MB, free: 8.613 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.02922, allocations: 0.5156 MB / 286.1 MB, free: 8.086 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002952/0.02952, allocations: 245.2 kB / 286.4 MB, free: 7.848 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003473/0.02987, allocations: 368 kB / 286.7 MB, free: 7.449 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007681/0.03063, allocations: 0.5458 MB / 287.3 MB, free: 6.867 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.03064, allocations: 4 kB / 287.3 MB, free: 6.863 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008611/0.0315, allocations: 0.6535 MB / 287.9 MB, free: 6.199 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.03152, allocations: 4 kB / 287.9 MB, free: 6.195 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.03153, allocations: 4 kB / 287.9 MB, free: 6.191 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.03154, allocations: 4 kB / 287.9 MB, free: 6.188 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006178/0.03216, allocations: 168 kB / 288.1 MB, free: 6.023 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.169e-06/0.03217, allocations: 7.938 kB / 288.1 MB, free: 6.016 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003713/0.03254, allocations: 83.8 kB / 288.2 MB, free: 5.934 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.169e-05/0.03258, allocations: 12 kB / 288.2 MB, free: 5.922 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.0002276/0.03281, allocations: 188.8 kB / 288.4 MB, free: 5.727 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002241/0.03303, allocations: 149.4 kB / 288.5 MB, free: 5.574 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.617e-05/0.03313, allocations: 63.3 kB / 288.6 MB, free: 5.512 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.03313, allocations: 8 kB / 288.6 MB, free: 5.504 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.03314, allocations: 4 kB / 288.6 MB, free: 5.5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.03315, allocations: 7.984 kB / 288.6 MB, free: 5.492 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001922/0.03507, allocations: 1.45 MB / 290.1 MB, free: 3.836 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-05/0.03508, allocations: 16 kB / 290.1 MB, free: 3.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003698/0.03545, allocations: 171.7 kB / 290.2 MB, free: 3.652 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-05/0.03546, allocations: 12 kB / 290.3 MB, free: 3.641 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.464e-05/0.0355, allocations: 31.98 kB / 290.3 MB, free: 3.609 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.378e-05/0.03551, allocations: 19.94 kB / 290.3 MB, free: 3.59 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/0.03552, allocations: 11.94 kB / 290.3 MB, free: 3.578 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008897/0.03641, allocations: 1.054 MB / 291.4 MB, free: 2.316 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000137/0.03654, allocations: 91.62 kB / 291.5 MB, free: 2.227 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.504e-05/0.03659, allocations: 31.98 kB / 291.5 MB, free: 2.195 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002796/0.03687, allocations: 59.94 kB / 291.6 MB, free: 2.137 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001347/0.037, allocations: 83.64 kB / 291.6 MB, free: 2.055 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.971e-05/0.03703, allocations: 24 kB / 291.7 MB, free: 2.031 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.8e-05/0.03712, allocations: 166.5 kB / 291.8 MB, free: 1.871 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03712, allocations: 8.031 kB / 291.8 MB, free: 1.863 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004243/0.03755, allocations: 116 kB / 291.9 MB, free: 1.75 MB / 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 0.0001638/0.03771, allocations: 138.9 kB / 292.1 MB, free: 1.605 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000654/0.03836, allocations: 0.4963 MB / 292.6 MB, free: 1.105 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.03837, allocations: 8.125 kB / 292.6 MB, free: 1.098 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001901/0.03856, allocations: 154.8 kB / 292.7 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005921/0.03915, allocations: 149.8 kB / 292.9 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00176/0.04091, allocations: 1.127 MB / 294 MB, free: 15.45 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000118/0.04103, allocations: 130.8 kB / 294.1 MB, free: 15.3 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002853/0.04131, allocations: 75.2 kB / 294.2 MB, free: 15.23 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003108/0.04163, allocations: 134.2 kB / 294.3 MB, free: 15.1 MB / 282.7 MB Notification: Performance of SimCode: time 1.172e-06/0.04163, allocations: 0 / 294.3 MB, free: 15.1 MB / 282.7 MB Notification: Performance of Templates: time 0.01073/0.05235, allocations: 9.652 MB / 304 MB, free: 5.523 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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: 3.0712954057380557]