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.001684/0.001684, allocations: 83.58 kB / 21.18 MB, free: 3.383 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.001673/0.001673, allocations: 161 kB / 24.56 MB, free: 16 kB / 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 1/1, allocations: 177.1 MB / 205 MB, free: 5.637 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.914e-06/1.914e-06, allocations: 0 / 272.9 MB, free: 1.586 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.715e-05/2.907e-05, allocations: 2.312 kB / 272.9 MB, free: 1.582 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003959/0.003988, allocations: 2.404 MB / 275.4 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001721/0.005709, allocations: 0.857 MB / 276.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002084/0.005918, allocations: 11.88 kB / 276.2 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003308/0.006249, allocations: 51.58 kB / 276.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002768/0.006526, allocations: 67.48 kB / 276.3 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006572/0.007183, allocations: 207.3 kB / 276.5 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005129/0.007696, allocations: 407.4 kB / 276.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.007893, allocations: 64.52 kB / 277 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004311/0.008324, allocations: 235.5 kB / 277.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002618/0.008586, allocations: 147.6 kB / 277.4 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.39e-05/0.00866, allocations: 36 kB / 277.4 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.041e-05/0.008721, allocations: 36 kB / 277.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001474/0.008868, allocations: 111.6 kB / 277.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001321/0.009, allocations: 107.7 kB / 277.7 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004298/0.00943, allocations: 290.9 kB / 277.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.345e-06/0.009432, allocations: 0 / 277.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.009433, allocations: 0 / 277.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.009441, allocations: 4 kB / 277.9 MB, free: 12.56 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.001217/0.01066, allocations: 0.6907 MB / 278.6 MB, free: 11.84 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.0107, allocations: 12.03 kB / 278.7 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001359/0.01084, allocations: 76.7 kB / 278.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003939/0.01123, allocations: 255.9 kB / 279 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002654/0.0115, allocations: 347.9 kB / 279.3 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.279e-05/0.01157, allocations: 28.38 kB / 279.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009494/0.01252, allocations: 466.7 kB / 279.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.01254, allocations: 4.188 kB / 279.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.935e-05/0.01258, allocations: 16.12 kB / 279.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.497e-05/0.01259, allocations: 8 kB / 279.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005788/0.01317, allocations: 243.7 kB / 280.1 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001349/0.01452, allocations: 0.9525 MB / 281 MB, free: 9.266 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008427/0.01536, allocations: 344.6 kB / 281.4 MB, free: 8.879 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002743/0.01564, allocations: 145.2 kB / 281.5 MB, free: 8.723 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.016e-05/0.0157, allocations: 19.92 kB / 281.5 MB, free: 8.703 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.698e-05/0.01574, allocations: 49.33 kB / 281.6 MB, free: 8.645 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.984e-06/0.01574, allocations: 0 / 281.6 MB, free: 8.645 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.01058/0.02632, allocations: 2.665 MB / 284.2 MB, free: 5.969 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.971e-05/0.02639, allocations: 149 kB / 284.4 MB, free: 5.793 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001908/0.02658, allocations: 296.3 kB / 284.7 MB, free: 5.488 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.771e-05/0.02664, allocations: 41.7 kB / 284.7 MB, free: 5.441 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.939e-05/0.02672, allocations: 196.4 kB / 284.9 MB, free: 5.242 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.02684, allocations: 194.3 kB / 285.1 MB, free: 5.051 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001848/0.02703, allocations: 107.9 kB / 285.2 MB, free: 4.938 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.02716, allocations: 0.5157 MB / 285.7 MB, free: 4.41 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004317/0.02759, allocations: 317.2 kB / 286 MB, free: 4.102 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004681/0.02806, allocations: 440 kB / 286.4 MB, free: 3.633 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000769/0.02883, allocations: 0.6435 MB / 287.1 MB, free: 2.949 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.02883, allocations: 0 / 287.1 MB, free: 2.949 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001064/0.0299, allocations: 0.7862 MB / 287.9 MB, free: 2.16 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.02991, allocations: 10.34 kB / 287.9 MB, free: 2.152 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.02992, allocations: 0 / 287.9 MB, free: 2.152 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.02994, allocations: 4 kB / 287.9 MB, free: 2.148 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000611/0.03055, allocations: 168 kB / 288.1 MB, free: 1.984 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.03056, allocations: 4 kB / 288.1 MB, free: 1.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003703/0.03093, allocations: 75.91 kB / 288.1 MB, free: 1.906 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.618e-05/0.03098, allocations: 20 kB / 288.2 MB, free: 1.887 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.000213/0.03119, allocations: 192.4 kB / 288.3 MB, free: 1.688 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002157/0.0314, allocations: 153.4 kB / 288.5 MB, free: 1.531 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.219e-05/0.03149, allocations: 71.61 kB / 288.6 MB, free: 1.465 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.03149, allocations: 8 kB / 288.6 MB, free: 1.457 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.0315, allocations: 4 kB / 288.6 MB, free: 1.453 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.03151, allocations: 7.984 kB / 288.6 MB, free: 1.445 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001979/0.03349, allocations: 1.531 MB / 290.1 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.503e-06/0.03349, allocations: 8 kB / 290.1 MB, free: 15.69 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003612/0.03385, allocations: 175.8 kB / 290.3 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.356e-06/0.03386, allocations: 12 kB / 290.3 MB, free: 15.51 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.457e-05/0.03391, allocations: 24 kB / 290.3 MB, free: 15.48 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.121e-05/0.03392, allocations: 23.92 kB / 290.3 MB, free: 15.46 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.727e-06/0.03393, allocations: 15.94 kB / 290.4 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.03507, allocations: 1.232 MB / 291.6 MB, free: 14.01 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001382/0.03521, allocations: 103.6 kB / 291.7 MB, free: 13.91 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.307e-05/0.03525, allocations: 27.98 kB / 291.7 MB, free: 13.88 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002714/0.03553, allocations: 67.92 kB / 291.8 MB, free: 13.81 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000133/0.03566, allocations: 87.64 kB / 291.9 MB, free: 13.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.105e-05/0.03569, allocations: 31.94 kB / 291.9 MB, free: 13.7 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001025/0.03579, allocations: 205.2 kB / 292.1 MB, free: 13.5 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03579, allocations: 0 / 292.1 MB, free: 13.5 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000392/0.03618, allocations: 120 kB / 292.2 MB, free: 13.38 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.0001197/0.0363, allocations: 138.9 kB / 292.4 MB, free: 13.23 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007978/0.0371, allocations: 0.5784 MB / 292.9 MB, free: 12.64 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.0371, allocations: 0 / 292.9 MB, free: 12.64 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002189/0.03732, allocations: 170.6 kB / 293.1 MB, free: 12.48 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006301/0.03795, allocations: 163.3 kB / 293.3 MB, free: 12.32 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001847/0.0398, allocations: 1.186 MB / 294.5 MB, free: 10.92 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001043/0.03991, allocations: 138.7 kB / 294.6 MB, free: 10.76 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000264/0.04017, allocations: 87.2 kB / 294.7 MB, free: 10.68 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002114/0.04038, allocations: 40.5 kB / 294.7 MB, free: 10.64 MB / 282.7 MB Notification: Performance of SimCode: time 6.31e-07/0.04038, allocations: 0 / 294.7 MB, free: 10.64 MB / 282.7 MB Notification: Performance of Templates: time 0.01068/0.05106, allocations: 9.044 MB / 303.8 MB, free: 1.664 MB / 282.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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2475119079463184]