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.001425/0.001425, allocations: 92.31 kB / 20.96 MB, free: 3.477 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.001584/0.001584, allocations: 161.7 kB / 24.27 MB, free: 176 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.496/1.496, allocations: 177.1 MB / 204.6 MB, free: 5.586 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 2.254e-06/2.254e-06, allocations: 0 / 272.3 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.288e-05/3.514e-05, allocations: 2.312 kB / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.006511/0.006546, allocations: 2.313 MB / 274.6 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002712/0.009258, allocations: 0.8298 MB / 275.4 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003162/0.009575, allocations: 11.88 kB / 275.5 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004607/0.01004, allocations: 51.58 kB / 275.5 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004505/0.01049, allocations: 71.42 kB / 275.6 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009735/0.01146, allocations: 195.4 kB / 275.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000776/0.01224, allocations: 411.4 kB / 276.2 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002542/0.01249, allocations: 75.78 kB / 276.2 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005954/0.01308, allocations: 231.5 kB / 276.5 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003624/0.01345, allocations: 143.6 kB / 276.6 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001006/0.01355, allocations: 36 kB / 276.6 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.381e-05/0.01364, allocations: 36 kB / 276.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002211/0.01386, allocations: 119.6 kB / 276.8 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002205/0.01408, allocations: 107.7 kB / 276.9 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007961/0.01488, allocations: 394.8 kB / 277.3 MB, free: 12.82 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.085e-05/0.01489, allocations: 4 kB / 277.3 MB, free: 12.82 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.01489, allocations: 0 / 277.3 MB, free: 12.82 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.243e-06/0.0149, allocations: 0 / 277.3 MB, free: 12.82 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.002066/0.01696, allocations: 0.6025 MB / 277.9 MB, free: 12.19 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/0.01701, allocations: 8.031 kB / 277.9 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002194/0.01723, allocations: 76.7 kB / 278 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007168/0.01795, allocations: 249.1 kB / 278.2 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005347/0.01848, allocations: 355.9 kB / 278.6 MB, free: 11.42 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/0.01859, allocations: 28.31 kB / 278.6 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002089/0.02068, allocations: 0.5847 MB / 279.2 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.17e-05/0.02071, allocations: 192 / 279.2 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.201e-05/0.02077, allocations: 16.12 kB / 279.2 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.652e-05/0.02078, allocations: 8 kB / 279.2 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002488/0.02327, allocations: 0.5113 MB / 279.7 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002513/0.02578, allocations: 0.8679 MB / 280.6 MB, free: 9.328 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002489/0.02827, allocations: 462.6 kB / 281 MB, free: 8.84 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001158/0.02943, allocations: 243.8 kB / 281.3 MB, free: 8.59 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.5e-05/0.02951, allocations: 8 kB / 281.3 MB, free: 8.582 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.083e-05/0.02958, allocations: 50.3 kB / 281.3 MB, free: 8.523 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 4.258e-06/0.02958, allocations: 0 / 281.3 MB, free: 8.523 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.05893/0.08851, allocations: 5.796 MB / 287.1 MB, free: 2.715 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002411/0.08875, allocations: 152.9 kB / 287.3 MB, free: 2.531 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003772/0.08913, allocations: 269.8 kB / 287.5 MB, free: 2.262 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.222e-05/0.08922, allocations: 37.7 kB / 287.6 MB, free: 2.219 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000136/0.08935, allocations: 149.7 kB / 287.7 MB, free: 2.066 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000265/0.08962, allocations: 198.3 kB / 287.9 MB, free: 1.871 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003088/0.08993, allocations: 98.28 kB / 288 MB, free: 1.77 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.09012, allocations: 342.8 kB / 288.3 MB, free: 1.426 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001751/0.09187, allocations: 0.6025 MB / 288.9 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001792/0.09367, allocations: 0.6937 MB / 289.6 MB, free: 104 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1177/0.2114, allocations: 1.113 MB / 290.8 MB, free: 28.92 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.2114, allocations: 0.9688 kB / 290.8 MB, free: 28.92 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.003456/0.2149, allocations: 1.32 MB / 292.1 MB, free: 28.41 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.387e-05/0.2149, allocations: 5.75 kB / 292.1 MB, free: 28.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.274e-05/0.2149, allocations: 5.172 kB / 292.1 MB, free: 28.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.586e-05/0.2149, allocations: 4.531 kB / 292.1 MB, free: 28.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/0.2162, allocations: 178.8 kB / 292.3 MB, free: 28.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/0.2162, allocations: 7.797 kB / 292.3 MB, free: 28.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00109/0.2173, allocations: 91.56 kB / 292.4 MB, free: 28.4 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.878e-05/0.2174, allocations: 19.62 kB / 292.4 MB, free: 28.4 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.0003/0.2177, allocations: 182.8 kB / 292.6 MB, free: 28.25 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003717/0.218, allocations: 183.2 kB / 292.7 MB, free: 28.18 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001771/0.2182, allocations: 70.86 kB / 292.8 MB, free: 28.13 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/0.2182, allocations: 8.25 kB / 292.8 MB, free: 28.13 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.2182, allocations: 1.5 kB / 292.8 MB, free: 28.13 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.377e-06/0.2182, allocations: 4.797 kB / 292.8 MB, free: 28.13 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005081/0.2233, allocations: 1.944 MB / 294.8 MB, free: 27.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.15e-05/0.2233, allocations: 9.25 kB / 294.8 MB, free: 27.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008476/0.2242, allocations: 183.4 kB / 295 MB, free: 27.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.609e-05/0.2242, allocations: 13.5 kB / 295 MB, free: 27.14 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.118e-05/0.2243, allocations: 25.03 kB / 295 MB, free: 27.13 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.747e-05/0.2243, allocations: 25 kB / 295 MB, free: 27.13 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.821e-05/0.2243, allocations: 18.56 kB / 295 MB, free: 27.12 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003343/0.2277, allocations: 1.583 MB / 296.6 MB, free: 26.21 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002482/0.2279, allocations: 108 kB / 296.7 MB, free: 26.16 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.014e-05/0.228, allocations: 30.11 kB / 296.7 MB, free: 26.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006299/0.2286, allocations: 79.03 kB / 296.8 MB, free: 26.14 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002285/0.2289, allocations: 96.59 kB / 296.9 MB, free: 26.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.558e-05/0.2289, allocations: 38.19 kB / 297 MB, free: 26.1 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002092/0.2291, allocations: 189.8 kB / 297.1 MB, free: 25.99 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2291, allocations: 1.5 kB / 297.1 MB, free: 25.99 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006441/0.2298, allocations: 115.8 kB / 297.3 MB, free: 25.97 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.0001563/0.2299, allocations: 135.8 kB / 297.4 MB, free: 25.86 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002673/0.2326, allocations: 1.002 MB / 298.4 MB, free: 25.52 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.787e-06/0.2326, allocations: 1.844 kB / 298.4 MB, free: 25.52 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.2337, allocations: 338.5 kB / 298.7 MB, free: 25.43 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/0.2347, allocations: 173.4 kB / 298.9 MB, free: 25.39 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002355/0.2371, allocations: 1.187 MB / 300.1 MB, free: 24.52 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002662/0.2374, allocations: 230.1 kB / 300.3 MB, free: 24.43 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004919/0.2378, allocations: 93.45 kB / 300.4 MB, free: 24.4 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003039/0.2381, allocations: 42.11 kB / 300.4 MB, free: 24.39 MB / 266.7 MB Notification: Performance of SimCode: time 1.293e-06/0.2382, allocations: 0 / 300.4 MB, free: 24.39 MB / 266.7 MB Notification: Performance of Templates: time 0.01269/0.2508, allocations: 8.986 MB / 309.4 MB, free: 17.24 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 480] 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: 4.816643475089222]