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.001104/0.001104, allocations: 85.91 kB / 22.21 MB, free: 2.285 MB / 18.57 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.001226/0.001226, allocations: 162.4 kB / 25.61 MB, free: 8.582 MB / 18.57 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 0.9572/0.9572, allocations: 177 MB / 205.9 MB, free: 4.457 MB / 186.7 MB " [Timeout remaining time 179] 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 1.493e-06/1.493e-06, allocations: 0 / 274.1 MB, free: 4.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.721e-05/1.871e-05, allocations: 6.594 kB / 274.1 MB, free: 4.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003224/0.003242, allocations: 2.383 MB / 276.5 MB, free: 2.016 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001513/0.004755, allocations: 0.8416 MB / 277.3 MB, free: 1.172 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002033/0.004958, allocations: 11.94 kB / 277.3 MB, free: 1.16 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002949/0.005253, allocations: 67.42 kB / 277.4 MB, free: 1.094 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002575/0.00551, allocations: 72.2 kB / 277.5 MB, free: 1.023 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005565/0.006067, allocations: 189.9 kB / 277.6 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003984/0.006465, allocations: 403.4 kB / 278 MB, free: 456 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001614/0.006627, allocations: 67.8 kB / 278.1 MB, free: 388 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003719/0.006999, allocations: 240 kB / 278.3 MB, free: 148 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001916/0.00719, allocations: 148.2 kB / 278.5 MB, free: 0 / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.808e-05/0.007248, allocations: 36.05 kB / 278.5 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.776e-05/0.007286, allocations: 40.59 kB / 278.6 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.95e-05/0.007376, allocations: 114 kB / 278.7 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.017e-05/0.007456, allocations: 107.7 kB / 278.8 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003897/0.007846, allocations: 282.9 kB / 279.1 MB, free: 15.43 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.007851, allocations: 4 kB / 279.1 MB, free: 15.43 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.143e-06/0.007852, allocations: 0 / 279.1 MB, free: 15.43 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.007858, allocations: 0 / 279.1 MB, free: 15.43 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.0008335/0.008691, allocations: 0.6946 MB / 279.8 MB, free: 14.7 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.008735, allocations: 8.031 kB / 279.8 MB, free: 14.69 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.008844, allocations: 80.69 kB / 279.8 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002848/0.009128, allocations: 255.8 kB / 280.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001835/0.009312, allocations: 343.9 kB / 280.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.367e-05/0.009356, allocations: 24.38 kB / 280.4 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005119/0.009868, allocations: 446.3 kB / 280.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.009882, allocations: 192 / 280.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.627e-05/0.009909, allocations: 16.12 kB / 280.9 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.009917, allocations: 8 kB / 280.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002902/0.01021, allocations: 196.5 kB / 281.1 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008648/0.01107, allocations: 0.9099 MB / 282 MB, free: 12.26 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000492/0.01156, allocations: 312.8 kB / 282.3 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003789/0.01194, allocations: 126.8 kB / 282.4 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.615e-05/0.01198, allocations: 11.94 kB / 282.5 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/0.01201, allocations: 49.31 kB / 282.5 MB, free: 11.7 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.382e-06/0.01201, allocations: 0 / 282.5 MB, free: 11.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006714/0.01872, allocations: 2.406 MB / 284.9 MB, free: 9.285 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.411e-05/0.01881, allocations: 153.3 kB / 285.1 MB, free: 9.102 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001853/0.01899, allocations: 292.1 kB / 285.3 MB, free: 8.801 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.643e-05/0.01906, allocations: 37.7 kB / 285.4 MB, free: 8.758 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.514e-05/0.01915, allocations: 204.4 kB / 285.6 MB, free: 8.551 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001391/0.01929, allocations: 194.3 kB / 285.8 MB, free: 8.359 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001835/0.01947, allocations: 107.9 kB / 285.9 MB, free: 8.246 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.01961, allocations: 0.5156 MB / 286.4 MB, free: 7.719 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002949/0.0199, allocations: 245.2 kB / 286.6 MB, free: 7.48 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003266/0.02023, allocations: 364 kB / 287 MB, free: 7.086 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000568/0.0208, allocations: 0.5458 MB / 287.5 MB, free: 6.508 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.0208, allocations: 0 / 287.5 MB, free: 6.508 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.000824/0.02163, allocations: 0.6653 MB / 288.2 MB, free: 5.832 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.02164, allocations: 6.656 kB / 288.2 MB, free: 5.828 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.02165, allocations: 4 kB / 288.2 MB, free: 5.824 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.02166, allocations: 4 kB / 288.2 MB, free: 5.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006392/0.0223, allocations: 163.7 kB / 288.4 MB, free: 5.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.02231, allocations: 7.938 kB / 288.4 MB, free: 5.652 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003889/0.0227, allocations: 75.86 kB / 288.4 MB, free: 5.578 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.149e-05/0.02274, allocations: 16.09 kB / 288.5 MB, free: 5.562 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.0002003/0.02294, allocations: 196.4 kB / 288.7 MB, free: 5.359 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002153/0.02316, allocations: 153.3 kB / 288.8 MB, free: 5.203 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.005e-05/0.02325, allocations: 67.61 kB / 288.9 MB, free: 5.141 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.02326, allocations: 8 kB / 288.9 MB, free: 5.133 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.02326, allocations: 4 kB / 288.9 MB, free: 5.129 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.02327, allocations: 7.922 kB / 288.9 MB, free: 5.121 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002061/0.02533, allocations: 1.465 MB / 290.4 MB, free: 3.449 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.345e-06/0.02534, allocations: 12 kB / 290.4 MB, free: 3.438 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003558/0.02569, allocations: 163.8 kB / 290.5 MB, free: 3.277 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.538e-06/0.0257, allocations: 12 kB / 290.5 MB, free: 3.266 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.891e-05/0.02574, allocations: 31.94 kB / 290.6 MB, free: 3.234 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.033e-05/0.02575, allocations: 20.39 kB / 290.6 MB, free: 3.215 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.105e-06/0.02576, allocations: 19.94 kB / 290.6 MB, free: 3.195 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008118/0.02657, allocations: 1.054 MB / 291.7 MB, free: 1.93 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001485/0.02672, allocations: 103.6 kB / 291.8 MB, free: 1.828 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.658e-05/0.02677, allocations: 24.03 kB / 291.8 MB, free: 1.805 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002604/0.02703, allocations: 63.94 kB / 291.9 MB, free: 1.742 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/0.02715, allocations: 87.64 kB / 291.9 MB, free: 1.656 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.757e-05/0.02717, allocations: 28 kB / 292 MB, free: 1.629 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.927e-05/0.02726, allocations: 197 kB / 292.2 MB, free: 1.438 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02726, allocations: 0 / 292.2 MB, free: 1.438 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004028/0.02767, allocations: 120 kB / 292.3 MB, free: 1.32 MB / 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.0001368/0.0278, allocations: 138.9 kB / 292.4 MB, free: 1.172 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006022/0.02841, allocations: 0.5037 MB / 292.9 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.02841, allocations: 4 kB / 292.9 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001889/0.0286, allocations: 157.7 kB / 293.1 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005883/0.02919, allocations: 162.2 kB / 293.2 MB, free: 360 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001518/0.0307, allocations: 1.168 MB / 294.4 MB, free: 14.96 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001035/0.03081, allocations: 138.8 kB / 294.5 MB, free: 14.81 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002815/0.03109, allocations: 79.23 kB / 294.6 MB, free: 14.73 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003101/0.0314, allocations: 142.2 kB / 294.8 MB, free: 14.59 MB / 282.7 MB Notification: Performance of SimCode: time 1.253e-06/0.0314, allocations: 0 / 294.8 MB, free: 14.59 MB / 282.7 MB Notification: Performance of Templates: time 0.01188/0.04328, allocations: 9.936 MB / 304.7 MB, free: 4.746 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.964335590135306]