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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 108.3 kB / 17.74 MB, free: 5.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 183 kB / 18.67 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 47.91 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.337/0.3382, allocations: 49.44 MB / 401.4 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004081/0.3423, allocations: 2.382 MB / 403.8 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001573/0.3439, allocations: 0.826 MB / 404.6 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001628/0.3441, allocations: 7.938 kB / 404.6 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003478/0.3445, allocations: 55.56 kB / 404.7 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002238/0.3447, allocations: 67.48 kB / 404.7 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005807/0.3453, allocations: 199.6 kB / 404.9 MB, free: 5.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004348/0.3457, allocations: 395.4 kB / 405.3 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000228/0.346, allocations: 95.52 kB / 405.4 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002196/0.3462, allocations: 167.4 kB / 405.6 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002536/0.3465, allocations: 179.2 kB / 405.7 MB, free: 4.656 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.244e-05/0.3465, allocations: 36 kB / 405.8 MB, free: 4.621 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.474e-05/0.3466, allocations: 32 kB / 405.8 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001266/0.3467, allocations: 111.7 kB / 405.9 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001507/0.3469, allocations: 163.1 kB / 406.1 MB, free: 4.32 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004431/0.3473, allocations: 367.9 kB / 406.4 MB, free: 3.961 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/0.3474, allocations: 4 kB / 406.4 MB, free: 3.957 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3474, allocations: 0 / 406.4 MB, free: 3.957 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.3474, allocations: 0 / 406.4 MB, free: 3.957 MB / 318.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.00123/0.3486, allocations: 0.6588 MB / 407.1 MB, free: 3.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.3487, allocations: 11.89 kB / 407.1 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.3488, allocations: 48.47 kB / 407.2 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005537/0.3493, allocations: 315 kB / 407.5 MB, free: 2.844 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001991/0.3495, allocations: 146.2 kB / 407.6 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.72e-05/0.3496, allocations: 32.28 kB / 407.6 MB, free: 2.652 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001186/0.3508, allocations: 0.5738 MB / 408.2 MB, free: 2.051 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.3508, allocations: 0 / 408.2 MB, free: 2.051 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.002e-05/0.3509, allocations: 16 kB / 408.2 MB, free: 2.035 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.3509, allocations: 11.98 kB / 408.2 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/0.3522, allocations: 0.5113 MB / 408.7 MB, free: 1.512 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00152/0.3538, allocations: 1.025 MB / 409.8 MB, free: 420 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001582/0.3554, allocations: 0.5063 MB / 410.3 MB, free: 15.87 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006106/0.356, allocations: 260.7 kB / 410.5 MB, free: 15.6 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.618e-05/0.356, allocations: 8.141 kB / 410.5 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/0.3561, allocations: 50.48 kB / 410.6 MB, free: 15.54 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.545e-06/0.3561, allocations: 0 / 410.6 MB, free: 15.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03797/0.3941, allocations: 5.753 MB / 416.3 MB, free: 9.766 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001168/0.3942, allocations: 148.9 kB / 416.5 MB, free: 9.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003176/0.3946, allocations: 258.5 kB / 416.7 MB, free: 9.332 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.261e-05/0.3947, allocations: 37.7 kB / 416.8 MB, free: 9.289 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.79e-05/0.3948, allocations: 149.5 kB / 416.9 MB, free: 9.137 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002017/0.395, allocations: 193.3 kB / 417.1 MB, free: 8.945 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003015/0.3953, allocations: 118.6 kB / 417.2 MB, free: 8.824 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.3954, allocations: 342.8 kB / 417.6 MB, free: 8.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001585/0.397, allocations: 0.6188 MB / 418.2 MB, free: 7.859 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001751/0.3988, allocations: 0.7924 MB / 419 MB, free: 6.988 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003059/0.4019, allocations: 1.247 MB / 420.2 MB, free: 5.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/0.4019, allocations: 4 kB / 420.2 MB, free: 5.656 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003572/0.4055, allocations: 1.398 MB / 421.6 MB, free: 4.254 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.831e-05/0.4055, allocations: 8 kB / 421.6 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/0.4056, allocations: 4 kB / 421.6 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.856e-05/0.4056, allocations: 12.38 kB / 421.6 MB, free: 4.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/0.4069, allocations: 211.6 kB / 421.9 MB, free: 4.023 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.584e-05/0.407, allocations: 15.92 kB / 421.9 MB, free: 4.008 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009768/0.4079, allocations: 99.77 kB / 422 MB, free: 3.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.199e-05/0.408, allocations: 39.86 kB / 422 MB, free: 3.871 MB / 334.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.0003592/0.4084, allocations: 185.6 kB / 422.2 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003336/0.4087, allocations: 161.1 kB / 422.3 MB, free: 3.516 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001792/0.4089, allocations: 71.78 kB / 422.4 MB, free: 3.445 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/0.409, allocations: 15.98 kB / 422.4 MB, free: 3.43 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-05/0.409, allocations: 4 kB / 422.4 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.409, allocations: 3.984 kB / 422.4 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004912/0.4139, allocations: 2.175 MB / 424.6 MB, free: 1.062 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.032e-05/0.414, allocations: 12 kB / 424.6 MB, free: 1.051 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007768/0.4147, allocations: 184.3 kB / 424.8 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.92e-05/0.4148, allocations: 12 kB / 424.8 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.028e-05/0.4148, allocations: 32 kB / 424.8 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.456e-05/0.4149, allocations: 27.92 kB / 424.9 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.75e-05/0.4149, allocations: 15.94 kB / 424.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003352/0.4183, allocations: 1.56 MB / 426.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002988/0.4186, allocations: 172.6 kB / 426.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.677e-05/0.4187, allocations: 31.98 kB / 426.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006182/0.4193, allocations: 71.92 kB / 426.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002087/0.4195, allocations: 95.72 kB / 426.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.354e-05/0.4196, allocations: 32 kB / 426.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000205/0.4198, allocations: 190 kB / 427 MB, free: 14.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4198, allocations: 0 / 427 MB, free: 14.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007516/0.4206, allocations: 120 kB / 427.1 MB, free: 14.35 MB / 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.0002242/0.4208, allocations: 146.8 kB / 427.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002999/0.4238, allocations: 1.139 MB / 428.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/0.4238, allocations: 0 / 428.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001051/0.4249, allocations: 347.2 kB / 428.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009965/0.4259, allocations: 145.3 kB / 428.9 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002601/0.4285, allocations: 1.269 MB / 430.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004462/0.429, allocations: 0.8285 MB / 431 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003671/0.4294, allocations: 43.42 kB / 431.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4294, allocations: 0 / 431.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of Templates: time 0.01266/0.442, allocations: 7.336 MB / 438.4 MB, free: 2.93 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches