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.0007515/0.0007515, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001025/0.001777, allocations: 449.7 kB / 10.37 MB, free: 328 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.0006945/0.0006945, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008856/0.00158, allocations: 455.6 kB / 11.71 MB, free: 2.461 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.014/1.014, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0887/1.103, allocations: 53.65 MB / 243.3 MB, free: 15.58 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 2.184e-06/2.184e-06, allocations: 0 / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.403e-05/2.621e-05, allocations: 6.25 kB / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.002542/0.002568, allocations: 2.388 MB / 246.9 MB, free: 11.93 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001001/0.003569, allocations: 0.81 MB / 247.7 MB, free: 11.11 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.003691, allocations: 4 kB / 247.7 MB, free: 11.11 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001714/0.003862, allocations: 55.56 kB / 247.8 MB, free: 11.05 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001387/0.004001, allocations: 63.42 kB / 247.8 MB, free: 10.99 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000331/0.004332, allocations: 163.6 kB / 248 MB, free: 10.83 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002939/0.004626, allocations: 383.5 kB / 248.4 MB, free: 10.45 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.004758, allocations: 70.42 kB / 248.4 MB, free: 10.39 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003092/0.005067, allocations: 235.5 kB / 248.7 MB, free: 10.16 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001629/0.00523, allocations: 147.6 kB / 248.8 MB, free: 10.01 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.863e-05/0.005268, allocations: 36 kB / 248.8 MB, free: 9.977 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.286e-05/0.005301, allocations: 32 kB / 248.9 MB, free: 9.945 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.037e-05/0.005372, allocations: 71.8 kB / 248.9 MB, free: 9.875 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.75e-05/0.005439, allocations: 75.75 kB / 249 MB, free: 9.801 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002279/0.005667, allocations: 227.2 kB / 249.2 MB, free: 9.578 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.072e-05/0.005678, allocations: 3.984 kB / 249.2 MB, free: 9.574 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.005679, allocations: 0 / 249.2 MB, free: 9.574 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.005691, allocations: 0 / 249.2 MB, free: 9.574 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.0007265/0.006417, allocations: 0.5506 MB / 249.8 MB, free: 9 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.789e-05/0.006445, allocations: 12.03 kB / 249.8 MB, free: 8.988 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.984e-05/0.006515, allocations: 60.89 kB / 249.9 MB, free: 8.93 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001979/0.006713, allocations: 180.3 kB / 250 MB, free: 8.73 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001621/0.006875, allocations: 347.9 kB / 250.4 MB, free: 8.324 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.672e-05/0.006912, allocations: 28.38 kB / 250.4 MB, free: 8.297 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004322/0.007344, allocations: 408 kB / 250.8 MB, free: 7.867 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.007358, allocations: 11.92 kB / 250.8 MB, free: 7.855 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.951e-05/0.007377, allocations: 8 kB / 250.8 MB, free: 7.848 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.007384, allocations: 8 kB / 250.8 MB, free: 7.84 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002497/0.007634, allocations: 185.4 kB / 251 MB, free: 7.66 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006665/0.0083, allocations: 0.6313 MB / 251.6 MB, free: 6.988 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005347/0.008835, allocations: 329.7 kB / 252 MB, free: 6.629 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001725/0.009008, allocations: 111.4 kB / 252.1 MB, free: 6.508 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.063e-05/0.009048, allocations: 15.98 kB / 252.1 MB, free: 6.492 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.502e-05/0.009073, allocations: 46.91 kB / 252.1 MB, free: 6.438 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.914e-06/0.009075, allocations: 0 / 252.1 MB, free: 6.438 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.005442/0.01452, allocations: 2.241 MB / 254.4 MB, free: 4.195 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.588e-05/0.01458, allocations: 149 kB / 254.5 MB, free: 4.02 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.01469, allocations: 175.1 kB / 254.7 MB, free: 3.836 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.428e-05/0.01475, allocations: 41.7 kB / 254.7 MB, free: 3.789 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.611e-05/0.0148, allocations: 137.7 kB / 254.9 MB, free: 3.652 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.01492, allocations: 198.3 kB / 255.1 MB, free: 3.457 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.01508, allocations: 90.3 kB / 255.1 MB, free: 3.363 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.393e-05/0.01516, allocations: 346.7 kB / 255.5 MB, free: 3.016 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002523/0.01541, allocations: 212.1 kB / 255.7 MB, free: 2.805 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004001/0.01581, allocations: 290.6 kB / 256 MB, free: 2.492 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007486/0.01656, allocations: 499 kB / 256.5 MB, free: 1.977 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.01656, allocations: 0 / 256.5 MB, free: 1.977 MB / 250.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0005958/0.01716, allocations: 0.5324 MB / 257 MB, free: 1.438 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.01718, allocations: 8 kB / 257 MB, free: 1.43 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.01718, allocations: 0 / 257 MB, free: 1.43 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.0172, allocations: 8 kB / 257 MB, free: 1.422 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000611/0.01781, allocations: 183.7 kB / 257.2 MB, free: 1.242 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.692e-06/0.01781, allocations: 4.219 kB / 257.2 MB, free: 1.238 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003093/0.01812, allocations: 75.88 kB / 257.3 MB, free: 1.164 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.805e-05/0.01816, allocations: 19.98 kB / 257.3 MB, free: 1.145 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.0001601/0.01832, allocations: 152.4 kB / 257.4 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001674/0.01849, allocations: 113.6 kB / 257.5 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.767e-05/0.01857, allocations: 67.3 kB / 257.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.01857, allocations: 8 kB / 257.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.01858, allocations: 0 / 257.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.01858, allocations: 3.984 kB / 257.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001607/0.02019, allocations: 1.188 MB / 258.8 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.0202, allocations: 8 kB / 258.8 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003788/0.02058, allocations: 192.2 kB / 259 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.02069, allocations: 63.73 kB / 259.1 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.159e-05/0.0207, allocations: 12 kB / 259.1 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.153e-05/0.02073, allocations: 24 kB / 259.1 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.144e-05/0.02074, allocations: 19.92 kB / 259.1 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/0.02075, allocations: 15.94 kB / 259.1 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006745/0.02143, allocations: 0.8401 MB / 260 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.869e-05/0.02147, allocations: 27.98 kB / 260 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002396/0.02171, allocations: 55.95 kB / 260.1 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.02183, allocations: 91.62 kB / 260.2 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.532e-05/0.02185, allocations: 31.94 kB / 260.2 MB, free: 13.92 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.53e-05/0.0219, allocations: 53.84 kB / 260.2 MB, free: 13.87 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0219, allocations: 0 / 260.2 MB, free: 13.87 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003572/0.02225, allocations: 116 kB / 260.3 MB, free: 13.75 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.0001237/0.02238, allocations: 116.2 kB / 260.5 MB, free: 13.63 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005524/0.02293, allocations: 465.1 kB / 260.9 MB, free: 13.17 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.69e-05/0.02295, allocations: 8 kB / 260.9 MB, free: 13.16 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001707/0.02312, allocations: 159.7 kB / 261.1 MB, free: 13.01 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005124/0.02363, allocations: 159.8 kB / 261.2 MB, free: 12.86 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002449/0.02608, allocations: 1.122 MB / 262.4 MB, free: 11.57 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001064/0.02619, allocations: 138.7 kB / 262.5 MB, free: 11.41 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002776/0.02646, allocations: 75.2 kB / 262.6 MB, free: 11.34 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000284/0.02675, allocations: 119.3 kB / 262.7 MB, free: 11.22 MB / 266.7 MB Notification: Performance of SimCode: time 1.473e-06/0.02675, allocations: 4 kB / 262.7 MB, free: 11.22 MB / 266.7 MB Notification: Performance of Templates: time 0.01123/0.03797, allocations: 9.364 MB / 272.1 MB, free: 1.906 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6864640014246106]