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.001052/0.001052, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.004369/0.004369, allocations: 163.1 kB / 24.7 MB, free: 8.891 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.848/0.848, allocations: 177.1 MB / 205 MB, free: 5.754 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 2.154e-06/2.154e-06, allocations: 0 / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.551e-05/2.766e-05, allocations: 2.281 kB / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.00339/0.003418, allocations: 2.264 MB / 328.1 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001386/0.004804, allocations: 0.7714 MB / 328.8 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001542/0.004958, allocations: 4 kB / 328.8 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003104/0.005268, allocations: 55.56 kB / 328.9 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002221/0.00549, allocations: 63.44 kB / 329 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004504/0.005941, allocations: 179.5 kB / 329.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004133/0.006354, allocations: 383.5 kB / 329.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001811/0.006535, allocations: 64.45 kB / 329.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000368/0.006903, allocations: 227.5 kB / 329.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002071/0.00711, allocations: 139.6 kB / 329.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.736e-05/0.007167, allocations: 36 kB / 330 MB, free: 11.26 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.21e-05/0.00721, allocations: 35.94 kB / 330 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.007317, allocations: 103.7 kB / 330.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.792e-05/0.007415, allocations: 103.7 kB / 330.2 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000377/0.007792, allocations: 350.9 kB / 330.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.007795, allocations: 0 / 330.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.007796, allocations: 0 / 330.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.007801, allocations: 0 / 330.5 MB, free: 10.68 MB / 298.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.001002/0.008803, allocations: 0.5553 MB / 331.1 MB, free: 10.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.008845, allocations: 8.031 kB / 331.1 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.757e-05/0.008923, allocations: 36.75 kB / 331.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003624/0.009285, allocations: 206.9 kB / 331.3 MB, free: 9.824 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002639/0.009549, allocations: 351.9 kB / 331.7 MB, free: 9.414 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.891e-05/0.009608, allocations: 36.27 kB / 331.7 MB, free: 9.379 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001016/0.01062, allocations: 0.5419 MB / 332.3 MB, free: 8.809 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/0.01065, allocations: 15.88 kB / 332.3 MB, free: 8.793 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.139e-05/0.01068, allocations: 8 kB / 332.3 MB, free: 8.785 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.01069, allocations: 8 kB / 332.3 MB, free: 8.777 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001108/0.01179, allocations: 0.5113 MB / 332.8 MB, free: 8.266 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001209/0.013, allocations: 0.8442 MB / 333.7 MB, free: 7.371 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.01414, allocations: 470.5 kB / 334.1 MB, free: 6.875 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005117/0.01465, allocations: 247.4 kB / 334.4 MB, free: 6.621 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.195e-05/0.01469, allocations: 15.98 kB / 334.4 MB, free: 6.605 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.541e-05/0.01472, allocations: 38.97 kB / 334.4 MB, free: 6.559 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 2.084e-06/0.01472, allocations: 0 / 334.4 MB, free: 6.559 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.01963/0.03435, allocations: 5.744 MB / 340.1 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.524e-05/0.03443, allocations: 149 kB / 340.3 MB, free: 0.625 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001604/0.03459, allocations: 199.2 kB / 340.5 MB, free: 432 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.431e-05/0.03465, allocations: 37.7 kB / 340.5 MB, free: 388 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.598e-05/0.03471, allocations: 141.8 kB / 340.7 MB, free: 244 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/0.03483, allocations: 194.3 kB / 340.9 MB, free: 48 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000189/0.03502, allocations: 98.3 kB / 341 MB, free: 15.95 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.807e-05/0.03511, allocations: 342.8 kB / 341.3 MB, free: 15.6 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008838/0.036, allocations: 0.5986 MB / 341.9 MB, free: 15 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009089/0.0369, allocations: 0.6937 MB / 342.6 MB, free: 14.28 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001681/0.03858, allocations: 1.118 MB / 343.7 MB, free: 13.13 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.03859, allocations: 0 / 343.7 MB, free: 13.13 MB / 314.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001917/0.04051, allocations: 1.298 MB / 345 MB, free: 11.83 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.04053, allocations: 8 kB / 345 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.04054, allocations: 4 kB / 345 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/0.04056, allocations: 4 kB / 345 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006253/0.04118, allocations: 179.7 kB / 345.2 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.04119, allocations: 4 kB / 345.2 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004099/0.0416, allocations: 91.89 kB / 345.3 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.468e-05/0.04165, allocations: 23.92 kB / 345.3 MB, free: 11.52 MB / 314.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.0002068/0.04185, allocations: 173.6 kB / 345.5 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002137/0.04207, allocations: 161.7 kB / 345.6 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.835e-05/0.04217, allocations: 59.31 kB / 345.7 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.04217, allocations: 8 kB / 345.7 MB, free: 11.11 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.04218, allocations: 0 / 345.7 MB, free: 11.11 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.04219, allocations: 3.984 kB / 345.7 MB, free: 11.11 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003036/0.04522, allocations: 1.93 MB / 347.6 MB, free: 9.012 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.12e-05/0.04524, allocations: 12 kB / 347.6 MB, free: 9 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003711/0.04561, allocations: 179.7 kB / 347.8 MB, free: 8.824 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.287e-06/0.04562, allocations: 12 kB / 347.8 MB, free: 8.812 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.216e-05/0.04565, allocations: 27.98 kB / 347.9 MB, free: 8.785 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.738e-06/0.04566, allocations: 15.94 kB / 347.9 MB, free: 8.77 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.483e-06/0.04566, allocations: 15.94 kB / 347.9 MB, free: 8.754 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001873/0.04754, allocations: 1.562 MB / 349.4 MB, free: 7.039 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001377/0.04768, allocations: 87.69 kB / 349.5 MB, free: 6.953 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.373e-05/0.04772, allocations: 28.23 kB / 349.6 MB, free: 6.926 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002997/0.04802, allocations: 79.97 kB / 349.6 MB, free: 6.848 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001672/0.04819, allocations: 103.6 kB / 349.7 MB, free: 6.746 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.122e-05/0.04822, allocations: 35.98 kB / 349.8 MB, free: 6.711 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.512e-05/0.04831, allocations: 144.3 kB / 349.9 MB, free: 6.57 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04831, allocations: 4 kB / 349.9 MB, free: 6.566 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003924/0.0487, allocations: 112 kB / 350 MB, free: 6.457 MB / 314.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.0001496/0.04885, allocations: 142.9 kB / 350.2 MB, free: 6.309 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00157/0.05042, allocations: 0.9947 MB / 351.2 MB, free: 5.309 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.05043, allocations: 0 / 351.2 MB, free: 5.309 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006067/0.05104, allocations: 342.3 kB / 351.5 MB, free: 4.977 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005907/0.05163, allocations: 132.5 kB / 351.6 MB, free: 4.848 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001612/0.05324, allocations: 1.145 MB / 352.8 MB, free: 3.531 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001584/0.0534, allocations: 215.2 kB / 353 MB, free: 3.297 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002234/0.05362, allocations: 44.48 kB / 353 MB, free: 3.254 MB / 314.7 MB Notification: Performance of SimCode: time 1.112e-06/0.05362, allocations: 0 / 353 MB, free: 3.254 MB / 314.7 MB Notification: Performance of Templates: time 0.006689/0.06031, allocations: 7.154 MB / 360.2 MB, free: 12.11 MB / 330.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=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: 4.64740314334631]