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.0006823/0.0006823, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.003385/0.003385, allocations: 163.3 kB / 24.7 MB, free: 9.43 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.8665/0.8665, allocations: 177.1 MB / 205 MB, free: 5.727 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.723e-06/1.723e-06, allocations: 0 / 325.8 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.058e-05/2.23e-05, allocations: 2.281 kB / 325.8 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002833/0.002855, allocations: 2.322 MB / 328.1 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001162/0.004018, allocations: 0.8336 MB / 329 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001379/0.004155, allocations: 7.938 kB / 329 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002858/0.004441, allocations: 59.5 kB / 329 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001925/0.004634, allocations: 71.42 kB / 329.1 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003951/0.005029, allocations: 199.4 kB / 329.3 MB, free: 11.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003483/0.005377, allocations: 407.4 kB / 329.7 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.005551, allocations: 67.61 kB / 329.8 MB, free: 11.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002915/0.005842, allocations: 239.5 kB / 330 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001718/0.006014, allocations: 143.6 kB / 330.1 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.395e-05/0.006058, allocations: 39.98 kB / 330.2 MB, free: 10.94 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.23e-05/0.00609, allocations: 32 kB / 330.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.939e-05/0.00619, allocations: 115.6 kB / 330.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.424e-05/0.006274, allocations: 111.7 kB / 330.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003366/0.00661, allocations: 394.7 kB / 330.8 MB, free: 10.3 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.006613, allocations: 0 / 330.8 MB, free: 10.3 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.006614, allocations: 0 / 330.8 MB, free: 10.3 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.006619, allocations: 0 / 330.8 MB, free: 10.3 MB / 298.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.0008381/0.007457, allocations: 0.6131 MB / 331.4 MB, free: 9.656 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.007494, allocations: 8.031 kB / 331.4 MB, free: 9.648 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.101e-05/0.007555, allocations: 44.7 kB / 331.5 MB, free: 9.605 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003089/0.007864, allocations: 257.1 kB / 331.7 MB, free: 9.328 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000196/0.00806, allocations: 347.9 kB / 332.1 MB, free: 8.922 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.55e-05/0.008106, allocations: 28.38 kB / 332.1 MB, free: 8.895 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007888/0.008895, allocations: 0.5749 MB / 332.7 MB, free: 8.289 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.00891, allocations: 4.125 kB / 332.7 MB, free: 8.285 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.777e-05/0.008938, allocations: 16.12 kB / 332.7 MB, free: 8.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.008946, allocations: 4 kB / 332.7 MB, free: 8.266 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007771/0.009723, allocations: 0.5113 MB / 333.2 MB, free: 7.754 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001003/0.01073, allocations: 0.8451 MB / 334 MB, free: 6.859 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008722/0.0116, allocations: 470.5 kB / 334.5 MB, free: 6.363 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003556/0.01195, allocations: 241.8 kB / 334.7 MB, free: 6.117 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.766e-05/0.01199, allocations: 15.98 kB / 334.8 MB, free: 6.102 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.01202, allocations: 46.44 kB / 334.8 MB, free: 6.047 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 2.023e-06/0.01202, allocations: 0 / 334.8 MB, free: 6.047 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.01882/0.03084, allocations: 5.801 MB / 340.6 MB, free: 232 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.658e-05/0.03091, allocations: 153 kB / 340.8 MB, free: 48 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002111/0.03113, allocations: 269.9 kB / 341 MB, free: 15.77 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.517e-05/0.03118, allocations: 37.7 kB / 341.1 MB, free: 15.73 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.311e-05/0.03125, allocations: 153.7 kB / 341.2 MB, free: 15.58 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/0.03137, allocations: 194.2 kB / 341.4 MB, free: 15.39 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001663/0.03154, allocations: 94.3 kB / 341.5 MB, free: 15.29 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.444e-05/0.03163, allocations: 342.8 kB / 341.8 MB, free: 14.95 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008813/0.03252, allocations: 0.6064 MB / 342.4 MB, free: 14.34 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009149/0.03343, allocations: 0.7015 MB / 343.1 MB, free: 13.61 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001639/0.03507, allocations: 1.114 MB / 344.2 MB, free: 12.47 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.03507, allocations: 4 kB / 344.2 MB, free: 12.46 MB / 314.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001865/0.03694, allocations: 1.298 MB / 345.5 MB, free: 11.16 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.03696, allocations: 4 kB / 345.5 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.03697, allocations: 4 kB / 345.5 MB, free: 11.15 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.03699, allocations: 4 kB / 345.6 MB, free: 11.15 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000582/0.03757, allocations: 179.8 kB / 345.7 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.03758, allocations: 7.938 kB / 345.7 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000386/0.03797, allocations: 91.88 kB / 345.8 MB, free: 10.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.92e-05/0.03802, allocations: 23.98 kB / 345.8 MB, free: 10.85 MB / 314.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.0002127/0.03823, allocations: 177.6 kB / 346 MB, free: 10.67 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001877/0.03842, allocations: 165.7 kB / 346.2 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.03852, allocations: 67.61 kB / 346.3 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.03852, allocations: 8 kB / 346.3 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.03853, allocations: 4 kB / 346.3 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.03854, allocations: 7.984 kB / 346.3 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003475/0.04201, allocations: 1.937 MB / 348.2 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/0.04202, allocations: 8 kB / 348.2 MB, free: 8.301 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005132/0.04254, allocations: 179.7 kB / 348.4 MB, free: 8.125 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-05/0.04255, allocations: 16 kB / 348.4 MB, free: 8.109 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.609e-05/0.04258, allocations: 28.42 kB / 348.4 MB, free: 8.082 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.838e-06/0.04259, allocations: 19.94 kB / 348.5 MB, free: 8.062 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.566e-06/0.0426, allocations: 15.94 kB / 348.5 MB, free: 8.047 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002505/0.04511, allocations: 1.558 MB / 350 MB, free: 6.336 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002131/0.04532, allocations: 107.6 kB / 350.1 MB, free: 6.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.253e-05/0.04539, allocations: 27.98 kB / 350.2 MB, free: 6.203 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004862/0.04588, allocations: 83.97 kB / 350.2 MB, free: 6.121 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002064/0.04608, allocations: 99.58 kB / 350.3 MB, free: 6.023 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.727e-05/0.04613, allocations: 35.94 kB / 350.4 MB, free: 5.988 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001708/0.0463, allocations: 189.2 kB / 350.6 MB, free: 5.805 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0463, allocations: 0 / 350.6 MB, free: 5.805 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006445/0.04695, allocations: 116 kB / 350.7 MB, free: 5.691 MB / 314.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.0001758/0.04712, allocations: 143.2 kB / 350.8 MB, free: 5.543 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002234/0.04936, allocations: 0.9946 MB / 351.8 MB, free: 4.547 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.04936, allocations: 0 / 351.8 MB, free: 4.547 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008252/0.05019, allocations: 350.4 kB / 352.1 MB, free: 4.207 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009782/0.05116, allocations: 141 kB / 352.3 MB, free: 4.07 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002099/0.05326, allocations: 1.212 MB / 353.5 MB, free: 2.684 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000232/0.0535, allocations: 232.5 kB / 353.7 MB, free: 2.434 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003087/0.0538, allocations: 40.48 kB / 353.8 MB, free: 2.395 MB / 314.7 MB Notification: Performance of SimCode: time 8.12e-07/0.0538, allocations: 4 kB / 353.8 MB, free: 2.391 MB / 314.7 MB Notification: Performance of Templates: time 0.008927/0.06273, allocations: 7.412 MB / 361.2 MB, free: 10.99 MB / 330.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=480 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins/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: 4.639842961914837]