Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.002072/0.002072, allocations: 112.9 kB / 19.17 MB, free: 3.871 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.002578/0.002578, allocations: 210.5 kB / 22.13 MB, free: 0.918 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.501/1.501, allocations: 230.2 MB / 255.2 MB, free: 15.23 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.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 71.88 kB / 374.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1221, allocations: 53.32 MB / 427.8 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004053/0.1262, allocations: 2.411 MB / 430.2 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001661/0.1278, allocations: 0.865 MB / 431.1 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001512/0.128, allocations: 11.94 kB / 431.1 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002951/0.1283, allocations: 51.56 kB / 431.1 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002263/0.1285, allocations: 71.42 kB / 431.2 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005506/0.129, allocations: 203.6 kB / 431.4 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004542/0.1295, allocations: 399.4 kB / 431.8 MB, free: 496 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001915/0.1297, allocations: 71.53 kB / 431.9 MB, free: 420 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003044/0.13, allocations: 171.4 kB / 432 MB, free: 248 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002661/0.1303, allocations: 191.2 kB / 432.2 MB, free: 56 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.423e-05/0.1303, allocations: 32 kB / 432.3 MB, free: 24 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2266/0.3569, allocations: 34.98 kB / 432.3 MB, free: 8.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002284/0.3571, allocations: 107.8 kB / 432.4 MB, free: 8.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002044/0.3573, allocations: 158.2 kB / 432.6 MB, free: 8.492 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005466/0.3579, allocations: 374 kB / 432.9 MB, free: 8.434 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.3579, allocations: 0.625 kB / 432.9 MB, free: 8.434 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.326e-06/0.3579, allocations: 1.719 kB / 432.9 MB, free: 8.434 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.611e-05/0.3579, allocations: 2.984 kB / 432.9 MB, free: 8.434 MB / 350.1 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.001228/0.3591, allocations: 0.6733 MB / 433.6 MB, free: 7.969 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.3591, allocations: 9.75 kB / 433.6 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.74e-05/0.3592, allocations: 50.2 kB / 433.7 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004039/0.3596, allocations: 316.7 kB / 434 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001848/0.3598, allocations: 138.2 kB / 434.1 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.888e-05/0.3599, allocations: 28.03 kB / 434.1 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.361, allocations: 0.5686 MB / 434.7 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.361, allocations: 3.312 kB / 434.7 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.458e-05/0.3611, allocations: 8.344 kB / 434.7 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.3611, allocations: 11.72 kB / 434.7 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001296/0.3624, allocations: 0.5092 MB / 435.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001363/0.3637, allocations: 1.025 MB / 436.3 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001587/0.3653, allocations: 484.4 kB / 436.7 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006226/0.3659, allocations: 230.5 kB / 437 MB, free: 6.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.436e-05/0.366, allocations: 11.94 kB / 437 MB, free: 6.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/0.366, allocations: 46.14 kB / 437 MB, free: 6.797 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.295e-06/0.366, allocations: 0 / 437 MB, free: 6.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04037/0.4064, allocations: 5.769 MB / 442.8 MB, free: 6.273 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.793e-05/0.4065, allocations: 150.2 kB / 442.9 MB, free: 6.109 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002976/0.4067, allocations: 253.8 kB / 443.2 MB, free: 5.961 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.677e-05/0.4068, allocations: 39.89 kB / 443.2 MB, free: 5.918 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.648e-05/0.4069, allocations: 156.4 kB / 443.4 MB, free: 5.777 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001749/0.4071, allocations: 200.7 kB / 443.6 MB, free: 5.625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003109/0.4074, allocations: 114.9 kB / 443.7 MB, free: 5.562 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.615e-05/0.4075, allocations: 343 kB / 444 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00163/0.4091, allocations: 0.6173 MB / 444.6 MB, free: 4.996 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001735/0.4108, allocations: 0.7993 MB / 445.4 MB, free: 4.531 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002999/0.4138, allocations: 1.251 MB / 446.7 MB, free: 3.875 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.4138, allocations: 1.219 kB / 446.7 MB, free: 3.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003647/0.4175, allocations: 1.397 MB / 448.1 MB, free: 3.328 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.4175, allocations: 8.406 kB / 448.1 MB, free: 3.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/0.4175, allocations: 8.062 kB / 448.1 MB, free: 3.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.28e-05/0.4176, allocations: 11.61 kB / 448.1 MB, free: 3.328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001355/0.4189, allocations: 214.9 kB / 448.3 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.619e-05/0.4189, allocations: 11.03 kB / 448.3 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009231/0.4199, allocations: 102.7 kB / 448.4 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.999e-05/0.4199, allocations: 26.81 kB / 448.5 MB, free: 3.297 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.0003226/0.4203, allocations: 192 kB / 448.6 MB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002853/0.4205, allocations: 172.5 kB / 448.8 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001783/0.4207, allocations: 69.23 kB / 448.9 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.4207, allocations: 6.875 kB / 448.9 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.218e-05/0.4207, allocations: 1.375 kB / 448.9 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.4207, allocations: 6.297 kB / 448.9 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004502/0.4252, allocations: 2.183 MB / 451.1 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.135e-05/0.4253, allocations: 11 kB / 451.1 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007307/0.426, allocations: 186.5 kB / 451.3 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-05/0.426, allocations: 15.91 kB / 451.3 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.94e-05/0.4261, allocations: 23.12 kB / 451.3 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.299e-05/0.4261, allocations: 24.8 kB / 451.3 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.869e-06/0.4261, allocations: 19.09 kB / 451.3 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002865/0.4289, allocations: 1.569 MB / 452.9 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001766/0.4291, allocations: 179.9 kB / 453.1 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.208e-05/0.4292, allocations: 28.33 kB / 453.1 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005965/0.4298, allocations: 76.27 kB / 453.2 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001905/0.43, allocations: 96.75 kB / 453.3 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.191e-05/0.43, allocations: 30.41 kB / 453.3 MB, free: 400 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001662/0.4302, allocations: 184.7 kB / 453.5 MB, free: 272 kB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4302, allocations: 0 / 453.5 MB, free: 272 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007051/0.4309, allocations: 124 kB / 453.6 MB, free: 252 kB / 350.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.0001453/0.431, allocations: 137 kB / 453.8 MB, free: 144 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002879/0.4339, allocations: 1.037 MB / 454.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.4339, allocations: 3.25 kB / 454.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001067/0.435, allocations: 328.3 kB / 455.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009603/0.436, allocations: 149.7 kB / 455.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0027/0.4387, allocations: 1.27 MB / 456.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005183/0.4392, allocations: 0.8322 MB / 457.4 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003667/0.4395, allocations: 43.56 kB / 457.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4395, allocations: 0 / 457.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of Templates: time 0.01164/0.4512, allocations: 7.414 MB / 464.8 MB, free: 9.699 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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: 8.145298768067732]