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.001847/0.001847, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.002303/0.002303, allocations: 209.2 kB / 24.48 MB, free: 3.941 MB / 14.72 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 2.117/2.117, allocations: 230.6 MB / 258.2 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002178/0.002178, allocations: 47.92 kB / 378.9 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3727/0.3748, allocations: 53.38 MB / 432.3 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.005681/0.3805, allocations: 2.3 MB / 434.6 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002417/0.3829, allocations: 0.8184 MB / 435.4 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002391/0.3832, allocations: 11.88 kB / 435.5 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000375/0.3835, allocations: 55.56 kB / 435.5 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003275/0.3839, allocations: 67.48 kB / 435.6 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008584/0.3847, allocations: 203.5 kB / 435.8 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007021/0.3854, allocations: 399.4 kB / 436.2 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002754/0.3857, allocations: 78.8 kB / 436.2 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005161/0.3862, allocations: 171.4 kB / 436.4 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003555/0.3866, allocations: 187.3 kB / 436.6 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.492e-05/0.3867, allocations: 36 kB / 436.6 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.51e-05/0.3868, allocations: 43.88 kB / 436.7 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00018/0.3869, allocations: 103.7 kB / 436.8 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002166/0.3872, allocations: 139.3 kB / 436.9 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007004/0.3879, allocations: 386 kB / 437.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.3879, allocations: 0 / 437.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3879, allocations: 0 / 437.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.333e-05/0.3879, allocations: 0 / 437.3 MB, free: 1.73 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001847/0.3897, allocations: 0.6025 MB / 437.9 MB, free: 1.094 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.3898, allocations: 11.97 kB / 437.9 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.3899, allocations: 44.7 kB / 437.9 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006914/0.3906, allocations: 257.4 kB / 438.2 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004507/0.391, allocations: 347.9 kB / 438.5 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.701e-05/0.3911, allocations: 28.38 kB / 438.6 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001912/0.393, allocations: 0.5739 MB / 439.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.708e-05/0.3931, allocations: 7.938 kB / 439.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.322e-05/0.3931, allocations: 8 kB / 439.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.507e-05/0.3931, allocations: 8 kB / 439.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002196/0.3953, allocations: 0.512 MB / 439.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002171/0.3975, allocations: 0.86 MB / 440.5 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002238/0.3997, allocations: 474.4 kB / 441 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000983/0.4007, allocations: 239.8 kB / 441.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.122e-05/0.4008, allocations: 15.98 kB / 441.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.387e-05/0.4008, allocations: 42.42 kB / 441.3 MB, free: 13.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.995e-06/0.4008, allocations: 0 / 441.3 MB, free: 13.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.06054/0.4614, allocations: 5.789 MB / 447.1 MB, free: 7.668 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001519/0.4615, allocations: 148.9 kB / 447.2 MB, free: 7.492 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004647/0.462, allocations: 269.8 kB / 447.5 MB, free: 7.223 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001349/0.4621, allocations: 37.7 kB / 447.5 MB, free: 7.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001595/0.4623, allocations: 161.7 kB / 447.7 MB, free: 7.016 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003455/0.4626, allocations: 202.3 kB / 447.9 MB, free: 6.816 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005007/0.4631, allocations: 118.6 kB / 448 MB, free: 6.691 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002368/0.4634, allocations: 346.8 kB / 448.3 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002688/0.4661, allocations: 0.6188 MB / 448.9 MB, free: 5.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002877/0.4689, allocations: 0.8004 MB / 449.7 MB, free: 4.852 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005102/0.474, allocations: 1.26 MB / 451 MB, free: 3.512 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.4741, allocations: 0 / 451 MB, free: 3.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.006048/0.4801, allocations: 1.419 MB / 452.4 MB, free: 2.086 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.994e-05/0.4801, allocations: 8 kB / 452.4 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.547e-05/0.4802, allocations: 4 kB / 452.4 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.122e-05/0.4802, allocations: 8 kB / 452.4 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002179/0.4824, allocations: 215.6 kB / 452.7 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.031e-05/0.4824, allocations: 15.92 kB / 452.7 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001594/0.484, allocations: 103.8 kB / 452.8 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001479/0.4841, allocations: 31.98 kB / 452.8 MB, free: 1.707 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: 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 (84): * Single equations (assignments): 84 * 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.0005514/0.4847, allocations: 185.6 kB / 453 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005664/0.4853, allocations: 157.3 kB / 453.1 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002517/0.4855, allocations: 75.61 kB / 453.2 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.39e-05/0.4855, allocations: 11.94 kB / 453.2 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.4855, allocations: 0 / 453.2 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.639e-05/0.4856, allocations: 7.922 kB / 453.2 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007821/0.4934, allocations: 1.926 MB / 455.2 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.641e-05/0.4934, allocations: 12 kB / 455.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001249/0.4947, allocations: 187.7 kB / 455.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.266e-05/0.4947, allocations: 12 kB / 455.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.491e-05/0.4948, allocations: 24 kB / 455.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.257e-05/0.4948, allocations: 27.86 kB / 455.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.84e-05/0.4948, allocations: 16.19 kB / 455.4 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005448/0.5003, allocations: 1.577 MB / 457 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000401/0.5007, allocations: 103.6 kB / 457.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001339/0.5008, allocations: 27.98 kB / 457.1 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/0.5019, allocations: 87.92 kB / 457.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003329/0.5022, allocations: 99.62 kB / 457.3 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.352e-05/0.5023, allocations: 28.19 kB / 457.3 MB, free: 12.83 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003222/0.5026, allocations: 193.2 kB / 457.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5026, allocations: 3.938 kB / 457.5 MB, free: 12.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001214/0.5038, allocations: 124 kB / 457.7 MB, free: 12.51 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: 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.0002376/0.5041, allocations: 135.2 kB / 457.8 MB, free: 12.37 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00469/0.5087, allocations: 1.054 MB / 458.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.884e-06/0.5087, allocations: 384 / 458.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001725/0.5105, allocations: 345.8 kB / 459.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001608/0.5121, allocations: 142.4 kB / 459.3 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004063/0.5161, allocations: 1.236 MB / 460.6 MB, free: 9.441 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003905/0.5165, allocations: 224.7 kB / 460.8 MB, free: 9.203 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008253/0.5174, allocations: 112.1 kB / 460.9 MB, free: 9.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004711/0.5178, allocations: 43.42 kB / 460.9 MB, free: 9.047 MB / 366.1 MB Notification: Performance of SimCode: time 7.41e-07/0.5178, allocations: 0 / 460.9 MB, free: 9.047 MB / 366.1 MB Notification: Performance of Templates: time 0.02531/0.5431, allocations: 9.656 MB / 470.6 MB, free: 15.48 MB / 382.1 MB " [Timeout remaining time 659] 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=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 6.860884431007435]