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.002095/0.002095, allocations: 107.1 kB / 20.44 MB, free: 1.328 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.001902/0.001902, allocations: 205.3 kB / 23.72 MB, free: 4.5 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.454/1.454, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.001561/0.001561, allocations: 51.92 kB / 378.2 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3139/0.3154, allocations: 53.37 MB / 431.6 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.005055/0.3205, allocations: 2.238 MB / 433.8 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001862/0.3224, allocations: 0.7639 MB / 434.6 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002378/0.3226, allocations: 7.938 kB / 434.6 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003312/0.3229, allocations: 51.58 kB / 434.6 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002515/0.3232, allocations: 63.55 kB / 434.7 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005673/0.3237, allocations: 179.6 kB / 434.9 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000488/0.3242, allocations: 375.5 kB / 435.2 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002105/0.3244, allocations: 67.59 kB / 435.3 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003393/0.3248, allocations: 167.5 kB / 435.5 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002541/0.325, allocations: 163.2 kB / 435.6 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.095e-05/0.3251, allocations: 32 kB / 435.7 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.053e-05/0.3252, allocations: 39.94 kB / 435.7 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001221/0.3253, allocations: 99.7 kB / 435.8 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001372/0.3254, allocations: 119.4 kB / 435.9 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004252/0.3258, allocations: 341 kB / 436.2 MB, free: 2.012 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3258, allocations: 0 / 436.2 MB, free: 2.012 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3258, allocations: 0 / 436.2 MB, free: 2.012 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.3259, allocations: 0 / 436.2 MB, free: 2.012 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.001315/0.3272, allocations: 0.5444 MB / 436.8 MB, free: 1.438 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.3272, allocations: 12.03 kB / 436.8 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.12e-05/0.3273, allocations: 36.75 kB / 436.8 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000482/0.3278, allocations: 210.5 kB / 437 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003428/0.3281, allocations: 347.9 kB / 437.4 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.505e-05/0.3282, allocations: 32.33 kB / 437.4 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001267/0.3295, allocations: 0.5505 MB / 438 MB, free: 144 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.3295, allocations: 0 / 438 MB, free: 144 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.72e-05/0.3295, allocations: 16 kB / 438 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.485e-05/0.3295, allocations: 8 kB / 438 MB, free: 120 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0015/0.331, allocations: 0.516 MB / 438.5 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001559/0.3326, allocations: 0.8443 MB / 439.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001595/0.3342, allocations: 466.5 kB / 439.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007004/0.3349, allocations: 239.4 kB / 440 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.703e-05/0.3349, allocations: 8 kB / 440 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.533e-05/0.335, allocations: 46.5 kB / 440.1 MB, free: 13.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.215e-06/0.335, allocations: 0 / 440.1 MB, free: 13.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.03899/0.374, allocations: 5.752 MB / 445.8 MB, free: 8.145 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.3741, allocations: 148.9 kB / 446 MB, free: 7.969 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002696/0.3744, allocations: 207.1 kB / 446.2 MB, free: 7.758 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.28e-05/0.3744, allocations: 33.7 kB / 446.2 MB, free: 7.719 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000126/0.3746, allocations: 146.1 kB / 446.4 MB, free: 7.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002307/0.3748, allocations: 202.3 kB / 446.6 MB, free: 7.371 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003393/0.3751, allocations: 110.7 kB / 446.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.3753, allocations: 346.8 kB / 447 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001722/0.3771, allocations: 0.6226 MB / 447.6 MB, free: 6.285 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001885/0.3789, allocations: 0.8042 MB / 448.4 MB, free: 5.402 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003439/0.3824, allocations: 1.264 MB / 449.7 MB, free: 4.062 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/0.3824, allocations: 8 kB / 449.7 MB, free: 4.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003724/0.3861, allocations: 1.411 MB / 451.1 MB, free: 2.633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.644e-05/0.3861, allocations: 8 kB / 451.1 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.3862, allocations: 4 kB / 451.1 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.714e-05/0.3862, allocations: 8 kB / 451.1 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001324/0.3875, allocations: 211.8 kB / 451.3 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.528e-05/0.3875, allocations: 15.88 kB / 451.4 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009819/0.3885, allocations: 103.8 kB / 451.5 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.208e-05/0.3886, allocations: 28 kB / 451.5 MB, free: 2.262 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.0003611/0.389, allocations: 181.6 kB / 451.7 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003189/0.3893, allocations: 149.4 kB / 451.8 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001746/0.3894, allocations: 63.3 kB / 451.9 MB, free: 1.863 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.26e-05/0.3895, allocations: 8 kB / 451.9 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/0.3895, allocations: 3.938 kB / 451.9 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.3895, allocations: 7.984 kB / 451.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005141/0.3946, allocations: 1.91 MB / 453.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/0.3946, allocations: 12 kB / 453.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007594/0.3954, allocations: 183.9 kB / 454 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.731e-05/0.3954, allocations: 15.94 kB / 454 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.794e-05/0.3955, allocations: 27.94 kB / 454 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.74e-05/0.3955, allocations: 19.94 kB / 454.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.809e-05/0.3955, allocations: 19.92 kB / 454.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003601/0.3991, allocations: 1.581 MB / 455.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002092/0.3993, allocations: 83.75 kB / 455.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.614e-05/0.3994, allocations: 31.92 kB / 455.8 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005983/0.4, allocations: 71.92 kB / 455.8 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002093/0.4002, allocations: 99.64 kB / 455.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.515e-05/0.4003, allocations: 39.92 kB / 456 MB, free: 13.44 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001532/0.4004, allocations: 156.3 kB / 456.1 MB, free: 13.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4004, allocations: 0 / 456.1 MB, free: 13.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006784/0.4011, allocations: 124 kB / 456.2 MB, free: 13.17 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.0001884/0.4013, allocations: 131 kB / 456.4 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002915/0.4042, allocations: 1.045 MB / 457.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.4042, allocations: 0 / 457.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001055/0.4053, allocations: 339.2 kB / 457.7 MB, free: 11.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008949/0.4061, allocations: 128.5 kB / 457.9 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002503/0.4087, allocations: 1.177 MB / 459.1 MB, free: 10.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002388/0.4089, allocations: 207.3 kB / 459.3 MB, free: 9.965 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004771/0.4094, allocations: 95.3 kB / 459.3 MB, free: 9.867 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002835/0.4097, allocations: 43.44 kB / 459.4 MB, free: 9.828 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4097, allocations: 3.938 kB / 459.4 MB, free: 9.824 MB / 366.1 MB Notification: Performance of Templates: time 0.01526/0.4249, allocations: 9.14 MB / 468.5 MB, free: 0.7617 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins/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: 5.075980588793755]