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.001454/0.001454, allocations: 80.31 kB / 22.21 MB, free: 2.281 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.001449/0.001449, allocations: 167.1 kB / 25.61 MB, free: 8.586 MB / 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.9633/0.9633, allocations: 177.1 MB / 206 MB, free: 4.461 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 1.513e-06/1.513e-06, allocations: 0 / 274.2 MB, free: 4.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.354e-05/2.506e-05, allocations: 2.312 kB / 274.2 MB, free: 4.449 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003001/0.003026, allocations: 2.31 MB / 276.5 MB, free: 2.137 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001275/0.004301, allocations: 0.7973 MB / 277.3 MB, free: 1.336 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001684/0.00447, allocations: 5.75 kB / 277.3 MB, free: 1.332 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002888/0.004758, allocations: 51.56 kB / 277.3 MB, free: 1.281 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001831/0.004941, allocations: 63.44 kB / 277.4 MB, free: 1.219 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004208/0.005362, allocations: 169.5 kB / 277.5 MB, free: 1.055 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003541/0.005716, allocations: 383.4 kB / 277.9 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001632/0.00588, allocations: 71.84 kB / 278 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003193/0.006199, allocations: 219.6 kB / 278.2 MB, free: 404 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001748/0.006374, allocations: 143.6 kB / 278.3 MB, free: 260 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.105e-05/0.006415, allocations: 32 kB / 278.4 MB, free: 228 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.147e-05/0.006446, allocations: 39.94 kB / 278.4 MB, free: 188 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.66e-05/0.006533, allocations: 103.6 kB / 278.5 MB, free: 84 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.796e-05/0.006621, allocations: 95.83 kB / 278.6 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002619/0.006883, allocations: 259 kB / 278.9 MB, free: 15.73 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.006885, allocations: 0 / 278.9 MB, free: 15.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.006887, allocations: 0 / 278.9 MB, free: 15.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.006892, allocations: 4 kB / 278.9 MB, free: 15.73 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.0008026/0.007694, allocations: 0.6326 MB / 279.5 MB, free: 15.06 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.007736, allocations: 12.03 kB / 279.5 MB, free: 15.05 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002634/0.007999, allocations: 72.75 kB / 279.6 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002458/0.008245, allocations: 204.6 kB / 279.8 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001996/0.008444, allocations: 343.9 kB / 280.1 MB, free: 14.35 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.286e-05/0.008487, allocations: 24.38 kB / 280.1 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005251/0.009012, allocations: 427.9 kB / 280.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.009031, allocations: 11.92 kB / 280.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.408e-05/0.009055, allocations: 11.94 kB / 280.6 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.009063, allocations: 8 kB / 280.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002914/0.009355, allocations: 192.5 kB / 280.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008507/0.01021, allocations: 0.906 MB / 281.7 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005055/0.01071, allocations: 316.8 kB / 282 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001332/0.01084, allocations: 126.8 kB / 282.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.862e-05/0.01088, allocations: 11.94 kB / 282.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.01091, allocations: 45.33 kB / 282.2 MB, free: 12.13 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.793e-06/0.01091, allocations: 0 / 282.2 MB, free: 12.13 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006452/0.01737, allocations: 2.396 MB / 284.6 MB, free: 9.73 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.205e-05/0.01745, allocations: 149.4 kB / 284.7 MB, free: 9.555 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001571/0.01761, allocations: 237.8 kB / 284.9 MB, free: 9.305 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.079e-05/0.01767, allocations: 33.7 kB / 285 MB, free: 9.266 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.971e-05/0.01776, allocations: 192.5 kB / 285.2 MB, free: 9.07 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001416/0.0179, allocations: 198.3 kB / 285.4 MB, free: 8.875 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001857/0.01808, allocations: 95.92 kB / 285.5 MB, free: 8.773 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.01825, allocations: 0.5195 MB / 286 MB, free: 8.242 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002959/0.01855, allocations: 253.2 kB / 286.2 MB, free: 7.996 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005119/0.01906, allocations: 364 kB / 286.6 MB, free: 7.602 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005735/0.01963, allocations: 0.5419 MB / 287.1 MB, free: 7.02 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.01963, allocations: 0 / 287.1 MB, free: 7.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008356/0.02047, allocations: 0.6615 MB / 287.8 MB, free: 6.352 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.02049, allocations: 8 kB / 287.8 MB, free: 6.344 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.0205, allocations: 0 / 287.8 MB, free: 6.344 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.02051, allocations: 4 kB / 287.8 MB, free: 6.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000595/0.02111, allocations: 163.7 kB / 288 MB, free: 6.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.02111, allocations: 4 kB / 288 MB, free: 6.176 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003642/0.02148, allocations: 71.91 kB / 288 MB, free: 6.105 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.537e-05/0.02152, allocations: 16 kB / 288 MB, free: 6.09 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.000198/0.02172, allocations: 200.3 kB / 288.2 MB, free: 5.883 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002171/0.02194, allocations: 145.4 kB / 288.4 MB, free: 5.734 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.58e-05/0.02203, allocations: 67.3 kB / 288.4 MB, free: 5.668 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.02204, allocations: 8 kB / 288.5 MB, free: 5.66 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.02205, allocations: 0 / 288.5 MB, free: 5.66 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.02205, allocations: 3.984 kB / 288.5 MB, free: 5.656 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001905/0.02396, allocations: 1.453 MB / 289.9 MB, free: 3.996 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/0.02396, allocations: 8 kB / 289.9 MB, free: 3.988 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003678/0.02433, allocations: 171.7 kB / 290.1 MB, free: 3.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.001e-05/0.02434, allocations: 16 kB / 290.1 MB, free: 3.805 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.211e-05/0.02437, allocations: 24 kB / 290.1 MB, free: 3.781 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.118e-05/0.02439, allocations: 23.92 kB / 290.2 MB, free: 3.758 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.097e-06/0.0244, allocations: 16.31 kB / 290.2 MB, free: 3.742 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008024/0.0252, allocations: 1.05 MB / 291.2 MB, free: 2.48 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001286/0.02533, allocations: 91.56 kB / 291.3 MB, free: 2.391 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.813e-05/0.02537, allocations: 31.98 kB / 291.3 MB, free: 2.359 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002514/0.02563, allocations: 59.98 kB / 291.4 MB, free: 2.301 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.02575, allocations: 87.62 kB / 291.5 MB, free: 2.215 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-05/0.02578, allocations: 32 kB / 291.5 MB, free: 2.184 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.179e-05/0.02585, allocations: 164.7 kB / 291.7 MB, free: 2.023 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02585, allocations: 0 / 291.7 MB, free: 2.023 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003859/0.02624, allocations: 116 kB / 291.8 MB, free: 1.91 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.0001423/0.02638, allocations: 139 kB / 291.9 MB, free: 1.766 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006137/0.02699, allocations: 0.5077 MB / 292.4 MB, free: 1.254 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.87e-06/0.027, allocations: 0 / 292.4 MB, free: 1.254 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002002/0.0272, allocations: 158 kB / 292.6 MB, free: 1.098 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006014/0.0278, allocations: 143.7 kB / 292.7 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001661/0.02946, allocations: 1.123 MB / 293.8 MB, free: 15.62 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.936e-05/0.02956, allocations: 126.7 kB / 294 MB, free: 15.48 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002642/0.02983, allocations: 79.2 kB / 294 MB, free: 15.4 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003036/0.03013, allocations: 138.2 kB / 294.2 MB, free: 15.27 MB / 282.7 MB Notification: Performance of SimCode: time 1.021e-06/0.03013, allocations: 0 / 294.2 MB, free: 15.27 MB / 282.7 MB Notification: Performance of Templates: time 0.01129/0.04142, allocations: 9.586 MB / 303.8 MB, free: 5.754 MB / 282.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.0369204017333686]