Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.0009465/0.0009465, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.001019/0.001019, allocations: 169.1 kB / 24.91 MB, free: 9.191 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.9413/0.9413, allocations: 177.1 MB / 205.3 MB, free: 5.492 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.AbsoluteClocks,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.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.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 273.4 MB, free: 1.344 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.19e-05/2.332e-05, allocations: 2.312 kB / 273.4 MB, free: 1.34 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.00252/0.002543, allocations: 2.386 MB / 275.8 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001027/0.00357, allocations: 0.8646 MB / 276.7 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000118/0.003688, allocations: 15.88 kB / 276.7 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002244/0.003912, allocations: 47.56 kB / 276.7 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001596/0.004072, allocations: 71.42 kB / 276.8 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003407/0.004412, allocations: 211.3 kB / 277 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000283/0.004695, allocations: 395.5 kB / 277.4 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.00482, allocations: 78.47 kB / 277.5 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002464/0.005066, allocations: 235.5 kB / 277.7 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001484/0.005215, allocations: 151.5 kB / 277.9 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.777e-05/0.005253, allocations: 32 kB / 277.9 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.272e-05/0.005285, allocations: 36 kB / 277.9 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.027e-05/0.005366, allocations: 119.6 kB / 278 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.352e-05/0.005439, allocations: 111.7 kB / 278.1 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002313/0.005671, allocations: 286.9 kB / 278.4 MB, free: 12.31 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.564e-06/0.005673, allocations: 0 / 278.4 MB, free: 12.31 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.005674, allocations: 0 / 278.4 MB, free: 12.31 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.587e-06/0.005678, allocations: 0 / 278.4 MB, free: 12.31 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0006321/0.00631, allocations: 0.5621 MB / 279 MB, free: 11.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.576e-05/0.006335, allocations: 11.97 kB / 279 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.843e-05/0.006404, allocations: 68.89 kB / 279.1 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002182/0.006622, allocations: 225.1 kB / 279.3 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001585/0.006781, allocations: 343.9 kB / 279.6 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.603e-05/0.006817, allocations: 28.38 kB / 279.6 MB, free: 10.97 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004388/0.007255, allocations: 426.3 kB / 280.1 MB, free: 10.53 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.007269, allocations: 12.14 kB / 280.1 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.32e-05/0.007292, allocations: 16.11 kB / 280.1 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.0073, allocations: 12 kB / 280.1 MB, free: 10.49 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005413/0.007842, allocations: 174.6 kB / 280.3 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007104/0.008552, allocations: 0.6352 MB / 280.9 MB, free: 9.645 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004206/0.008973, allocations: 314.8 kB / 281.2 MB, free: 9.297 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.009084, allocations: 111.4 kB / 281.3 MB, free: 9.176 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.53e-05/0.009119, allocations: 11.98 kB / 281.3 MB, free: 9.164 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.109e-05/0.00914, allocations: 38.56 kB / 281.4 MB, free: 9.117 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.653e-06/0.009142, allocations: 0 / 281.4 MB, free: 9.117 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006/0.01514, allocations: 2.252 MB / 283.6 MB, free: 6.855 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.011e-05/0.01521, allocations: 145 kB / 283.8 MB, free: 6.684 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000143/0.01535, allocations: 228.9 kB / 284 MB, free: 6.449 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.491e-05/0.01541, allocations: 41.7 kB / 284 MB, free: 6.402 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.4e-05/0.01546, allocations: 141.7 kB / 284.2 MB, free: 6.258 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/0.01558, allocations: 190.3 kB / 284.4 MB, free: 6.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001687/0.01575, allocations: 106.2 kB / 284.5 MB, free: 5.961 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.8e-05/0.01583, allocations: 342.8 kB / 284.8 MB, free: 5.617 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002541/0.01608, allocations: 204.1 kB / 285 MB, free: 5.414 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002969/0.01638, allocations: 290.6 kB / 285.3 MB, free: 5.105 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005025/0.01688, allocations: 0.4912 MB / 285.8 MB, free: 4.582 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.01688, allocations: 3.938 kB / 285.8 MB, free: 4.578 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.000621/0.0175, allocations: 0.5324 MB / 286.3 MB, free: 4.043 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.01752, allocations: 8 kB / 286.3 MB, free: 4.035 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.01753, allocations: 0 / 286.3 MB, free: 4.035 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.01754, allocations: 4.219 kB / 286.3 MB, free: 4.031 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005519/0.01809, allocations: 167.7 kB / 286.5 MB, free: 3.867 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.0181, allocations: 4 kB / 286.5 MB, free: 3.863 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003291/0.01843, allocations: 71.91 kB / 286.6 MB, free: 3.793 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.797e-05/0.01846, allocations: 16 kB / 286.6 MB, free: 3.777 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.0001698/0.01863, allocations: 148.4 kB / 286.7 MB, free: 3.621 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001763/0.01881, allocations: 125.5 kB / 286.8 MB, free: 3.492 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.483e-05/0.01888, allocations: 71.61 kB / 286.9 MB, free: 3.422 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.01889, allocations: 11.98 kB / 286.9 MB, free: 3.41 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.01889, allocations: 0 / 286.9 MB, free: 3.41 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.0189, allocations: 3.984 kB / 286.9 MB, free: 3.406 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001566/0.02047, allocations: 1.201 MB / 288.1 MB, free: 2.055 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.463e-06/0.02047, allocations: 12.03 kB / 288.1 MB, free: 2.043 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003359/0.02081, allocations: 171.7 kB / 288.3 MB, free: 1.875 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.067e-05/0.02082, allocations: 12 kB / 288.3 MB, free: 1.863 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.922e-05/0.02085, allocations: 27.98 kB / 288.3 MB, free: 1.836 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.008e-05/0.02086, allocations: 19.94 kB / 288.4 MB, free: 1.816 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.673e-06/0.02087, allocations: 15.94 kB / 288.4 MB, free: 1.801 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006015/0.02147, allocations: 0.8474 MB / 289.2 MB, free: 0.793 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.02158, allocations: 71.66 kB / 289.3 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.144e-05/0.02163, allocations: 31.92 kB / 289.3 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002524/0.02188, allocations: 59.94 kB / 289.4 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.02199, allocations: 87.64 kB / 289.5 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.49e-05/0.02202, allocations: 35.97 kB / 289.5 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.026e-05/0.02208, allocations: 78.77 kB / 289.6 MB, free: 440 kB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02208, allocations: 0 / 289.6 MB, free: 440 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.000347/0.02243, allocations: 116 kB / 289.7 MB, free: 324 kB / 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.0001154/0.02254, allocations: 116.2 kB / 289.8 MB, free: 200 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005147/0.02306, allocations: 469.1 kB / 290.3 MB, free: 15.74 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.02306, allocations: 8 kB / 290.3 MB, free: 15.73 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001645/0.02323, allocations: 152.1 kB / 290.4 MB, free: 15.58 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005149/0.02374, allocations: 163.4 kB / 290.6 MB, free: 15.43 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001247/0.02499, allocations: 1.044 MB / 291.6 MB, free: 14.21 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.118e-05/0.02508, allocations: 134.8 kB / 291.8 MB, free: 14.06 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002618/0.02534, allocations: 75.23 kB / 291.8 MB, free: 13.99 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003008/0.02564, allocations: 123.3 kB / 292 MB, free: 13.87 MB / 282.7 MB Notification: Performance of SimCode: time 9.42e-07/0.02564, allocations: 0 / 292 MB, free: 13.87 MB / 282.7 MB Notification: Performance of Templates: time 0.01053/0.03618, allocations: 9.619 MB / 301.6 MB, free: 4.312 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 2.696876199916005]