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.001297/0.001297, allocations: 112.1 kB / 17.06 MB, free: 5.973 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.00135/0.00135, allocations: 200 kB / 18.01 MB, free: 5.055 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.443/1.443, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 43.92 kB / 351.3 MB, free: 3.289 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3063/0.3075, allocations: 49.43 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003886/0.3114, allocations: 2.386 MB / 403.1 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001633/0.3131, allocations: 0.8183 MB / 403.9 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001725/0.3133, allocations: 11.88 kB / 403.9 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003156/0.3136, allocations: 63.5 kB / 404 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002134/0.3139, allocations: 67.48 kB / 404 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005786/0.3145, allocations: 199.5 kB / 404.2 MB, free: 5.332 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004295/0.3149, allocations: 395.5 kB / 404.6 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002109/0.3151, allocations: 103.5 kB / 404.7 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002395/0.3154, allocations: 167.4 kB / 404.9 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002428/0.3156, allocations: 179.2 kB / 405.1 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.896e-05/0.3157, allocations: 36 kB / 405.1 MB, free: 4.465 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.431e-05/0.3157, allocations: 32 kB / 405.1 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001242/0.3159, allocations: 111.7 kB / 405.2 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.316, allocations: 163 kB / 405.4 MB, free: 4.164 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004059/0.3164, allocations: 367.8 kB / 405.8 MB, free: 3.809 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.3164, allocations: 0 / 405.8 MB, free: 3.809 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3164, allocations: 0 / 405.8 MB, free: 3.809 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.3165, allocations: 4 kB / 405.8 MB, free: 3.805 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.001238/0.3177, allocations: 0.6734 MB / 406.4 MB, free: 3.086 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.3177, allocations: 11.89 kB / 406.4 MB, free: 3.074 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.735e-05/0.3178, allocations: 48.47 kB / 406.5 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004278/0.3183, allocations: 307.1 kB / 406.8 MB, free: 2.688 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001944/0.3185, allocations: 142.3 kB / 406.9 MB, free: 2.531 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.087e-05/0.3186, allocations: 36.28 kB / 407 MB, free: 2.496 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001153/0.3197, allocations: 0.5622 MB / 407.5 MB, free: 1.906 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.892e-05/0.3197, allocations: 7.984 kB / 407.5 MB, free: 1.898 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.571e-05/0.3198, allocations: 8 kB / 407.5 MB, free: 1.891 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.3198, allocations: 8 kB / 407.6 MB, free: 1.883 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001353/0.3212, allocations: 0.5113 MB / 408.1 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00154/0.3227, allocations: 1.025 MB / 409.1 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001597/0.3243, allocations: 0.5026 MB / 409.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006642/0.325, allocations: 260.9 kB / 409.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.536e-05/0.3251, allocations: 15.92 kB / 409.9 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.715e-05/0.3251, allocations: 38.56 kB / 409.9 MB, free: 15.4 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.044e-06/0.3251, allocations: 0 / 409.9 MB, free: 15.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03774/0.3628, allocations: 5.764 MB / 415.7 MB, free: 9.625 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001964/0.3631, allocations: 144.9 kB / 415.8 MB, free: 9.453 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003489/0.3634, allocations: 262.5 kB / 416.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.249e-05/0.3635, allocations: 41.7 kB / 416.1 MB, free: 9.145 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.3636, allocations: 145.5 kB / 416.2 MB, free: 8.996 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002012/0.3639, allocations: 189.3 kB / 416.4 MB, free: 8.809 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002909/0.3642, allocations: 118.6 kB / 416.5 MB, free: 8.688 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.3643, allocations: 346.8 kB / 416.9 MB, free: 8.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001645/0.366, allocations: 0.6149 MB / 417.5 MB, free: 7.723 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00179/0.3678, allocations: 0.8002 MB / 418.3 MB, free: 6.844 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003067/0.3708, allocations: 1.251 MB / 419.6 MB, free: 5.512 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.3709, allocations: 0 / 419.6 MB, free: 5.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003464/0.3743, allocations: 1.398 MB / 421 MB, free: 4.109 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.628e-05/0.3744, allocations: 8 kB / 421 MB, free: 4.102 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.636e-05/0.3744, allocations: 8 kB / 421 MB, free: 4.094 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.12e-05/0.3744, allocations: 8 kB / 421 MB, free: 4.086 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001355/0.3758, allocations: 215.7 kB / 421.2 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.12e-05/0.3758, allocations: 11.98 kB / 421.2 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009464/0.3768, allocations: 99.73 kB / 421.3 MB, free: 3.766 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.668e-05/0.3769, allocations: 31.98 kB / 421.3 MB, free: 3.734 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.0003542/0.3772, allocations: 193.6 kB / 421.5 MB, free: 3.535 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003097/0.3775, allocations: 165.4 kB / 421.7 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001777/0.3777, allocations: 67.61 kB / 421.7 MB, free: 3.301 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.3777, allocations: 8 kB / 421.8 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.3778, allocations: 0 / 421.8 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.874e-06/0.3778, allocations: 3.984 kB / 421.8 MB, free: 3.289 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004662/0.3824, allocations: 2.179 MB / 423.9 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.865e-05/0.3825, allocations: 16.98 kB / 423.9 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007265/0.3832, allocations: 184 kB / 424.1 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.526e-05/0.3832, allocations: 16 kB / 424.1 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.744e-05/0.3833, allocations: 28 kB / 424.2 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-05/0.3833, allocations: 23.86 kB / 424.2 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.125e-05/0.3833, allocations: 15.94 kB / 424.2 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003208/0.3865, allocations: 1.561 MB / 425.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002267/0.3868, allocations: 172.6 kB / 425.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.607e-05/0.3869, allocations: 31.98 kB / 426 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005723/0.3874, allocations: 71.92 kB / 426 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001795/0.3876, allocations: 99.72 kB / 426.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.005e-05/0.3877, allocations: 36 kB / 426.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001833/0.3879, allocations: 182 kB / 426.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3879, allocations: 4 kB / 426.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006985/0.3886, allocations: 116 kB / 426.5 MB, free: 14.21 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.000161/0.3888, allocations: 158.8 kB / 426.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002724/0.3915, allocations: 1.132 MB / 427.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/0.3915, allocations: 4 kB / 427.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001018/0.3925, allocations: 341.9 kB / 428.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009142/0.3935, allocations: 150.2 kB / 428.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002364/0.3958, allocations: 1.229 MB / 429.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004186/0.3963, allocations: 0.8324 MB / 430.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005274/0.3968, allocations: 96.11 kB / 430.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002804/0.3971, allocations: 43.36 kB / 430.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3971, allocations: 4 kB / 430.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of Templates: time 0.01462/0.4117, allocations: 8.513 MB / 439 MB, free: 1.547 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins/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