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.001844/0.001844, allocations: 99.53 kB / 20.97 MB, free: 3.453 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.001965/0.001965, allocations: 156.8 kB / 24.27 MB, free: 156 kB / 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 1.588/1.588, allocations: 177 MB / 204.5 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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.473e-06/1.473e-06, allocations: 0 / 272.2 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.694e-05/2.841e-05, allocations: 2.312 kB / 272.2 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004222/0.004251, allocations: 2.372 MB / 274.5 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001838/0.006089, allocations: 0.8376 MB / 275.4 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002312/0.00632, allocations: 11.94 kB / 275.4 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003689/0.006689, allocations: 51.58 kB / 275.4 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003306/0.00702, allocations: 71.42 kB / 275.5 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007249/0.007745, allocations: 199.4 kB / 275.7 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005433/0.008288, allocations: 403.4 kB / 276.1 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001912/0.008479, allocations: 75.77 kB / 276.2 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004229/0.008902, allocations: 239.5 kB / 276.4 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002623/0.009165, allocations: 147.6 kB / 276.6 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.307e-05/0.009238, allocations: 36 kB / 276.6 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.684e-05/0.009304, allocations: 32 kB / 276.6 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001509/0.009455, allocations: 115.6 kB / 276.7 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001524/0.009608, allocations: 111.6 kB / 276.8 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005926/0.0102, allocations: 390.8 kB / 277.2 MB, free: 12.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.0102, allocations: 0 / 277.2 MB, free: 12.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.01021, allocations: 0 / 277.2 MB, free: 12.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.01021, allocations: 0 / 277.2 MB, free: 12.75 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.001477/0.01169, allocations: 0.7176 MB / 277.9 MB, free: 12 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.01173, allocations: 11.98 kB / 278 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001524/0.01188, allocations: 84.7 kB / 278 MB, free: 11.9 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004623/0.01235, allocations: 248 kB / 278.3 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003714/0.01272, allocations: 343.9 kB / 278.6 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.873e-05/0.01279, allocations: 32.36 kB / 278.6 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.01412, allocations: 0.5624 MB / 279.2 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.842e-05/0.01415, allocations: 4.188 kB / 279.2 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.731e-05/0.01418, allocations: 12.12 kB / 279.2 MB, free: 10.58 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.01419, allocations: 8 kB / 279.2 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001493/0.01569, allocations: 467.5 kB / 279.7 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00174/0.01743, allocations: 1.012 MB / 280.7 MB, free: 9.047 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001594/0.01902, allocations: 468.5 kB / 281.2 MB, free: 8.539 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007136/0.01973, allocations: 238.7 kB / 281.4 MB, free: 8.289 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.02e-05/0.0198, allocations: 19.98 kB / 281.4 MB, free: 8.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.581e-05/0.01984, allocations: 49.33 kB / 281.5 MB, free: 8.211 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.583e-06/0.01984, allocations: 0 / 281.5 MB, free: 8.211 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.01832/0.03816, allocations: 3.395 MB / 284.9 MB, free: 4.805 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001421/0.0383, allocations: 145 kB / 285 MB, free: 4.633 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003939/0.0387, allocations: 328.2 kB / 285.3 MB, free: 4.297 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.321e-05/0.03878, allocations: 37.7 kB / 285.4 MB, free: 4.254 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001731/0.03895, allocations: 208.4 kB / 285.6 MB, free: 4.043 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002586/0.03921, allocations: 210.3 kB / 285.8 MB, free: 3.836 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003252/0.03954, allocations: 119.9 kB / 285.9 MB, free: 3.711 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000317/0.03986, allocations: 0.5313 MB / 286.4 MB, free: 3.168 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001689/0.04154, allocations: 0.5674 MB / 287 MB, free: 2.602 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001792/0.04334, allocations: 0.6913 MB / 287.7 MB, free: 1.871 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003204/0.04654, allocations: 1.12 MB / 288.8 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.04654, allocations: 0 / 288.8 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.003752/0.0503, allocations: 1.263 MB / 290 MB, free: 15.45 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.05032, allocations: 8 kB / 290.1 MB, free: 15.44 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.05033, allocations: 0 / 290.1 MB, free: 15.44 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.133e-05/0.05035, allocations: 4.234 kB / 290.1 MB, free: 15.43 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/0.05164, allocations: 163.7 kB / 290.2 MB, free: 15.27 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.346e-05/0.05165, allocations: 4.312 kB / 290.2 MB, free: 15.27 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008993/0.05255, allocations: 79.95 kB / 290.3 MB, free: 15.19 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.203e-05/0.05263, allocations: 20 kB / 290.3 MB, free: 15.17 MB / 282.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.0003549/0.05299, allocations: 212.4 kB / 290.5 MB, free: 14.95 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004064/0.05339, allocations: 181.4 kB / 290.7 MB, free: 14.77 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002188/0.05361, allocations: 67.61 kB / 290.8 MB, free: 14.71 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.124e-05/0.05362, allocations: 8 kB / 290.8 MB, free: 14.7 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-05/0.05364, allocations: 4 kB / 290.8 MB, free: 14.7 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.05365, allocations: 3.984 kB / 290.8 MB, free: 14.69 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005211/0.05886, allocations: 2.068 MB / 292.9 MB, free: 12.41 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-05/0.05888, allocations: 15.98 kB / 292.9 MB, free: 12.39 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007431/0.05962, allocations: 175.6 kB / 293 MB, free: 12.22 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.611e-05/0.05964, allocations: 12 kB / 293.1 MB, free: 12.21 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.972e-05/0.0597, allocations: 24 kB / 293.1 MB, free: 12.19 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.827e-05/0.05971, allocations: 19.94 kB / 293.1 MB, free: 12.17 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.537e-05/0.05973, allocations: 15.94 kB / 293.1 MB, free: 12.15 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003539/0.06327, allocations: 1.685 MB / 294.8 MB, free: 10.26 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002682/0.06354, allocations: 111.6 kB / 294.9 MB, free: 10.15 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.199e-05/0.06362, allocations: 24 kB / 294.9 MB, free: 10.12 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005682/0.06419, allocations: 63.97 kB / 295 MB, free: 10.06 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002299/0.06442, allocations: 99.64 kB / 295.1 MB, free: 9.965 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.452e-05/0.06447, allocations: 31.94 kB / 295.1 MB, free: 9.934 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002194/0.06469, allocations: 213.1 kB / 295.3 MB, free: 9.727 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.06469, allocations: 0 / 295.3 MB, free: 9.727 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000648/0.06534, allocations: 124 kB / 295.5 MB, free: 9.605 MB / 282.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.000216/0.06555, allocations: 138.9 kB / 295.6 MB, free: 9.457 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002898/0.06845, allocations: 0.9606 MB / 296.5 MB, free: 8.488 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.06846, allocations: 448 / 296.5 MB, free: 8.488 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009383/0.0694, allocations: 310.6 kB / 296.9 MB, free: 8.184 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009672/0.07036, allocations: 172.7 kB / 297 MB, free: 8.02 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002729/0.07309, allocations: 1.28 MB / 298.3 MB, free: 6.52 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002803/0.07337, allocations: 232.6 kB / 298.5 MB, free: 6.273 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004814/0.07385, allocations: 91.2 kB / 298.6 MB, free: 6.184 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002981/0.07415, allocations: 36.5 kB / 298.7 MB, free: 6.148 MB / 282.7 MB Notification: Performance of SimCode: time 6.81e-07/0.07415, allocations: 0 / 298.7 MB, free: 6.148 MB / 282.7 MB Notification: Performance of Templates: time 0.1184/0.1926, allocations: 9.03 MB / 307.7 MB, free: 41.54 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.966931349015795]