Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001491/0.001491, allocations: 88.33 kB / 20.96 MB, free: 3.449 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.001523/0.001523, allocations: 157.7 kB / 24.27 MB, free: 148 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.472/1.472, allocations: 177.1 MB / 204.6 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] 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.SubClocked,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.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_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.855e-06/2.855e-06, allocations: 0 / 272.3 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.921e-05/4.207e-05, allocations: 2.312 kB / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004283/0.004325, allocations: 2.286 MB / 274.6 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001816/0.006141, allocations: 0.7987 MB / 275.4 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001569/0.006298, allocations: 7.938 kB / 275.4 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003305/0.006629, allocations: 51.56 kB / 275.4 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002321/0.006861, allocations: 59.5 kB / 275.5 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005399/0.0074, allocations: 183.4 kB / 275.7 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005097/0.00791, allocations: 387.4 kB / 276.1 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000246/0.008156, allocations: 84.31 kB / 276.1 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000461/0.008617, allocations: 223.5 kB / 276.4 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002489/0.008866, allocations: 151.6 kB / 276.5 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.165e-05/0.008938, allocations: 32 kB / 276.5 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.004e-05/0.008998, allocations: 36 kB / 276.6 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001551/0.009153, allocations: 103.6 kB / 276.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001442/0.009297, allocations: 107.7 kB / 276.8 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004922/0.009789, allocations: 358.9 kB / 277.1 MB, free: 12.98 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.009793, allocations: 0 / 277.1 MB, free: 12.98 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.009794, allocations: 0 / 277.1 MB, free: 12.98 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.009799, allocations: 4 kB / 277.1 MB, free: 12.97 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.001364/0.01116, allocations: 0.5521 MB / 277.7 MB, free: 12.39 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.0112, allocations: 8.031 kB / 277.7 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001494/0.01135, allocations: 72.73 kB / 277.8 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004494/0.0118, allocations: 214.4 kB / 278 MB, free: 12.08 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003847/0.01219, allocations: 351.9 kB / 278.3 MB, free: 11.67 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.101e-05/0.01226, allocations: 28.38 kB / 278.3 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001342/0.0136, allocations: 0.5685 MB / 278.9 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.154e-05/0.01362, allocations: 8.125 kB / 278.9 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.029e-05/0.01366, allocations: 12.12 kB / 278.9 MB, free: 11.03 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.01368, allocations: 8 kB / 278.9 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00152/0.0152, allocations: 0.5191 MB / 279.5 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00157/0.01677, allocations: 0.8406 MB / 280.3 MB, free: 9.609 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001591/0.01836, allocations: 474.4 kB / 280.8 MB, free: 9.109 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006956/0.01905, allocations: 235.4 kB / 281 MB, free: 8.867 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.762e-05/0.0191, allocations: 12 kB / 281 MB, free: 8.855 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.99e-05/0.01914, allocations: 46.48 kB / 281.1 MB, free: 8.801 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.753e-06/0.01914, allocations: 0 / 281.1 MB, free: 8.801 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.03962/0.05877, allocations: 5.765 MB / 286.8 MB, free: 3.023 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/0.0589, allocations: 145 kB / 287 MB, free: 2.852 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002756/0.05917, allocations: 204.3 kB / 287.2 MB, free: 2.641 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.583e-05/0.05926, allocations: 37.7 kB / 287.2 MB, free: 2.598 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.05939, allocations: 141.8 kB / 287.3 MB, free: 2.453 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002455/0.05963, allocations: 198.3 kB / 287.5 MB, free: 2.258 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002999/0.05993, allocations: 90.3 kB / 287.6 MB, free: 2.164 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001995/0.06013, allocations: 346.7 kB / 288 MB, free: 1.816 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00173/0.06186, allocations: 0.6103 MB / 288.6 MB, free: 1.203 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001807/0.06367, allocations: 0.6898 MB / 289.3 MB, free: 500 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1099/0.1735, allocations: 1.117 MB / 290.4 MB, free: 28.92 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.1735, allocations: 0 / 290.4 MB, free: 28.92 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.003422/0.177, allocations: 1.317 MB / 291.7 MB, free: 28.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.177, allocations: 6.781 kB / 291.7 MB, free: 28.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.177, allocations: 4.406 kB / 291.7 MB, free: 28.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.215e-05/0.177, allocations: 4.688 kB / 291.7 MB, free: 28.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001259/0.1783, allocations: 181.7 kB / 291.9 MB, free: 28.49 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.344e-05/0.1783, allocations: 4.906 kB / 291.9 MB, free: 28.49 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008979/0.1792, allocations: 89.77 kB / 292 MB, free: 28.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.547e-05/0.1793, allocations: 18.34 kB / 292 MB, free: 28.48 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.0002874/0.1795, allocations: 176.4 kB / 292.2 MB, free: 28.34 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003793/0.1799, allocations: 177.5 kB / 292.3 MB, free: 28.27 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001626/0.1801, allocations: 66.62 kB / 292.4 MB, free: 28.22 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.1801, allocations: 9.594 kB / 292.4 MB, free: 28.22 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/0.1801, allocations: 1.125 kB / 292.4 MB, free: 28.22 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/0.1801, allocations: 4.938 kB / 292.4 MB, free: 28.22 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004671/0.1848, allocations: 1.925 MB / 294.3 MB, free: 27.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.371e-05/0.1848, allocations: 10.91 kB / 294.4 MB, free: 27.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007648/0.1856, allocations: 179.2 kB / 294.5 MB, free: 27.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.839e-05/0.1856, allocations: 13.81 kB / 294.5 MB, free: 27.23 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.769e-05/0.1856, allocations: 32.36 kB / 294.6 MB, free: 27.22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.113e-05/0.1857, allocations: 23.62 kB / 294.6 MB, free: 27.21 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.299e-05/0.1857, allocations: 18.84 kB / 294.6 MB, free: 27.21 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003269/0.1889, allocations: 1.572 MB / 296.2 MB, free: 26.3 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001999/0.1891, allocations: 89.17 kB / 296.3 MB, free: 26.26 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.339e-05/0.1892, allocations: 29.88 kB / 296.3 MB, free: 26.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006327/0.1898, allocations: 78.56 kB / 296.4 MB, free: 26.23 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002217/0.1901, allocations: 97.06 kB / 296.5 MB, free: 26.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.283e-05/0.1901, allocations: 34.89 kB / 296.5 MB, free: 26.2 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001352/0.1903, allocations: 151.5 kB / 296.7 MB, free: 26.1 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1903, allocations: 0 / 296.7 MB, free: 26.1 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006639/0.1909, allocations: 119.3 kB / 296.8 MB, free: 26.08 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.0001567/0.1911, allocations: 130.1 kB / 296.9 MB, free: 25.97 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002737/0.1938, allocations: 0.9941 MB / 297.9 MB, free: 25.63 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/0.1938, allocations: 6.625 kB / 297.9 MB, free: 25.63 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001013/0.1948, allocations: 338.7 kB / 298.2 MB, free: 25.54 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00094/0.1958, allocations: 156.7 kB / 298.4 MB, free: 25.5 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002076/0.1979, allocations: 1.135 MB / 299.5 MB, free: 24.66 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002185/0.1981, allocations: 208.9 kB / 299.7 MB, free: 24.57 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004615/0.1985, allocations: 91.62 kB / 299.8 MB, free: 24.54 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003195/0.1988, allocations: 36.84 kB / 299.8 MB, free: 24.54 MB / 266.7 MB Notification: Performance of SimCode: time 1.122e-06/0.1989, allocations: 1.188 kB / 299.9 MB, free: 24.54 MB / 266.7 MB Notification: Performance of Templates: time 0.0116/0.2105, allocations: 8.733 MB / 308.6 MB, free: 18.09 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.661452664062381]