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.001396/0.001396, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001022/0.001022, allocations: 165 kB / 24.56 MB, free: 16 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 0.9775/0.9775, allocations: 177.1 MB / 205 MB, free: 5.289 MB / 186.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 3.396e-06/3.396e-06, allocations: 7.938 kB / 273 MB, free: 1.426 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.147e-05/3.486e-05, allocations: 2.312 kB / 273 MB, free: 1.422 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.00372/0.003755, allocations: 2.346 MB / 275.3 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001447/0.005202, allocations: 0.7947 MB / 276.1 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002053/0.005408, allocations: 7.938 kB / 276.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003529/0.005761, allocations: 43.62 kB / 276.1 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002281/0.005989, allocations: 71.42 kB / 276.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004639/0.006453, allocations: 163.5 kB / 276.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004097/0.006862, allocations: 387.5 kB / 276.8 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001893/0.007052, allocations: 63.86 kB / 276.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004099/0.007461, allocations: 231.5 kB / 277 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002077/0.007669, allocations: 135.6 kB / 277.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.566e-05/0.007735, allocations: 36 kB / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.446e-05/0.007789, allocations: 35.94 kB / 277.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.805e-05/0.007887, allocations: 99.7 kB / 277.3 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.806e-05/0.007975, allocations: 99.77 kB / 277.4 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003051/0.00828, allocations: 259 kB / 277.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.008283, allocations: 0 / 277.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.008285, allocations: 0 / 277.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.563e-06/0.008291, allocations: 4 kB / 277.7 MB, free: 12.66 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0008931/0.009185, allocations: 0.6248 MB / 278.3 MB, free: 12 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.009226, allocations: 12.03 kB / 278.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001175/0.009343, allocations: 68.75 kB / 278.4 MB, free: 11.92 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003172/0.00966, allocations: 211.1 kB / 278.6 MB, free: 11.69 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002251/0.009885, allocations: 339.9 kB / 278.9 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.184e-05/0.009937, allocations: 36.33 kB / 279 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006967/0.01063, allocations: 449.1 kB / 279.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.01065, allocations: 7.875 kB / 279.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.582e-05/0.01068, allocations: 16 kB / 279.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.01069, allocations: 4 kB / 279.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003811/0.01107, allocations: 251.7 kB / 279.7 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009573/0.01203, allocations: 0.9251 MB / 280.6 MB, free: 9.512 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005913/0.01262, allocations: 353.4 kB / 281 MB, free: 9.117 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001974/0.01281, allocations: 150.7 kB / 281.1 MB, free: 8.953 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.804e-05/0.01285, allocations: 8 kB / 281.1 MB, free: 8.945 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/0.01288, allocations: 41.39 kB / 281.2 MB, free: 8.895 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.685e-06/0.01288, allocations: 3.938 kB / 281.2 MB, free: 8.891 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006889/0.01977, allocations: 2.628 MB / 283.8 MB, free: 6.262 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.443e-05/0.01984, allocations: 145 kB / 283.9 MB, free: 6.09 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001447/0.01999, allocations: 237.8 kB / 284.2 MB, free: 5.84 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.606e-05/0.02004, allocations: 37.7 kB / 284.2 MB, free: 5.797 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.513e-05/0.02013, allocations: 192.5 kB / 284.4 MB, free: 5.602 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001352/0.02026, allocations: 194.3 kB / 284.6 MB, free: 5.41 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001837/0.02045, allocations: 96 kB / 284.7 MB, free: 5.309 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.0206, allocations: 0.5117 MB / 285.2 MB, free: 4.785 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004428/0.02104, allocations: 325.1 kB / 285.5 MB, free: 4.469 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005047/0.02155, allocations: 428.1 kB / 285.9 MB, free: 4.008 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008805/0.02243, allocations: 0.6435 MB / 286.6 MB, free: 3.328 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.02243, allocations: 0 / 286.6 MB, free: 3.328 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001108/0.02354, allocations: 0.7865 MB / 287.3 MB, free: 2.535 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.02356, allocations: 4 kB / 287.3 MB, free: 2.531 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.02357, allocations: 4 kB / 287.4 MB, free: 2.527 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.345e-05/0.02359, allocations: 4 kB / 287.4 MB, free: 2.523 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006033/0.02419, allocations: 163.7 kB / 287.5 MB, free: 2.363 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.02421, allocations: 4 kB / 287.5 MB, free: 2.359 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003819/0.02459, allocations: 71.91 kB / 287.6 MB, free: 2.289 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.562e-05/0.02463, allocations: 16 kB / 287.6 MB, free: 2.273 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.0002164/0.02485, allocations: 200.4 kB / 287.8 MB, free: 2.066 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002443/0.02509, allocations: 161.4 kB / 288 MB, free: 1.902 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001138/0.02521, allocations: 59.3 kB / 288 MB, free: 1.844 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/0.02522, allocations: 8 kB / 288 MB, free: 1.836 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/0.02523, allocations: 4 kB / 288 MB, free: 1.832 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.02524, allocations: 7.922 kB / 288 MB, free: 1.824 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002018/0.02726, allocations: 1.512 MB / 289.5 MB, free: 100 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.02727, allocations: 8 kB / 289.6 MB, free: 92 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1494/0.1767, allocations: 171.6 kB / 289.7 MB, free: 24.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.63e-05/0.1767, allocations: 13.75 kB / 289.7 MB, free: 24.91 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.506e-05/0.1768, allocations: 26.81 kB / 289.8 MB, free: 24.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.599e-05/0.1768, allocations: 19.3 kB / 289.8 MB, free: 24.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.307e-05/0.1768, allocations: 17.5 kB / 289.8 MB, free: 24.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001275/0.1781, allocations: 1.225 MB / 291 MB, free: 24.07 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001943/0.1783, allocations: 88.78 kB / 291.1 MB, free: 24.07 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.884e-05/0.1783, allocations: 28.59 kB / 291.1 MB, free: 24.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003225/0.1787, allocations: 61.22 kB / 291.2 MB, free: 24.07 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001738/0.1788, allocations: 87.73 kB / 291.3 MB, free: 24.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.534e-05/0.1789, allocations: 31.59 kB / 291.3 MB, free: 24.07 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.853e-05/0.179, allocations: 170.8 kB / 291.5 MB, free: 23.96 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.179, allocations: 0 / 291.5 MB, free: 23.96 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005217/0.1795, allocations: 119.3 kB / 291.6 MB, free: 23.96 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.0001585/0.1796, allocations: 133.8 kB / 291.7 MB, free: 23.87 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001003/0.1807, allocations: 0.5889 MB / 292.3 MB, free: 23.85 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/0.1807, allocations: 1.062 kB / 292.3 MB, free: 23.85 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002512/0.1809, allocations: 165.2 kB / 292.5 MB, free: 23.84 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006365/0.1815, allocations: 141 kB / 292.6 MB, free: 23.83 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001574/0.1831, allocations: 1.129 MB / 293.7 MB, free: 23.03 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001087/0.1832, allocations: 127.5 kB / 293.9 MB, free: 22.95 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003115/0.1835, allocations: 89.72 kB / 294 MB, free: 22.93 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002253/0.1838, allocations: 40.75 kB / 294 MB, free: 22.92 MB / 266.7 MB Notification: Performance of SimCode: time 1.142e-06/0.1838, allocations: 0 / 294 MB, free: 22.92 MB / 266.7 MB Notification: Performance of Templates: time 0.01218/0.196, allocations: 8.731 MB / 302.7 MB, free: 20.3 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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2826655083335936]