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.001551/0.001551, allocations: 79.23 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001631/0.001631, allocations: 145.1 kB / 23.93 MB, free: 4.168 MB / 14.72 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.395/1.395, allocations: 173.3 MB / 200.4 MB, free: 12.89 MB / 190.1 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.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.533e-06/1.533e-06, allocations: 0 / 318.9 MB, free: 3.57 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.402e-05/2.555e-05, allocations: 6.219 kB / 318.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003324/0.00335, allocations: 2.255 MB / 321.2 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001463/0.004813, allocations: 0.766 MB / 321.9 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001691/0.004983, allocations: 9.094 kB / 321.9 MB, free: 1.535 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000347/0.00533, allocations: 52.83 kB / 322 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000227/0.005557, allocations: 69.69 kB / 322 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004815/0.006038, allocations: 174.7 kB / 322.2 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004341/0.006472, allocations: 392 kB / 322.6 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001901/0.006662, allocations: 74 kB / 322.7 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003128/0.006975, allocations: 228.2 kB / 322.9 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002727/0.007248, allocations: 141.2 kB / 323 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.511e-05/0.007313, allocations: 42.81 kB / 323.1 MB, free: 1 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.058e-05/0.007373, allocations: 35.31 kB / 323.1 MB, free: 1 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001221/0.007495, allocations: 102.1 kB / 323.2 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001182/0.007614, allocations: 104.3 kB / 323.3 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000461/0.008075, allocations: 362.3 kB / 323.7 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.008079, allocations: 3.938 kB / 323.7 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.008081, allocations: 0 / 323.7 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.008088, allocations: 3.938 kB / 323.7 MB, free: 0.7344 MB / 286.1 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.00128/0.009368, allocations: 0.5547 MB / 324.2 MB, free: 340 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.009408, allocations: 6.875 kB / 324.2 MB, free: 340 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001032/0.009511, allocations: 43.45 kB / 324.3 MB, free: 320 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003896/0.009901, allocations: 221.5 kB / 324.5 MB, free: 132 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003342/0.01023, allocations: 349.4 kB / 324.8 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.716e-05/0.0103, allocations: 26.25 kB / 324.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.01169, allocations: 0.5671 MB / 325.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.317e-05/0.01172, allocations: 6.156 kB / 325.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.237e-05/0.01176, allocations: 14.81 kB / 325.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.01177, allocations: 10.28 kB / 325.5 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001651/0.01342, allocations: 0.5182 MB / 326 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001612/0.01504, allocations: 0.8401 MB / 326.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001624/0.01666, allocations: 471.1 kB / 327.3 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007533/0.01741, allocations: 242.1 kB / 327.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.895e-05/0.01746, allocations: 6.516 kB / 327.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.285e-05/0.01752, allocations: 47.45 kB / 327.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 2.164e-06/0.01752, allocations: 0 / 327.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.04251/0.06003, allocations: 5.736 MB / 333.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001337/0.06016, allocations: 151.3 kB / 333.5 MB, free: 11.85 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002718/0.06044, allocations: 216.9 kB / 333.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.369e-05/0.06053, allocations: 36.61 kB / 333.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.06064, allocations: 147.6 kB / 333.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002101/0.06085, allocations: 192.5 kB / 334 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002938/0.06114, allocations: 97.84 kB / 334.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.0613, allocations: 341.8 kB / 334.5 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001796/0.0631, allocations: 0.6066 MB / 335.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001834/0.06493, allocations: 0.6933 MB / 335.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003309/0.06824, allocations: 1.112 MB / 336.9 MB, free: 9.355 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/0.06825, allocations: 7.938 kB / 336.9 MB, free: 9.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.003797/0.07205, allocations: 1.302 MB / 338.2 MB, free: 8.039 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/0.07207, allocations: 4 kB / 338.2 MB, free: 8.035 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/0.07209, allocations: 4 kB / 338.2 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.53e-05/0.07211, allocations: 4 kB / 338.2 MB, free: 8.027 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001351/0.07346, allocations: 171.8 kB / 338.4 MB, free: 7.859 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.468e-05/0.07348, allocations: 11.94 kB / 338.4 MB, free: 7.848 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009748/0.07445, allocations: 87.88 kB / 338.5 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.688e-05/0.07454, allocations: 20 kB / 338.5 MB, free: 7.742 MB / 302.1 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.0003997/0.07494, allocations: 173.6 kB / 338.6 MB, free: 7.562 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003393/0.07528, allocations: 153.4 kB / 338.8 MB, free: 7.406 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001693/0.07545, allocations: 63.3 kB / 338.9 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.789e-06/0.07546, allocations: 12 kB / 338.9 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.551e-05/0.07547, allocations: 4 kB / 338.9 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.809e-06/0.07548, allocations: 3.984 kB / 338.9 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005292/0.08077, allocations: 1.914 MB / 340.8 MB, free: 5.246 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.749e-05/0.08079, allocations: 8 kB / 340.8 MB, free: 5.238 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008059/0.0816, allocations: 184.4 kB / 341 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-05/0.08161, allocations: 20 kB / 341 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.021e-05/0.08167, allocations: 28.17 kB / 341 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.799e-05/0.08169, allocations: 19.92 kB / 341 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.762e-05/0.08171, allocations: 19.94 kB / 341.1 MB, free: 4.973 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003699/0.08541, allocations: 1.562 MB / 342.6 MB, free: 3.258 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002289/0.08564, allocations: 83.69 kB / 342.7 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.107e-05/0.08572, allocations: 39.98 kB / 342.7 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006133/0.08633, allocations: 71.92 kB / 342.8 MB, free: 3.066 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002148/0.08655, allocations: 99.62 kB / 342.9 MB, free: 2.965 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.074e-05/0.08661, allocations: 39.88 kB / 343 MB, free: 2.926 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001562/0.08676, allocations: 149.1 kB / 343.1 MB, free: 2.781 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.08676, allocations: 0 / 343.1 MB, free: 2.781 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006869/0.08745, allocations: 116 kB / 343.2 MB, free: 2.668 MB / 302.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.0002189/0.08767, allocations: 139 kB / 343.4 MB, free: 2.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002999/0.09067, allocations: 0.9946 MB / 344.3 MB, free: 1.527 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.09068, allocations: 448 / 344.3 MB, free: 1.527 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001116/0.09179, allocations: 345.8 kB / 344.7 MB, free: 1.191 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009482/0.09274, allocations: 127.9 kB / 344.8 MB, free: 1.066 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002581/0.09532, allocations: 1.121 MB / 345.9 MB, free: 15.78 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002615/0.09558, allocations: 211.3 kB / 346.1 MB, free: 15.55 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004574/0.09604, allocations: 87.19 kB / 346.2 MB, free: 15.47 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002981/0.09634, allocations: 36.5 kB / 346.3 MB, free: 15.43 MB / 318.1 MB Notification: Performance of SimCode: time 7.51e-07/0.09634, allocations: 0 / 346.3 MB, free: 15.43 MB / 318.1 MB Notification: Performance of Templates: time 0.01508/0.1114, allocations: 8.708 MB / 355 MB, free: 6.793 MB / 318.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.545686524361372]