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.001537/0.001537, allocations: 111 kB / 21.18 MB, free: 0.6758 MB / 14.72 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.00215/0.00215, allocations: 209.2 kB / 24.47 MB, free: 3.977 MB / 14.72 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.45/1.45, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.1 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.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 0.001548/0.001548, allocations: 47.92 kB / 378.9 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2363/0.2379, allocations: 53.37 MB / 432.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003812/0.2417, allocations: 2.242 MB / 434.6 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001564/0.2433, allocations: 0.7716 MB / 435.3 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000134/0.2434, allocations: 4 kB / 435.3 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003149/0.2437, allocations: 51.58 kB / 435.4 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001994/0.2439, allocations: 59.56 kB / 435.4 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004789/0.2444, allocations: 179.5 kB / 435.6 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004118/0.2448, allocations: 375.6 kB / 436 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001814/0.245, allocations: 75.59 kB / 436.1 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002901/0.2453, allocations: 171.4 kB / 436.2 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002478/0.2455, allocations: 175.4 kB / 436.4 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.9e-05/0.2456, allocations: 36 kB / 436.4 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.301e-05/0.2456, allocations: 32 kB / 436.5 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001194/0.2457, allocations: 99.72 kB / 436.6 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001314/0.2459, allocations: 123.4 kB / 436.7 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004142/0.2463, allocations: 333.5 kB / 437 MB, free: 2.023 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2463, allocations: 4 kB / 437 MB, free: 2.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2463, allocations: 0 / 437 MB, free: 2.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.2463, allocations: 0 / 437 MB, free: 2.02 MB / 334.1 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.001363/0.2477, allocations: 0.5483 MB / 437.6 MB, free: 1.441 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.2477, allocations: 8.031 kB / 437.6 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.674e-05/0.2478, allocations: 36.75 kB / 437.6 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004756/0.2483, allocations: 208.2 kB / 437.8 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003668/0.2486, allocations: 351.9 kB / 438.1 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.971e-05/0.2487, allocations: 32.33 kB / 438.2 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001267/0.25, allocations: 0.5541 MB / 438.7 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.079e-05/0.25, allocations: 8 kB / 438.7 MB, free: 144 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.836e-05/0.25, allocations: 11.94 kB / 438.7 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.25, allocations: 8 kB / 438.8 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001488/0.2515, allocations: 0.5082 MB / 439.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001536/0.2531, allocations: 0.8482 MB / 440.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001518/0.2546, allocations: 462.6 kB / 440.6 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006637/0.2552, allocations: 243.3 kB / 440.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.114e-05/0.2553, allocations: 12 kB / 440.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.693e-05/0.2553, allocations: 38.56 kB / 440.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 5.21e-06/0.2554, allocations: 3.984 kB / 440.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.04274/0.2981, allocations: 5.748 MB / 446.6 MB, free: 8.152 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001269/0.2982, allocations: 149.3 kB / 446.8 MB, free: 7.977 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002613/0.2985, allocations: 211.1 kB / 447 MB, free: 7.762 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.163e-05/0.2986, allocations: 45.64 kB / 447 MB, free: 7.711 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.798e-05/0.2987, allocations: 133.8 kB / 447.1 MB, free: 7.574 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002288/0.2989, allocations: 210.3 kB / 447.3 MB, free: 7.367 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003213/0.2992, allocations: 110.7 kB / 447.4 MB, free: 7.254 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.2994, allocations: 346.8 kB / 447.8 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001647/0.301, allocations: 0.6149 MB / 448.4 MB, free: 6.289 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001799/0.3028, allocations: 0.8043 MB / 449.2 MB, free: 5.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003146/0.306, allocations: 1.264 MB / 450.5 MB, free: 4.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.306, allocations: 0 / 450.5 MB, free: 4.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003713/0.3097, allocations: 1.403 MB / 451.9 MB, free: 2.656 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.3097, allocations: 12.03 kB / 451.9 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.3097, allocations: 4 kB / 451.9 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.572e-05/0.3098, allocations: 12 kB / 451.9 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001427/0.3112, allocations: 211.6 kB / 452.1 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.767e-05/0.3112, allocations: 11.94 kB / 452.1 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009884/0.3122, allocations: 115.8 kB / 452.2 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.021e-05/0.3123, allocations: 27.94 kB / 452.3 MB, free: 2.27 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (84): * Single equations (assignments): 84 * 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.0003241/0.3126, allocations: 177.7 kB / 452.4 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003247/0.3129, allocations: 153.4 kB / 452.6 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001635/0.3131, allocations: 59.31 kB / 452.6 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.637e-06/0.3131, allocations: 8 kB / 452.6 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.3131, allocations: 7.938 kB / 452.7 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.355e-06/0.3131, allocations: 3.984 kB / 452.7 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00492/0.318, allocations: 1.914 MB / 454.6 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.2e-05/0.3181, allocations: 8 kB / 454.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007962/0.3189, allocations: 179.7 kB / 454.8 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.654e-05/0.3189, allocations: 16.19 kB / 454.8 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.222e-05/0.3189, allocations: 39.86 kB / 454.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.725e-05/0.3189, allocations: 19.88 kB / 454.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-05/0.319, allocations: 15.94 kB / 454.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003444/0.3224, allocations: 1.577 MB / 456.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002142/0.3226, allocations: 83.73 kB / 456.5 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.148e-05/0.3227, allocations: 27.94 kB / 456.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006274/0.3233, allocations: 87.97 kB / 456.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002028/0.3235, allocations: 95.64 kB / 456.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.684e-05/0.3236, allocations: 28 kB / 456.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001484/0.3237, allocations: 156.2 kB / 456.9 MB, free: 13.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3237, allocations: 0 / 456.9 MB, free: 13.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000699/0.3244, allocations: 124 kB / 457 MB, free: 13.18 MB / 366.1 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.0001753/0.3246, allocations: 135.2 kB / 457.1 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00287/0.3275, allocations: 1.046 MB / 458.2 MB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.319e-06/0.3275, allocations: 0 / 458.2 MB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001056/0.3285, allocations: 346.1 kB / 458.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008837/0.3294, allocations: 128.8 kB / 458.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002567/0.332, allocations: 1.173 MB / 459.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002362/0.3322, allocations: 207.8 kB / 460 MB, free: 9.977 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004805/0.3327, allocations: 91.31 kB / 460.1 MB, free: 9.883 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003136/0.333, allocations: 43.42 kB / 460.2 MB, free: 9.844 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.333, allocations: 4 kB / 460.2 MB, free: 9.84 MB / 366.1 MB Notification: Performance of Templates: time 0.01545/0.3485, allocations: 9.329 MB / 469.5 MB, free: 0.582 MB / 366.1 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=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.791800435996265]