Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 72.08 kB / 21.69 MB, free: 2.855 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 143.8 kB / 24.98 MB, free: 8.812 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9657/0.9657, allocations: 173.4 MB / 201.5 MB, free: 9.348 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.264e-06/2.264e-06, allocations: 0 / 268 MB, free: 6.781 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.993e-05/2.219e-05, allocations: 6.25 kB / 268 MB, free: 6.773 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.002632/0.002654, allocations: 2.331 MB / 270.4 MB, free: 4.426 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009608/0.003615, allocations: 0.7636 MB / 271.1 MB, free: 3.656 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.003719, allocations: 11.94 kB / 271.2 MB, free: 3.645 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002016/0.00392, allocations: 43.64 kB / 271.2 MB, free: 3.602 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001459/0.004066, allocations: 67.42 kB / 271.3 MB, free: 3.535 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002791/0.004345, allocations: 167.5 kB / 271.4 MB, free: 3.371 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002697/0.004615, allocations: 383.5 kB / 271.8 MB, free: 2.996 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/0.004736, allocations: 63.86 kB / 271.9 MB, free: 2.934 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001978/0.004933, allocations: 223.5 kB / 272.1 MB, free: 2.715 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001437/0.005077, allocations: 143.6 kB / 272.2 MB, free: 2.574 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.1e-05/0.005118, allocations: 36 kB / 272.3 MB, free: 2.539 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.081e-05/0.005149, allocations: 32 kB / 272.3 MB, free: 2.508 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.212e-05/0.005221, allocations: 103.7 kB / 272.4 MB, free: 2.406 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.355e-05/0.005295, allocations: 99.78 kB / 272.5 MB, free: 2.309 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002212/0.005516, allocations: 251.1 kB / 272.7 MB, free: 2.062 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.563e-06/0.005517, allocations: 4 kB / 272.7 MB, free: 2.059 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.005518, allocations: 0 / 272.7 MB, free: 2.059 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.017e-06/0.005522, allocations: 0 / 272.7 MB, free: 2.059 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.0006878/0.00621, allocations: 0.6326 MB / 273.4 MB, free: 1.391 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.912e-05/0.006239, allocations: 12.03 kB / 273.4 MB, free: 1.379 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.099e-05/0.00632, allocations: 64.75 kB / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002211/0.006541, allocations: 212.6 kB / 273.6 MB, free: 1.082 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001665/0.006708, allocations: 351.8 kB / 274 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.68e-05/0.006745, allocations: 24.38 kB / 274 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000555/0.0073, allocations: 455.6 kB / 274.5 MB, free: 168 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.007312, allocations: 3.938 kB / 274.5 MB, free: 164 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.56e-05/0.007338, allocations: 15.98 kB / 274.5 MB, free: 148 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.007347, allocations: 8 kB / 274.5 MB, free: 140 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003747/0.007721, allocations: 231.7 kB / 274.7 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008197/0.008541, allocations: 0.933 MB / 275.6 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005426/0.009084, allocations: 343.5 kB / 276 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000177/0.009261, allocations: 154.6 kB / 276.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.407e-05/0.009295, allocations: 11.98 kB / 276.1 MB, free: 14.35 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.138e-05/0.009316, allocations: 49.33 kB / 276.2 MB, free: 14.29 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.583e-06/0.009318, allocations: 0 / 276.2 MB, free: 14.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006899/0.01622, allocations: 2.625 MB / 278.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.59e-05/0.01628, allocations: 149 kB / 279 MB, free: 11.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001408/0.01642, allocations: 245.8 kB / 279.2 MB, free: 11.23 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.286e-05/0.01648, allocations: 33.7 kB / 279.2 MB, free: 11.19 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.828e-05/0.01654, allocations: 192.5 kB / 279.4 MB, free: 10.99 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000123/0.01667, allocations: 190.3 kB / 279.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001731/0.01684, allocations: 99.94 kB / 279.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.01696, allocations: 0.5117 MB / 280.2 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004295/0.01739, allocations: 321.2 kB / 280.5 MB, free: 9.863 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004864/0.01787, allocations: 440 kB / 281 MB, free: 9.395 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007966/0.01867, allocations: 0.6357 MB / 281.6 MB, free: 8.719 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.01867, allocations: 0 / 281.6 MB, free: 8.719 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001104/0.01978, allocations: 0.7824 MB / 282.4 MB, free: 7.93 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.01979, allocations: 11.98 kB / 282.4 MB, free: 7.918 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.0198, allocations: 0 / 282.4 MB, free: 7.918 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.01981, allocations: 4 kB / 282.4 MB, free: 7.914 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005774/0.02039, allocations: 159.8 kB / 282.6 MB, free: 7.758 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.02039, allocations: 4 kB / 282.6 MB, free: 7.754 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000369/0.02076, allocations: 80.12 kB / 282.6 MB, free: 7.676 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.393e-05/0.02081, allocations: 23.98 kB / 282.7 MB, free: 7.652 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.0001774/0.02098, allocations: 192.4 kB / 282.8 MB, free: 7.453 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002096/0.02119, allocations: 157.4 kB / 283 MB, free: 7.293 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.058e-05/0.02127, allocations: 63.31 kB / 283.1 MB, free: 7.23 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.02128, allocations: 8 kB / 283.1 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.02128, allocations: 0 / 283.1 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.02129, allocations: 7.969 kB / 283.1 MB, free: 7.215 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001807/0.0231, allocations: 1.507 MB / 284.6 MB, free: 5.492 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.02311, allocations: 8 kB / 284.6 MB, free: 5.484 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003454/0.02345, allocations: 167.7 kB / 284.8 MB, free: 5.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.588e-06/0.02346, allocations: 16 kB / 284.8 MB, free: 5.305 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.093e-05/0.02349, allocations: 24.59 kB / 284.8 MB, free: 5.281 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-05/0.0235, allocations: 23.92 kB / 284.8 MB, free: 5.258 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.284e-06/0.02351, allocations: 16.33 kB / 284.8 MB, free: 5.242 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.02453, allocations: 1.236 MB / 286.1 MB, free: 3.801 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001099/0.02464, allocations: 87.64 kB / 286.2 MB, free: 3.715 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.492e-05/0.02468, allocations: 32.02 kB / 286.2 MB, free: 3.684 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002572/0.02494, allocations: 55.95 kB / 286.2 MB, free: 3.629 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001282/0.02507, allocations: 95.58 kB / 286.3 MB, free: 3.535 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.939e-05/0.0251, allocations: 31.98 kB / 286.4 MB, free: 3.504 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.963e-05/0.02517, allocations: 168.2 kB / 286.5 MB, free: 3.34 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02517, allocations: 0 / 286.5 MB, free: 3.34 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003647/0.02554, allocations: 116 kB / 286.6 MB, free: 3.227 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.0001081/0.02565, allocations: 138.9 kB / 286.8 MB, free: 3.078 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007764/0.02642, allocations: 0.578 MB / 287.4 MB, free: 2.5 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.02643, allocations: 4 kB / 287.4 MB, free: 2.496 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000214/0.02664, allocations: 169.4 kB / 287.5 MB, free: 2.328 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005536/0.0272, allocations: 138 kB / 287.7 MB, free: 2.199 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001355/0.02855, allocations: 1.154 MB / 288.8 MB, free: 0.832 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.854e-05/0.02864, allocations: 122.8 kB / 288.9 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002618/0.0289, allocations: 91.17 kB / 289 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001831/0.02908, allocations: 40.5 kB / 289.1 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of SimCode: time 9.62e-07/0.02909, allocations: 0 / 289.1 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of Templates: time 0.008552/0.03764, allocations: 8.72 MB / 297.8 MB, free: 7.906 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.064911979949102]