Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001718/0.001718, allocations: 96.25 kB / 20.96 MB, free: 3.469 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.001847/0.001847, allocations: 156.9 kB / 24.27 MB, free: 172 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.632/1.632, allocations: 177 MB / 204.4 MB, free: 5.617 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.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 272.2 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.078e-05/3.249e-05, allocations: 2.312 kB / 272.2 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004072/0.004105, allocations: 2.273 MB / 274.5 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001796/0.005901, allocations: 0.8026 MB / 275.3 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001959/0.006097, allocations: 7.938 kB / 275.3 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002993/0.006396, allocations: 59.5 kB / 275.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002628/0.006659, allocations: 55.5 kB / 275.4 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005858/0.007245, allocations: 183.4 kB / 275.6 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005468/0.007791, allocations: 391.5 kB / 275.9 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001912/0.007983, allocations: 68.33 kB / 276 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004854/0.008468, allocations: 235.5 kB / 276.2 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002803/0.008748, allocations: 147.6 kB / 276.4 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.418e-05/0.008832, allocations: 36 kB / 276.4 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.604e-05/0.008899, allocations: 39.94 kB / 276.5 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001342/0.009033, allocations: 99.7 kB / 276.6 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001519/0.009185, allocations: 107.7 kB / 276.7 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005153/0.0097, allocations: 358.9 kB / 277 MB, free: 12.96 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.009703, allocations: 0 / 277 MB, free: 12.96 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.009704, allocations: 0 / 277 MB, free: 12.96 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.846e-06/0.009713, allocations: 3.938 kB / 277 MB, free: 12.96 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001343/0.01106, allocations: 0.5483 MB / 277.6 MB, free: 12.38 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.01109, allocations: 11.98 kB / 277.6 MB, free: 12.37 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001539/0.01125, allocations: 76.69 kB / 277.6 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004749/0.01172, allocations: 217.8 kB / 277.9 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003746/0.0121, allocations: 351.9 kB / 278.2 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.765e-05/0.01217, allocations: 32.31 kB / 278.2 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.01358, allocations: 0.5704 MB / 278.8 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.0136, allocations: 192 / 278.8 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.163e-05/0.01364, allocations: 16.12 kB / 278.8 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.01365, allocations: 8 kB / 278.8 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001494/0.01515, allocations: 0.5152 MB / 279.3 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001686/0.01683, allocations: 0.8406 MB / 280.2 MB, free: 9.586 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001659/0.01849, allocations: 474.4 kB / 280.6 MB, free: 9.086 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006967/0.01919, allocations: 247.4 kB / 280.9 MB, free: 8.832 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.756e-05/0.01924, allocations: 8 kB / 280.9 MB, free: 8.824 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.64e-05/0.01928, allocations: 50.42 kB / 280.9 MB, free: 8.766 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.844e-06/0.01928, allocations: 0 / 280.9 MB, free: 8.766 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.03869/0.05797, allocations: 5.755 MB / 286.7 MB, free: 3 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001511/0.05812, allocations: 149.3 kB / 286.8 MB, free: 2.824 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002961/0.05842, allocations: 208.1 kB / 287 MB, free: 2.609 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.635e-05/0.05852, allocations: 37.7 kB / 287.1 MB, free: 2.566 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.05864, allocations: 141.8 kB / 287.2 MB, free: 2.422 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002327/0.05887, allocations: 190.3 kB / 287.4 MB, free: 2.234 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002865/0.05916, allocations: 98.28 kB / 287.5 MB, free: 2.133 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001965/0.05936, allocations: 342.8 kB / 287.8 MB, free: 1.789 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001664/0.06102, allocations: 0.6063 MB / 288.4 MB, free: 1.18 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001738/0.06276, allocations: 0.6937 MB / 289.1 MB, free: 472 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1132/0.176, allocations: 1.115 MB / 290.3 MB, free: 28.96 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.176, allocations: 1.703 kB / 290.3 MB, free: 28.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.003463/0.1795, allocations: 1.318 MB / 291.6 MB, free: 28.52 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.767e-05/0.1795, allocations: 6.203 kB / 291.6 MB, free: 28.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.1795, allocations: 3.188 kB / 291.6 MB, free: 28.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.49e-05/0.1795, allocations: 5.594 kB / 291.6 MB, free: 28.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001223/0.1808, allocations: 180.3 kB / 291.8 MB, free: 28.51 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.605e-05/0.1808, allocations: 5.453 kB / 291.8 MB, free: 28.51 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009192/0.1817, allocations: 89.34 kB / 291.9 MB, free: 28.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.467e-05/0.1818, allocations: 18.94 kB / 291.9 MB, free: 28.5 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.000339/0.1821, allocations: 177.7 kB / 292.1 MB, free: 28.36 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004054/0.1825, allocations: 176.7 kB / 292.2 MB, free: 28.29 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001769/0.1827, allocations: 63.66 kB / 292.3 MB, free: 28.24 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.11e-05/0.1827, allocations: 8.531 kB / 292.3 MB, free: 28.24 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/0.1827, allocations: 3.469 kB / 292.3 MB, free: 28.24 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.1827, allocations: 6.562 kB / 292.3 MB, free: 28.24 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004624/0.1874, allocations: 1.921 MB / 294.2 MB, free: 27.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.96e-05/0.1874, allocations: 9.125 kB / 294.2 MB, free: 27.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000798/0.1882, allocations: 187.3 kB / 294.4 MB, free: 27.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.236e-05/0.1882, allocations: 18.55 kB / 294.4 MB, free: 27.25 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.834e-05/0.1882, allocations: 24.27 kB / 294.5 MB, free: 27.24 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-05/0.1883, allocations: 20.48 kB / 294.5 MB, free: 27.23 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.319e-05/0.1883, allocations: 18.78 kB / 294.5 MB, free: 27.23 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003226/0.1915, allocations: 1.571 MB / 296.1 MB, free: 26.31 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000213/0.1917, allocations: 88.91 kB / 296.2 MB, free: 26.27 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.441e-05/0.1918, allocations: 30.97 kB / 296.2 MB, free: 26.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005981/0.1924, allocations: 81.22 kB / 296.3 MB, free: 26.25 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002239/0.1926, allocations: 101.5 kB / 296.4 MB, free: 26.21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.396e-05/0.1927, allocations: 30.42 kB / 296.4 MB, free: 26.21 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001365/0.1928, allocations: 147.5 kB / 296.5 MB, free: 26.12 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1928, allocations: 0 / 296.5 MB, free: 26.12 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006349/0.1934, allocations: 119.2 kB / 296.7 MB, free: 26.1 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.0001746/0.1936, allocations: 133.9 kB / 296.8 MB, free: 25.99 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002698/0.1963, allocations: 0.993 MB / 297.8 MB, free: 25.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.1963, allocations: 2.844 kB / 297.8 MB, free: 25.66 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009575/0.1973, allocations: 347.4 kB / 298.1 MB, free: 25.56 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009346/0.1982, allocations: 158.7 kB / 298.3 MB, free: 25.52 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002149/0.2004, allocations: 1.127 MB / 299.4 MB, free: 24.69 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002335/0.2006, allocations: 210.3 kB / 299.6 MB, free: 24.59 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004525/0.2011, allocations: 89.75 kB / 299.7 MB, free: 24.57 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002858/0.2013, allocations: 45.38 kB / 299.7 MB, free: 24.55 MB / 266.7 MB Notification: Performance of SimCode: time 1.022e-06/0.2013, allocations: 0 / 299.7 MB, free: 24.55 MB / 266.7 MB Notification: Performance of Templates: time 0.0112/0.2125, allocations: 8.726 MB / 308.5 MB, free: 18.11 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.975819005048834]