Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.0008547/0.0008547, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001282/0.002137, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007276/0.0007276, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001022/0.00175, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.031/1.031, allocations: 177.2 MB / 189.8 MB, free: 5.258 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08864/1.12, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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.SuperSampled,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.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,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.SuperSampled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.061e-05/2.216e-05, allocations: 2.312 kB / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.002734/0.002756, allocations: 2.396 MB / 247.1 MB, free: 11.83 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.00379, allocations: 0.8139 MB / 247.9 MB, free: 11.01 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.003903, allocations: 7.938 kB / 247.9 MB, free: 11 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001536/0.004057, allocations: 47.58 kB / 248 MB, free: 10.96 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001205/0.004177, allocations: 63.48 kB / 248 MB, free: 10.89 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002887/0.004466, allocations: 163.5 kB / 248.2 MB, free: 10.73 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002857/0.004752, allocations: 375.6 kB / 248.5 MB, free: 10.37 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.004883, allocations: 74.42 kB / 248.6 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002826/0.005165, allocations: 243.5 kB / 248.9 MB, free: 10.05 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001685/0.005334, allocations: 143.6 kB / 249 MB, free: 9.914 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.032e-05/0.005374, allocations: 36 kB / 249 MB, free: 9.879 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.339e-05/0.005407, allocations: 32 kB / 249.1 MB, free: 9.848 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.079e-05/0.005478, allocations: 75.78 kB / 249.1 MB, free: 9.773 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.149e-05/0.00554, allocations: 75.81 kB / 249.2 MB, free: 9.699 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002083/0.005748, allocations: 219.1 kB / 249.4 MB, free: 9.484 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.375e-06/0.005756, allocations: 7.984 kB / 249.4 MB, free: 9.477 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.005757, allocations: 0 / 249.4 MB, free: 9.477 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.918e-06/0.005767, allocations: 4 kB / 249.4 MB, free: 9.473 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0006444/0.006411, allocations: 0.5506 MB / 250 MB, free: 8.898 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.826e-05/0.00644, allocations: 16.02 kB / 250 MB, free: 8.883 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.303e-05/0.006503, allocations: 56.91 kB / 250.1 MB, free: 8.828 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001929/0.006695, allocations: 182.7 kB / 250.2 MB, free: 8.625 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001993/0.006895, allocations: 339.9 kB / 250.6 MB, free: 8.227 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.056e-05/0.006935, allocations: 32.38 kB / 250.6 MB, free: 8.195 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004451/0.00738, allocations: 411.3 kB / 251 MB, free: 7.766 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.007394, allocations: 7.922 kB / 251 MB, free: 7.758 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.02e-05/0.007414, allocations: 12 kB / 251 MB, free: 7.746 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.007422, allocations: 8 kB / 251 MB, free: 7.738 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002364/0.007658, allocations: 170.6 kB / 251.2 MB, free: 7.57 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000662/0.00832, allocations: 0.6431 MB / 251.8 MB, free: 6.891 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000404/0.008724, allocations: 322.7 kB / 252.2 MB, free: 6.535 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001295/0.008853, allocations: 119.5 kB / 252.3 MB, free: 6.406 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.499e-05/0.008888, allocations: 15.92 kB / 252.3 MB, free: 6.391 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.088e-05/0.008909, allocations: 42.91 kB / 252.3 MB, free: 6.34 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.222e-06/0.008911, allocations: 0 / 252.3 MB, free: 6.34 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.005347/0.01426, allocations: 2.253 MB / 254.6 MB, free: 4.082 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.763e-05/0.01432, allocations: 152.9 kB / 254.7 MB, free: 3.902 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.388e-05/0.01441, allocations: 179.9 kB / 254.9 MB, free: 3.715 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.319e-05/0.01446, allocations: 33.7 kB / 254.9 MB, free: 3.676 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.859e-05/0.01451, allocations: 141.7 kB / 255.1 MB, free: 3.535 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.01462, allocations: 198.3 kB / 255.3 MB, free: 3.34 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001481/0.01477, allocations: 94.3 kB / 255.4 MB, free: 3.242 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.85e-05/0.01486, allocations: 342.7 kB / 255.7 MB, free: 2.898 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002894/0.01515, allocations: 204.2 kB / 255.9 MB, free: 2.695 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002702/0.01542, allocations: 290.7 kB / 256.2 MB, free: 2.387 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004745/0.01589, allocations: 0.4907 MB / 256.7 MB, free: 1.867 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.0159, allocations: 0 / 256.7 MB, free: 1.867 MB / 250.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0005672/0.01646, allocations: 0.5403 MB / 257.2 MB, free: 1.316 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.01648, allocations: 8 kB / 257.2 MB, free: 1.309 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.01648, allocations: 0 / 257.2 MB, free: 1.309 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.0165, allocations: 8 kB / 257.2 MB, free: 1.301 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005773/0.01707, allocations: 179.7 kB / 257.4 MB, free: 1.125 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.01708, allocations: 4 kB / 257.4 MB, free: 1.121 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002975/0.01738, allocations: 75.81 kB / 257.5 MB, free: 1.047 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.69e-05/0.01741, allocations: 24.08 kB / 257.5 MB, free: 1.023 MB / 250.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.0001574/0.01757, allocations: 152.4 kB / 257.6 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001571/0.01773, allocations: 109.6 kB / 257.8 MB, free: 0.75 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.241e-05/0.01781, allocations: 67.3 kB / 257.8 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.01782, allocations: 8 kB / 257.8 MB, free: 0.6758 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.01782, allocations: 0 / 257.8 MB, free: 0.6758 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.01783, allocations: 3.984 kB / 257.8 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001491/0.01932, allocations: 1.192 MB / 259 MB, free: 15.33 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.834e-06/0.01933, allocations: 8 kB / 259 MB, free: 15.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003417/0.01967, allocations: 183.8 kB / 259.2 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.688e-05/0.01975, allocations: 55.73 kB / 259.3 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.418e-06/0.01976, allocations: 19.92 kB / 259.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001268/0.01989, allocations: 28.47 kB / 259.3 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.104e-05/0.0199, allocations: 23.92 kB / 259.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.834e-06/0.01991, allocations: 15.94 kB / 259.4 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006206/0.02053, allocations: 0.8285 MB / 260.2 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.299e-05/0.02057, allocations: 40.02 kB / 260.2 MB, free: 13.97 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002314/0.0208, allocations: 55.95 kB / 260.3 MB, free: 13.92 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.02092, allocations: 91.62 kB / 260.4 MB, free: 13.83 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.396e-05/0.02094, allocations: 31.94 kB / 260.4 MB, free: 13.8 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.049e-05/0.02098, allocations: 52.98 kB / 260.4 MB, free: 13.74 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02098, allocations: 0 / 260.4 MB, free: 13.74 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003243/0.02131, allocations: 120 kB / 260.6 MB, free: 13.62 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.0001007/0.02141, allocations: 112.2 kB / 260.7 MB, free: 13.5 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005065/0.02192, allocations: 477.5 kB / 261.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/0.02192, allocations: 4 kB / 261.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002211/0.02214, allocations: 193 kB / 261.3 MB, free: 12.85 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005502/0.02269, allocations: 363.9 kB / 261.7 MB, free: 12.46 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/0.02491, allocations: 1.118 MB / 262.8 MB, free: 11.17 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.982e-05/0.025, allocations: 130.8 kB / 262.9 MB, free: 11.03 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002364/0.02524, allocations: 79.2 kB / 263 MB, free: 10.95 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002863/0.02552, allocations: 115.3 kB / 263.1 MB, free: 10.84 MB / 266.7 MB Notification: Performance of SimCode: time 4.41e-07/0.02552, allocations: 0 / 263.1 MB, free: 10.84 MB / 266.7 MB Notification: Performance of Templates: time 0.01076/0.03628, allocations: 9.34 MB / 272.5 MB, free: 1.543 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.758261683396995]