Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 83.89 kB / 21.19 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.018/1.018, allocations: 173.4 MB / 201.1 MB, free: 9.336 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 268 MB, free: 6.465 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.52e-05/1.662e-05, allocations: 2.312 kB / 268 MB, free: 6.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002695/0.002712, allocations: 2.389 MB / 270.4 MB, free: 4.051 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.003907, allocations: 0.8259 MB / 271.2 MB, free: 3.219 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.004052, allocations: 7.938 kB / 271.2 MB, free: 3.211 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002673/0.004319, allocations: 55.52 kB / 271.2 MB, free: 3.156 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001966/0.004516, allocations: 71.48 kB / 271.3 MB, free: 3.086 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004283/0.004944, allocations: 207.3 kB / 271.5 MB, free: 2.883 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003126/0.005257, allocations: 395.5 kB / 271.9 MB, free: 2.496 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001413/0.005398, allocations: 71.8 kB / 272 MB, free: 2.426 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002252/0.005623, allocations: 239.4 kB / 272.2 MB, free: 2.191 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001613/0.005784, allocations: 147.6 kB / 272.4 MB, free: 2.047 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.898e-05/0.005833, allocations: 36 kB / 272.4 MB, free: 2.012 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.004e-05/0.005873, allocations: 36 kB / 272.4 MB, free: 1.977 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.738e-05/0.005961, allocations: 111.6 kB / 272.5 MB, free: 1.867 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.1e-05/0.006042, allocations: 107.7 kB / 272.6 MB, free: 1.762 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002609/0.006303, allocations: 279 kB / 272.9 MB, free: 1.488 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.006305, allocations: 0 / 272.9 MB, free: 1.488 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.006305, allocations: 0 / 272.9 MB, free: 1.488 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.01e-06/0.00631, allocations: 4 kB / 272.9 MB, free: 1.484 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0007715/0.007082, allocations: 0.6946 MB / 273.6 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.007116, allocations: 12.03 kB / 273.6 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.568e-05/0.007202, allocations: 76.7 kB / 273.7 MB, free: 0.668 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002633/0.007465, allocations: 255.9 kB / 273.9 MB, free: 396 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001832/0.007648, allocations: 343.9 kB / 274.3 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.415e-05/0.007692, allocations: 32.36 kB / 274.3 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005767/0.008269, allocations: 468.8 kB / 274.8 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.008283, allocations: 4.141 kB / 274.8 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.524e-05/0.008309, allocations: 16.12 kB / 274.8 MB, free: 15.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.008317, allocations: 4 kB / 274.8 MB, free: 15.43 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003527/0.00867, allocations: 243.7 kB / 275 MB, free: 15.19 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.009709, allocations: 0.9484 MB / 276 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005712/0.01028, allocations: 347.4 kB / 276.3 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/0.01045, allocations: 142.7 kB / 276.5 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.876e-05/0.01049, allocations: 11.98 kB / 276.5 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.333e-05/0.01051, allocations: 45.33 kB / 276.5 MB, free: 13.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.405e-06/0.01051, allocations: 3.984 kB / 276.5 MB, free: 13.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006633/0.01715, allocations: 2.683 MB / 279.2 MB, free: 10.88 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.203e-05/0.01722, allocations: 145 kB / 279.3 MB, free: 10.71 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001809/0.0174, allocations: 300.2 kB / 279.6 MB, free: 10.4 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.186e-05/0.01746, allocations: 41.7 kB / 279.7 MB, free: 10.35 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.378e-05/0.01754, allocations: 192.5 kB / 279.9 MB, free: 10.16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.01767, allocations: 190.3 kB / 280.1 MB, free: 9.969 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001761/0.01784, allocations: 103.9 kB / 280.2 MB, free: 9.859 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.01799, allocations: 0.5157 MB / 280.7 MB, free: 9.332 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000419/0.01841, allocations: 321.2 kB / 281 MB, free: 9.02 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004658/0.01887, allocations: 436 kB / 281.4 MB, free: 8.555 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007481/0.01962, allocations: 0.6396 MB / 282 MB, free: 7.879 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.01962, allocations: 0 / 282 MB, free: 7.879 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001082/0.02071, allocations: 0.7865 MB / 282.8 MB, free: 7.082 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.539e-05/0.02073, allocations: 12.03 kB / 282.8 MB, free: 7.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.02074, allocations: 0 / 282.8 MB, free: 7.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.02075, allocations: 4 kB / 282.9 MB, free: 7.066 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005642/0.02132, allocations: 159.8 kB / 283 MB, free: 6.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.02133, allocations: 4 kB / 283 MB, free: 6.906 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003505/0.02168, allocations: 83.8 kB / 283.1 MB, free: 6.824 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.239e-05/0.02173, allocations: 23.98 kB / 283.1 MB, free: 6.801 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.0001867/0.02192, allocations: 196.8 kB / 283.3 MB, free: 6.598 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002142/0.02213, allocations: 161.3 kB / 283.5 MB, free: 6.434 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.25e-05/0.02221, allocations: 71.61 kB / 283.5 MB, free: 6.363 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.02222, allocations: 8 kB / 283.5 MB, free: 6.355 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.02223, allocations: 0 / 283.5 MB, free: 6.355 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.02223, allocations: 7.984 kB / 283.6 MB, free: 6.348 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001875/0.02411, allocations: 1.527 MB / 285.1 MB, free: 4.605 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/0.02412, allocations: 8 kB / 285.1 MB, free: 4.598 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003576/0.02447, allocations: 171.7 kB / 285.3 MB, free: 4.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-05/0.02448, allocations: 12 kB / 285.3 MB, free: 4.418 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.31e-05/0.02452, allocations: 27.98 kB / 285.3 MB, free: 4.391 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.11e-05/0.02453, allocations: 19.94 kB / 285.3 MB, free: 4.371 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/0.02454, allocations: 16.28 kB / 285.3 MB, free: 4.355 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.0256, allocations: 1.233 MB / 286.6 MB, free: 2.918 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001404/0.02574, allocations: 99.62 kB / 286.7 MB, free: 2.82 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.857e-05/0.02578, allocations: 27.98 kB / 286.7 MB, free: 2.793 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002531/0.02604, allocations: 63.98 kB / 286.7 MB, free: 2.73 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/0.02617, allocations: 87.64 kB / 286.8 MB, free: 2.645 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.3e-05/0.02621, allocations: 39.91 kB / 286.9 MB, free: 2.605 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001084/0.02631, allocations: 201.1 kB / 287.1 MB, free: 2.41 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02631, allocations: 0 / 287.1 MB, free: 2.41 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003945/0.02671, allocations: 120 kB / 287.2 MB, free: 2.293 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.0001382/0.02685, allocations: 134.9 kB / 287.3 MB, free: 2.152 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007696/0.02762, allocations: 0.5819 MB / 287.9 MB, free: 1.566 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.02762, allocations: 3.938 kB / 287.9 MB, free: 1.562 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002193/0.02784, allocations: 170.2 kB / 288.1 MB, free: 1.395 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006381/0.02848, allocations: 162.7 kB / 288.2 MB, free: 1.242 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001429/0.02991, allocations: 1.188 MB / 289.4 MB, free: 15.84 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.625e-05/0.03, allocations: 134.7 kB / 289.5 MB, free: 15.69 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002565/0.03026, allocations: 95.2 kB / 289.6 MB, free: 15.59 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001946/0.03045, allocations: 40.5 kB / 289.7 MB, free: 15.55 MB / 282.7 MB Notification: Performance of SimCode: time 6.71e-07/0.03046, allocations: 0 / 289.7 MB, free: 15.55 MB / 282.7 MB Notification: Performance of Templates: time 0.009896/0.04035, allocations: 9.537 MB / 299.2 MB, free: 6.09 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.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.0459872321225703]