Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001324/0.001324, allocations: 85.17 kB / 21.5 MB, free: 2.988 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.00147/0.00147, allocations: 143.3 kB / 24.89 MB, free: 9.211 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.9277/0.9277, allocations: 173.3 MB / 201.5 MB, free: 9.215 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.SubClocked,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.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,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.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.874e-06/1.874e-06, allocations: 0 / 268.4 MB, free: 6.246 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.71e-05/2.898e-05, allocations: 2.312 kB / 268.4 MB, free: 6.242 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.00457/0.004599, allocations: 2.341 MB / 270.8 MB, free: 3.879 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001627/0.006226, allocations: 0.8217 MB / 271.6 MB, free: 3.051 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001551/0.006381, allocations: 7.938 kB / 271.6 MB, free: 3.043 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003131/0.006694, allocations: 51.58 kB / 271.7 MB, free: 2.992 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002313/0.006925, allocations: 55.5 kB / 271.7 MB, free: 2.938 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005119/0.007437, allocations: 183.4 kB / 271.9 MB, free: 2.758 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004808/0.007918, allocations: 395.5 kB / 272.3 MB, free: 2.371 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.008116, allocations: 74.95 kB / 272.3 MB, free: 2.297 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003551/0.008471, allocations: 219.5 kB / 272.6 MB, free: 2.082 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002475/0.008718, allocations: 147.6 kB / 272.7 MB, free: 1.938 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.416e-05/0.008792, allocations: 39.94 kB / 272.7 MB, free: 1.898 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.937e-05/0.008852, allocations: 36 kB / 272.8 MB, free: 1.863 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001237/0.008975, allocations: 95.7 kB / 272.9 MB, free: 1.77 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001354/0.009111, allocations: 111.7 kB / 273 MB, free: 1.66 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003901/0.009501, allocations: 259 kB / 273.2 MB, free: 1.406 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.009504, allocations: 0 / 273.2 MB, free: 1.406 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.009505, allocations: 0 / 273.2 MB, free: 1.406 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.00951, allocations: 0 / 273.2 MB, free: 1.406 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001013/0.01052, allocations: 0.5196 MB / 273.8 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.01056, allocations: 8.031 kB / 273.8 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.27e-05/0.01063, allocations: 60.89 kB / 273.8 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002237/0.01085, allocations: 189.7 kB / 274 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001728/0.01102, allocations: 347.9 kB / 274.3 MB, free: 184 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.071e-05/0.01106, allocations: 28.38 kB / 274.4 MB, free: 156 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004781/0.01154, allocations: 420.4 kB / 274.8 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.01156, allocations: 8.125 kB / 274.8 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.1e-05/0.01158, allocations: 12.12 kB / 274.8 MB, free: 15.69 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.01158, allocations: 12 kB / 274.8 MB, free: 15.68 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000254/0.01184, allocations: 185.5 kB / 275 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006904/0.01253, allocations: 0.6353 MB / 275.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004222/0.01295, allocations: 322.7 kB / 276 MB, free: 14.47 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/0.01307, allocations: 111.5 kB / 276.1 MB, free: 14.35 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.546e-05/0.0131, allocations: 8 kB / 276.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.225e-05/0.01312, allocations: 46.5 kB / 276.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.344e-06/0.01313, allocations: 0 / 276.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.005564/0.01869, allocations: 2.239 MB / 278.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.174e-05/0.01878, allocations: 156.9 kB / 278.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001189/0.0189, allocations: 179.3 kB / 278.7 MB, free: 11.66 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.478e-05/0.01899, allocations: 37.7 kB / 278.7 MB, free: 11.62 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.96e-05/0.01905, allocations: 145.7 kB / 278.9 MB, free: 11.47 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001206/0.01917, allocations: 194.3 kB / 279 MB, free: 11.28 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001576/0.01932, allocations: 98.25 kB / 279.1 MB, free: 11.18 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.584e-05/0.0194, allocations: 342.8 kB / 279.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002377/0.01964, allocations: 204.1 kB / 279.7 MB, free: 10.63 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002594/0.0199, allocations: 286.7 kB / 280 MB, free: 10.33 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004798/0.02038, allocations: 499 kB / 280.4 MB, free: 9.809 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.02038, allocations: 7.938 kB / 280.5 MB, free: 9.801 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0005863/0.02097, allocations: 0.5324 MB / 281 MB, free: 9.262 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.02098, allocations: 8 kB / 281 MB, free: 9.254 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.02099, allocations: 0 / 281 MB, free: 9.254 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.021, allocations: 4 kB / 281 MB, free: 9.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005025/0.0215, allocations: 168 kB / 281.2 MB, free: 9.086 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.02151, allocations: 11.94 kB / 281.2 MB, free: 9.074 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003053/0.02181, allocations: 71.91 kB / 281.2 MB, free: 9.004 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.418e-05/0.02185, allocations: 12 kB / 281.3 MB, free: 8.992 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.0001616/0.02201, allocations: 148.5 kB / 281.4 MB, free: 8.836 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001597/0.02217, allocations: 125.5 kB / 281.5 MB, free: 8.707 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.185e-05/0.02224, allocations: 67.25 kB / 281.6 MB, free: 8.637 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.02225, allocations: 8 kB / 281.6 MB, free: 8.629 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.02225, allocations: 0 / 281.6 MB, free: 8.629 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.02226, allocations: 7.984 kB / 281.6 MB, free: 8.621 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001459/0.02371, allocations: 1.18 MB / 282.8 MB, free: 7.289 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.02372, allocations: 8.969 kB / 282.8 MB, free: 7.281 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003232/0.02405, allocations: 175.7 kB / 283 MB, free: 7.109 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.036e-05/0.02406, allocations: 19.98 kB / 283 MB, free: 7.09 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.647e-05/0.02408, allocations: 20 kB / 283 MB, free: 7.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.867e-06/0.02409, allocations: 19.94 kB / 283 MB, free: 7.051 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.403e-06/0.0241, allocations: 15.94 kB / 283 MB, free: 7.035 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007817/0.02488, allocations: 0.8474 MB / 283.9 MB, free: 6.035 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.226e-05/0.02497, allocations: 51.72 kB / 283.9 MB, free: 5.984 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.835e-05/0.02501, allocations: 27.98 kB / 284 MB, free: 5.957 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002334/0.02524, allocations: 59.95 kB / 284 MB, free: 5.898 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.02535, allocations: 91.58 kB / 284.1 MB, free: 5.809 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.358e-05/0.02537, allocations: 27.98 kB / 284.1 MB, free: 5.781 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.924e-05/0.02541, allocations: 54.7 kB / 284.2 MB, free: 5.727 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02541, allocations: 4.031 kB / 284.2 MB, free: 5.723 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003422/0.02575, allocations: 116 kB / 284.3 MB, free: 5.609 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.0001089/0.02586, allocations: 112.2 kB / 284.4 MB, free: 5.492 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004967/0.02636, allocations: 461.5 kB / 284.9 MB, free: 5.031 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/0.02637, allocations: 12.06 kB / 284.9 MB, free: 5.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000161/0.02653, allocations: 155.1 kB / 285 MB, free: 4.867 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004689/0.027, allocations: 143.3 kB / 285.2 MB, free: 4.73 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.02813, allocations: 1.012 MB / 286.2 MB, free: 3.551 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.651e-05/0.02821, allocations: 126.8 kB / 286.3 MB, free: 3.41 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002373/0.02845, allocations: 79.2 kB / 286.4 MB, free: 3.332 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002752/0.02873, allocations: 115.3 kB / 286.5 MB, free: 3.219 MB / 266.7 MB Notification: Performance of SimCode: time 8.11e-07/0.02873, allocations: 0 / 286.5 MB, free: 3.219 MB / 266.7 MB Notification: Performance of Templates: time 0.009418/0.03814, allocations: 9.344 MB / 295.8 MB, free: 9.926 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.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: 2.820540238171816]