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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001095/0.001094, allocations: 180.5 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 223.2 MB / 240.3 MB, free: 11.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000847/0.0008469, allocations: 93.11 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002599/0.0002599, allocations: 15.94 kB / 351.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2432/0.2435, allocations: 50.4 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09944/0.343, allocations: 80.91 MB / 482.4 MB, free: 15.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002441/0.3433, allocations: 79.95 kB / 482.5 MB, free: 15.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02085/0.3641, allocations: 7.247 MB / 489.7 MB, free: 8.262 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3642, allocations: 0 / 489.7 MB, free: 8.262 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.967e-05/0.3642, allocations: 8 kB / 489.7 MB, free: 8.254 MB / 362.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.001148/0.3654, allocations: 0.6042 MB / 490.3 MB, free: 7.602 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.3654, allocations: 12.03 kB / 490.3 MB, free: 7.59 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.643e-05/0.3655, allocations: 35.62 kB / 490.4 MB, free: 7.555 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003454/0.3659, allocations: 263.1 kB / 490.6 MB, free: 7.254 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002134/0.3661, allocations: 149.7 kB / 490.8 MB, free: 7.09 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.359e-05/0.3662, allocations: 28 kB / 490.8 MB, free: 7.062 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001225/0.3674, allocations: 0.5744 MB / 491.4 MB, free: 6.465 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.3674, allocations: 0 / 491.4 MB, free: 6.465 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.079e-05/0.3675, allocations: 12 kB / 491.4 MB, free: 6.453 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.827e-06/0.3675, allocations: 4 kB / 491.4 MB, free: 6.449 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001396/0.3689, allocations: 0.5503 MB / 491.9 MB, free: 5.898 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001557/0.3705, allocations: 1.022 MB / 493 MB, free: 4.797 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001401/0.3719, allocations: 0.5094 MB / 493.5 MB, free: 4.254 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.554e-05/0.3719, allocations: 8.406 kB / 493.5 MB, free: 4.246 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.372, allocations: 38.56 kB / 493.5 MB, free: 4.199 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 2.705e-06/0.372, allocations: 11.88 kB / 493.5 MB, free: 4.188 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.03907/0.4111, allocations: 6.751 MB / 0.4886 GB, free: 13.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.4112, allocations: 152.9 kB / 0.4887 GB, free: 13.25 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002318/0.4114, allocations: 187.4 kB / 0.4889 GB, free: 13.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.851e-05/0.4115, allocations: 38.08 kB / 0.4889 GB, free: 13.01 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.626e-05/0.4116, allocations: 145.5 kB / 0.4891 GB, free: 12.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001898/0.4118, allocations: 193.3 kB / 0.4892 GB, free: 12.67 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.375e-05/0.4119, allocations: 8 kB / 0.4893 GB, free: 12.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.412, allocations: 350.7 kB / 0.4896 GB, free: 12.31 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001506/0.4135, allocations: 0.6578 MB / 0.4902 GB, free: 11.65 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0016/0.4151, allocations: 0.8403 MB / 0.4911 GB, free: 10.74 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00147/0.4166, allocations: 0.6073 MB / 0.4916 GB, free: 10.13 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.4166, allocations: 0 / 0.4916 GB, free: 10.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.00337/0.42, allocations: 1.483 MB / 0.4931 GB, free: 8.645 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.806e-05/0.4201, allocations: 10.81 kB / 0.4931 GB, free: 8.637 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.368e-05/0.4201, allocations: 4 kB / 0.4931 GB, free: 8.633 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.081e-05/0.4201, allocations: 12 kB / 0.4931 GB, free: 8.621 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001369/0.4215, allocations: 231.8 kB / 0.4933 GB, free: 8.395 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.605e-05/0.4215, allocations: 8 kB / 0.4933 GB, free: 8.387 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009866/0.4225, allocations: 127.7 kB / 0.4935 GB, free: 8.262 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.142e-05/0.4226, allocations: 31.94 kB / 0.4935 GB, free: 8.23 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * 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 initialization (84): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003344/0.4229, allocations: 185.6 kB / 0.4937 GB, free: 8.039 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000301/0.4232, allocations: 153.2 kB / 0.4938 GB, free: 7.883 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001752/0.4234, allocations: 67.3 kB / 0.4939 GB, free: 7.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.4234, allocations: 8 kB / 0.4939 GB, free: 7.812 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.4235, allocations: 0 / 0.4939 GB, free: 7.812 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-06/0.4235, allocations: 3.984 kB / 0.4939 GB, free: 7.809 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004618/0.4281, allocations: 2.304 MB / 0.4961 GB, free: 5.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.129e-05/0.4281, allocations: 12 kB / 0.4962 GB, free: 5.309 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007786/0.4289, allocations: 200.6 kB / 0.4963 GB, free: 5.113 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.812e-05/0.4289, allocations: 19.94 kB / 0.4964 GB, free: 5.094 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.279e-05/0.429, allocations: 20 kB / 0.4964 GB, free: 5.074 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.361e-05/0.429, allocations: 23.92 kB / 0.4964 GB, free: 5.051 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.195e-05/0.429, allocations: 19.94 kB / 0.4964 GB, free: 5.031 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003591/0.4326, allocations: 2.196 MB / 0.4986 GB, free: 2.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002111/0.4329, allocations: 168.5 kB / 0.4987 GB, free: 2.227 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.945e-05/0.4329, allocations: 24 kB / 0.4988 GB, free: 2.203 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005831/0.4335, allocations: 104 kB / 0.4989 GB, free: 2.102 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002018/0.4337, allocations: 103.7 kB / 0.499 GB, free: 2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-05/0.4338, allocations: 28 kB / 0.499 GB, free: 1.973 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000139/0.4339, allocations: 152 kB / 0.4991 GB, free: 1.824 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.434, allocations: 4 kB / 0.4991 GB, free: 1.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006756/0.4346, allocations: 128 kB / 0.4993 GB, free: 1.695 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002/0.4348, allocations: 143.2 kB / 0.4994 GB, free: 1.543 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002654/0.4375, allocations: 1.199 MB / 0.5006 GB, free: 352 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/0.4375, allocations: 4 kB / 0.5006 GB, free: 348 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1761/0.6136, allocations: 378.5 kB / 0.5009 GB, free: 103.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009292/0.6146, allocations: 122.9 kB / 0.501 GB, free: 103.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002476/0.6171, allocations: 1.338 MB / 0.5023 GB, free: 102.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003158/0.6174, allocations: 0.8216 MB / 0.5032 GB, free: 101.7 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006159/0.618, allocations: 91.23 kB / 0.5032 GB, free: 101.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002904/0.6183, allocations: 43.03 kB / 0.5033 GB, free: 101.7 MB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.6183, allocations: 3.062 kB / 0.5033 GB, free: 101.7 MB / 378.7 MB Notification: Performance of Templates: time 0.01107/0.6294, allocations: 7.35 MB / 0.5105 GB, free: 100.3 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.k,PI.x,PI.y,gain.k,hold1.y_start,kinematicPTP.nout,kinematicPTP.p_deltaq[1],kinematicPTP.p_q_begin[1],kinematicPTP.p_q_end[1],kinematicPTP.p_qd_max[1],kinematicPTP.p_qdd_max[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd_max[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.phi,load.w,periodicRealClock.period,periodicRealClock.useSolver,speed.flange.phi,subSample1.factor,super.factor,super.inferFactor,time