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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 112.3 kB / 17.74 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001896/0.001896, allocations: 187 kB / 18.67 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 51.92 kB / 352 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3236/0.3248, allocations: 49.42 MB / 401.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004743/0.3296, allocations: 2.356 MB / 403.7 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001814/0.3314, allocations: 0.8065 MB / 404.5 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000316/0.3318, allocations: 7.938 kB / 404.5 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000346/0.3322, allocations: 51.58 kB / 404.6 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002578/0.3325, allocations: 59.5 kB / 404.7 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006625/0.3331, allocations: 182.6 kB / 404.8 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004252/0.3336, allocations: 375.6 kB / 405.2 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000228/0.3338, allocations: 103.8 kB / 405.3 MB, free: 4.949 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002442/0.334, allocations: 163.4 kB / 405.5 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002422/0.3343, allocations: 179.3 kB / 405.6 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.663e-05/0.3344, allocations: 32 kB / 405.7 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.872e-05/0.3344, allocations: 36 kB / 405.7 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001163/0.3346, allocations: 95.73 kB / 405.8 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001971/0.3348, allocations: 147.2 kB / 405.9 MB, free: 4.309 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005384/0.3353, allocations: 343.9 kB / 406.3 MB, free: 3.977 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3353, allocations: 0 / 406.3 MB, free: 3.977 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3353, allocations: 0 / 406.3 MB, free: 3.977 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.3354, allocations: 0 / 406.3 MB, free: 3.977 MB / 318.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.001647/0.337, allocations: 0.6162 MB / 406.9 MB, free: 3.312 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.063e-05/0.3371, allocations: 11.89 kB / 406.9 MB, free: 3.301 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002156/0.3373, allocations: 40.56 kB / 406.9 MB, free: 3.262 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005703/0.3379, allocations: 284.2 kB / 407.2 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002898/0.3382, allocations: 138.3 kB / 407.4 MB, free: 2.793 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001158/0.3383, allocations: 28.38 kB / 407.4 MB, free: 2.766 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001587/0.3399, allocations: 0.5737 MB / 408 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.686e-05/0.34, allocations: 3.984 kB / 408 MB, free: 2.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.192e-05/0.34, allocations: 16 kB / 408 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.3401, allocations: 4 kB / 408 MB, free: 2.141 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002013/0.3421, allocations: 0.5145 MB / 408.5 MB, free: 1.629 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002481/0.3446, allocations: 0.9983 MB / 409.5 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002519/0.3471, allocations: 0.5062 MB / 410 MB, free: 8 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009943/0.3481, allocations: 259.4 kB / 410.2 MB, free: 15.74 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.21e-05/0.3482, allocations: 12.12 kB / 410.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.55e-05/0.3483, allocations: 42.5 kB / 410.3 MB, free: 15.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 3.697e-06/0.3483, allocations: 0 / 410.3 MB, free: 15.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.07063/0.4189, allocations: 5.721 MB / 416 MB, free: 9.945 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002259/0.4192, allocations: 156.9 kB / 416.2 MB, free: 9.762 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003857/0.4196, allocations: 200.2 kB / 416.4 MB, free: 9.551 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001669/0.4198, allocations: 37.7 kB / 416.4 MB, free: 9.508 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/0.42, allocations: 137.5 kB / 416.5 MB, free: 9.367 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003424/0.4203, allocations: 193.3 kB / 416.7 MB, free: 9.176 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005305/0.4209, allocations: 110.7 kB / 416.8 MB, free: 9.062 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002183/0.4211, allocations: 339.2 kB / 417.2 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003242/0.4244, allocations: 0.6188 MB / 417.8 MB, free: 8.105 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003319/0.4277, allocations: 0.8042 MB / 418.6 MB, free: 7.223 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005989/0.4338, allocations: 1.244 MB / 419.8 MB, free: 5.902 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.446e-05/0.4338, allocations: 7.938 kB / 419.8 MB, free: 5.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007185/0.441, allocations: 1.39 MB / 421.2 MB, free: 4.496 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.608e-05/0.4411, allocations: 8 kB / 421.2 MB, free: 4.488 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.521e-05/0.4411, allocations: 8 kB / 421.3 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.394e-05/0.4412, allocations: 16.19 kB / 421.3 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002535/0.4437, allocations: 203.7 kB / 421.5 MB, free: 4.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.308e-05/0.4438, allocations: 15.92 kB / 421.5 MB, free: 4.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001758/0.4456, allocations: 103.7 kB / 421.6 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001374/0.4457, allocations: 28 kB / 421.6 MB, free: 4.121 MB / 334.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: 2 (kinematicPTP.noWphase,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 (83): * Single equations (assignments): 83 * 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.0005583/0.4463, allocations: 181.6 kB / 421.8 MB, free: 3.934 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006013/0.4469, allocations: 153.5 kB / 421.9 MB, free: 3.777 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002517/0.4472, allocations: 67.23 kB / 422 MB, free: 3.711 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.785e-05/0.4472, allocations: 8 kB / 422 MB, free: 3.703 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.419e-05/0.4473, allocations: 7.938 kB / 422 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.367e-05/0.4473, allocations: 3.984 kB / 422 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00935/0.4567, allocations: 2.172 MB / 424.2 MB, free: 1.336 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.08e-05/0.4567, allocations: 12 kB / 424.2 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001542/0.4583, allocations: 183.7 kB / 424.4 MB, free: 1.145 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.677e-05/0.4583, allocations: 15.98 kB / 424.4 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.599e-05/0.4584, allocations: 24 kB / 424.4 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.94e-05/0.4585, allocations: 19.92 kB / 424.4 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.838e-05/0.4585, allocations: 19.95 kB / 424.5 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006133/0.4647, allocations: 1.557 MB / 426 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004544/0.4652, allocations: 160.6 kB / 426.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001478/0.4653, allocations: 31.98 kB / 426.2 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001052/0.4664, allocations: 75.98 kB / 426.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003356/0.4668, allocations: 87.86 kB / 426.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.542e-05/0.4669, allocations: 35.98 kB / 426.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002616/0.4672, allocations: 144 kB / 426.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4672, allocations: 0 / 426.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001151/0.4683, allocations: 124 kB / 426.7 MB, free: 14.7 MB / 350.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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.0003006/0.4687, allocations: 142.9 kB / 426.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005544/0.4742, allocations: 1.136 MB / 427.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-05/0.4743, allocations: 4.062 kB / 427.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002152/0.4765, allocations: 341.8 kB / 428.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001648/0.4781, allocations: 128.2 kB / 428.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004601/0.4827, allocations: 1.207 MB / 429.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006847/0.4835, allocations: 0.8129 MB / 430.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005942/0.4841, allocations: 39.44 kB / 430.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4841, allocations: 0 / 430.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of Templates: time 0.01997/0.5041, allocations: 7.263 MB / 437.7 MB, free: 3.453 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches