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.002118/0.002118, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002455/0.002455, allocations: 169.3 kB / 24.28 MB, free: 152 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.589/1.589, allocations: 177.1 MB / 204.6 MB, free: 5.625 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.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.403e-06/1.403e-06, allocations: 0 / 272.3 MB, free: 1.891 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.981e-05/3.121e-05, allocations: 6.25 kB / 272.3 MB, free: 1.883 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004219/0.00425, allocations: 2.37 MB / 274.7 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001792/0.006042, allocations: 0.8415 MB / 275.5 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001579/0.0062, allocations: 15.88 kB / 275.5 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002927/0.006492, allocations: 51.56 kB / 275.6 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003165/0.006809, allocations: 67.48 kB / 275.6 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006037/0.007412, allocations: 203.4 kB / 275.8 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005214/0.007934, allocations: 399.4 kB / 276.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001946/0.008128, allocations: 83.75 kB / 276.3 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004128/0.008541, allocations: 235.5 kB / 276.5 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002486/0.00879, allocations: 143.6 kB / 276.7 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.132e-05/0.008861, allocations: 32 kB / 276.7 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.76e-05/0.008929, allocations: 36 kB / 276.7 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001509/0.00908, allocations: 115.6 kB / 276.8 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000148/0.009228, allocations: 115.6 kB / 277 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005408/0.009768, allocations: 394.8 kB / 277.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.009772, allocations: 0 / 277.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.009773, allocations: 4 kB / 277.4 MB, free: 12.79 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.009779, allocations: 0 / 277.4 MB, free: 12.79 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.001386/0.01116, allocations: 0.7099 MB / 278.1 MB, free: 12.05 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.0112, allocations: 8.031 kB / 278.1 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000143/0.01135, allocations: 76.7 kB / 278.1 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004493/0.0118, allocations: 248 kB / 278.4 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003491/0.01215, allocations: 343.9 kB / 278.7 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.112e-05/0.01222, allocations: 36.31 kB / 278.8 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/0.01354, allocations: 0.5533 MB / 279.3 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.01356, allocations: 192 / 279.3 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.674e-05/0.0136, allocations: 20.12 kB / 279.3 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.01361, allocations: 8 kB / 279.3 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001486/0.0151, allocations: 459.6 kB / 279.8 MB, free: 10.19 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001807/0.01691, allocations: 1.027 MB / 280.8 MB, free: 9.105 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001602/0.01851, allocations: 464.6 kB / 281.3 MB, free: 8.602 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006931/0.0192, allocations: 235.1 kB / 281.5 MB, free: 8.355 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.007e-05/0.01926, allocations: 11.98 kB / 281.5 MB, free: 8.344 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.795e-05/0.01931, allocations: 53.12 kB / 281.6 MB, free: 8.281 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.775e-06/0.01931, allocations: 0 / 281.6 MB, free: 8.281 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.01853/0.03784, allocations: 3.389 MB / 285 MB, free: 4.879 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001443/0.03799, allocations: 153 kB / 285.1 MB, free: 4.699 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000388/0.03838, allocations: 328.2 kB / 285.4 MB, free: 4.363 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.425e-05/0.03846, allocations: 41.7 kB / 285.5 MB, free: 4.316 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001679/0.03863, allocations: 208.4 kB / 285.7 MB, free: 4.105 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002494/0.03888, allocations: 202.3 kB / 285.9 MB, free: 3.906 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003356/0.03921, allocations: 123.9 kB / 286 MB, free: 3.777 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003021/0.03952, allocations: 0.5274 MB / 286.5 MB, free: 3.238 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001735/0.04125, allocations: 0.5674 MB / 287.1 MB, free: 2.672 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001834/0.04308, allocations: 0.6913 MB / 287.8 MB, free: 1.941 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003312/0.0464, allocations: 1.116 MB / 288.9 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.0464, allocations: 0 / 288.9 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.1209/0.1673, allocations: 1.263 MB / 290.1 MB, free: 28.08 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.668e-05/0.1674, allocations: 5.438 kB / 290.2 MB, free: 28.08 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.1674, allocations: 2.219 kB / 290.2 MB, free: 28.08 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.835e-05/0.1674, allocations: 4.703 kB / 290.2 MB, free: 28.08 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001296/0.1687, allocations: 164.2 kB / 290.3 MB, free: 28.08 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.731e-05/0.1687, allocations: 6.172 kB / 290.3 MB, free: 28.08 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009472/0.1697, allocations: 75.27 kB / 290.4 MB, free: 28.08 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.19e-05/0.1697, allocations: 22.02 kB / 290.4 MB, free: 28.08 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.000281/0.17, allocations: 206.7 kB / 290.6 MB, free: 27.92 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003984/0.1704, allocations: 189 kB / 290.8 MB, free: 27.89 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001951/0.1706, allocations: 62.06 kB / 290.9 MB, free: 27.88 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.1706, allocations: 9.703 kB / 290.9 MB, free: 27.88 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.1706, allocations: 6.344 kB / 290.9 MB, free: 27.88 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.1706, allocations: 4.438 kB / 290.9 MB, free: 27.88 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00452/0.1752, allocations: 2.075 MB / 293 MB, free: 26.95 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-05/0.1752, allocations: 9.984 kB / 293 MB, free: 26.95 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007339/0.1759, allocations: 168.7 kB / 293.1 MB, free: 26.94 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-05/0.1759, allocations: 14.22 kB / 293.2 MB, free: 26.94 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.625e-05/0.176, allocations: 24.67 kB / 293.2 MB, free: 26.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.889e-05/0.176, allocations: 22.5 kB / 293.2 MB, free: 26.93 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.289e-05/0.176, allocations: 16.91 kB / 293.2 MB, free: 26.92 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003032/0.1791, allocations: 1.671 MB / 294.9 MB, free: 25.81 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000298/0.1794, allocations: 103 kB / 295 MB, free: 25.77 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.008e-05/0.1794, allocations: 35.22 kB / 295 MB, free: 25.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005386/0.18, allocations: 60.8 kB / 295.1 MB, free: 25.75 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002294/0.1802, allocations: 100.3 kB / 295.2 MB, free: 25.71 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.514e-05/0.1803, allocations: 30.73 kB / 295.2 MB, free: 25.71 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002058/0.1805, allocations: 218.3 kB / 295.4 MB, free: 25.56 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1805, allocations: 0 / 295.4 MB, free: 25.56 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006712/0.1811, allocations: 117.8 kB / 295.5 MB, free: 25.54 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.0001807/0.1813, allocations: 138.1 kB / 295.7 MB, free: 25.43 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00273/0.184, allocations: 0.9697 MB / 296.6 MB, free: 25.2 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.226e-05/0.1841, allocations: 1.844 kB / 296.6 MB, free: 25.2 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009186/0.185, allocations: 303.4 kB / 296.9 MB, free: 25.11 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00103/0.186, allocations: 170.2 kB / 297.1 MB, free: 25.07 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00231/0.1883, allocations: 1.294 MB / 298.4 MB, free: 24.03 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002721/0.1886, allocations: 223.7 kB / 298.6 MB, free: 23.94 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004774/0.1891, allocations: 90.03 kB / 298.7 MB, free: 23.91 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000291/0.1894, allocations: 46.31 kB / 298.8 MB, free: 23.9 MB / 266.7 MB Notification: Performance of SimCode: time 1.533e-06/0.1894, allocations: 0 / 298.8 MB, free: 23.9 MB / 266.7 MB Notification: Performance of Templates: time 0.01313/0.2025, allocations: 9.052 MB / 307.8 MB, free: 18.2 MB / 266.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","/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: 5.044290615012869]