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.002044/0.002044, allocations: 95.86 kB / 20.96 MB, free: 3.457 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.001816/0.001816, allocations: 149.1 kB / 24.26 MB, free: 164 kB / 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 1.478/1.478, allocations: 173.3 MB / 200.8 MB, free: 9.293 MB / 186.7 MB " [Timeout remaining time 178] 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 1.713e-06/1.713e-06, allocations: 0 / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.863e-05/3.035e-05, allocations: 2.312 kB / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004069/0.004099, allocations: 2.3 MB / 269.6 MB, free: 4.418 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00156/0.005659, allocations: 0.752 MB / 270.3 MB, free: 3.66 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.005787, allocations: 7.938 kB / 270.3 MB, free: 3.652 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002638/0.006051, allocations: 47.64 kB / 270.4 MB, free: 3.605 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002258/0.006277, allocations: 71.36 kB / 270.5 MB, free: 3.535 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004606/0.006737, allocations: 167.6 kB / 270.6 MB, free: 3.371 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004588/0.007196, allocations: 379.5 kB / 271 MB, free: 3 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001856/0.007382, allocations: 67.8 kB / 271.1 MB, free: 2.934 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003303/0.007712, allocations: 219.5 kB / 271.3 MB, free: 2.719 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002416/0.007954, allocations: 143.6 kB / 271.4 MB, free: 2.578 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.814e-05/0.008022, allocations: 39.94 kB / 271.5 MB, free: 2.539 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.079e-05/0.008093, allocations: 32 kB / 271.5 MB, free: 2.508 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001386/0.008231, allocations: 103.7 kB / 271.6 MB, free: 2.406 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001332/0.008364, allocations: 103.7 kB / 271.7 MB, free: 2.305 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004859/0.00885, allocations: 350.9 kB / 272 MB, free: 1.961 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.008854, allocations: 3.938 kB / 272 MB, free: 1.957 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.008855, allocations: 0 / 272 MB, free: 1.957 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.008862, allocations: 0 / 272 MB, free: 1.957 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.001393/0.01026, allocations: 0.6518 MB / 272.7 MB, free: 1.27 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.01029, allocations: 12.03 kB / 272.7 MB, free: 1.258 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001304/0.01042, allocations: 64.75 kB / 272.8 MB, free: 1.195 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000367/0.01079, allocations: 212.6 kB / 273 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003322/0.01112, allocations: 335.9 kB / 273.3 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.384e-05/0.01119, allocations: 32.38 kB / 273.3 MB, free: 0.5352 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001241/0.01243, allocations: 0.5387 MB / 273.9 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.93e-05/0.01245, allocations: 3.938 kB / 273.9 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.806e-05/0.01249, allocations: 12 kB / 273.9 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.01249, allocations: 4 kB / 273.9 MB, free: 15.94 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001437/0.01393, allocations: 459.6 kB / 274.3 MB, free: 15.49 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001646/0.01558, allocations: 0.9957 MB / 275.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001534/0.01711, allocations: 476.5 kB / 275.8 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006639/0.01778, allocations: 242.7 kB / 276 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.212e-05/0.01783, allocations: 11.94 kB / 276 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.675e-05/0.01786, allocations: 41.39 kB / 276.1 MB, free: 13.6 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.763e-06/0.01787, allocations: 0 / 276.1 MB, free: 13.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.01762/0.03548, allocations: 3.366 MB / 279.5 MB, free: 10.23 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001298/0.03561, allocations: 145 kB / 279.6 MB, free: 10.05 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003742/0.03599, allocations: 261.8 kB / 279.9 MB, free: 9.781 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.084e-05/0.03607, allocations: 45.7 kB / 279.9 MB, free: 9.73 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001405/0.03621, allocations: 192.5 kB / 280.1 MB, free: 9.535 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002329/0.03644, allocations: 206.3 kB / 280.3 MB, free: 9.332 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003045/0.03674, allocations: 116 kB / 280.4 MB, free: 9.211 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002842/0.03703, allocations: 0.5313 MB / 280.9 MB, free: 8.668 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001611/0.03864, allocations: 0.5596 MB / 281.5 MB, free: 8.109 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001724/0.04036, allocations: 0.6991 MB / 282.2 MB, free: 7.367 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003094/0.04346, allocations: 1.12 MB / 283.3 MB, free: 6.211 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.04346, allocations: 0 / 283.3 MB, free: 6.211 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0036/0.04706, allocations: 1.262 MB / 284.6 MB, free: 4.941 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.04708, allocations: 4 kB / 284.6 MB, free: 4.938 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.04709, allocations: 4 kB / 284.6 MB, free: 4.934 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.977e-05/0.04711, allocations: 4 kB / 284.6 MB, free: 4.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/0.04839, allocations: 168 kB / 284.7 MB, free: 4.766 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.26e-05/0.0484, allocations: 4 kB / 284.7 MB, free: 4.762 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009007/0.0493, allocations: 71.91 kB / 284.8 MB, free: 4.691 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.88e-05/0.04938, allocations: 16 kB / 284.8 MB, free: 4.676 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.0003394/0.04972, allocations: 216.4 kB / 285 MB, free: 4.453 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004006/0.05012, allocations: 169.4 kB / 285.2 MB, free: 4.281 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002067/0.05032, allocations: 63.3 kB / 285.3 MB, free: 4.219 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.237e-06/0.05033, allocations: 8 kB / 285.3 MB, free: 4.211 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.05034, allocations: 8 kB / 285.3 MB, free: 4.203 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/0.05035, allocations: 7.984 kB / 285.3 MB, free: 4.195 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005061/0.05541, allocations: 2.056 MB / 287.4 MB, free: 1.926 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.247e-05/0.05543, allocations: 8 kB / 287.4 MB, free: 1.918 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007299/0.05616, allocations: 167.7 kB / 287.5 MB, free: 1.754 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.785e-05/0.05618, allocations: 12 kB / 287.5 MB, free: 1.742 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.796e-05/0.05623, allocations: 28.72 kB / 287.6 MB, free: 1.715 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.982e-05/0.05625, allocations: 19.94 kB / 287.6 MB, free: 1.695 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.378e-05/0.05627, allocations: 19.94 kB / 287.6 MB, free: 1.676 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003393/0.05966, allocations: 1.669 MB / 289.3 MB, free: 15.79 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002355/0.05989, allocations: 91.62 kB / 289.4 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.115e-05/0.05998, allocations: 28 kB / 289.4 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005371/0.06051, allocations: 63.97 kB / 289.5 MB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000222/0.06074, allocations: 99.58 kB / 289.5 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.717e-05/0.06079, allocations: 35.98 kB / 289.6 MB, free: 15.48 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001616/0.06095, allocations: 180.2 kB / 289.8 MB, free: 15.3 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.06095, allocations: 0 / 289.8 MB, free: 15.3 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005986/0.06155, allocations: 112 kB / 289.9 MB, free: 15.2 MB / 282.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.0001969/0.06175, allocations: 138.9 kB / 290 MB, free: 15.05 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002765/0.06451, allocations: 0.9729 MB / 291 MB, free: 14.07 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.06452, allocations: 0 / 291 MB, free: 14.07 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001029/0.06555, allocations: 310.7 kB / 291.3 MB, free: 13.77 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008733/0.06642, allocations: 152.2 kB / 291.4 MB, free: 13.62 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002593/0.06901, allocations: 1.233 MB / 292.7 MB, free: 12.18 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002485/0.06926, allocations: 203.3 kB / 292.9 MB, free: 11.96 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004636/0.06973, allocations: 87.19 kB / 292.9 MB, free: 11.88 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002927/0.07002, allocations: 40.48 kB / 293 MB, free: 11.84 MB / 282.7 MB Notification: Performance of SimCode: time 1.112e-06/0.07002, allocations: 4 kB / 293 MB, free: 11.83 MB / 282.7 MB Notification: Performance of Templates: time 0.01623/0.08625, allocations: 8.717 MB / 301.7 MB, free: 3.18 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.816405619028956]