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.00111/0.00111, allocations: 176.5 kB / 17.4 MB, free: 4.418 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.384/1.384, allocations: 223.3 MB / 241.4 MB, free: 9.973 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.0008877/0.0008875, allocations: 96.3 kB / 292.6 MB, free: 10.58 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003898/0.0003898, allocations: 11.94 kB / 352.3 MB, free: 14.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.25, allocations: 50.41 MB / 402.7 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1001/0.3502, allocations: 80.96 MB / 483.7 MB, free: 15.36 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002342/0.3505, allocations: 71.95 kB / 483.8 MB, free: 15.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02099/0.3715, allocations: 7.254 MB / 491 MB, free: 8.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.906e-06/0.3716, allocations: 0 / 491 MB, free: 8.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.103e-05/0.3716, allocations: 8 kB / 491 MB, free: 8.012 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.001519/0.3732, allocations: 0.5966 MB / 491.6 MB, free: 7.367 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.606e-05/0.3732, allocations: 8.031 kB / 491.6 MB, free: 7.359 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002128/0.3735, allocations: 36.56 kB / 491.7 MB, free: 7.324 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007193/0.3742, allocations: 272.3 kB / 491.9 MB, free: 7.016 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002861/0.3745, allocations: 150.3 kB / 492.1 MB, free: 6.852 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.542e-05/0.3746, allocations: 28.38 kB / 492.1 MB, free: 6.824 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/0.3759, allocations: 0.5784 MB / 492.7 MB, free: 6.219 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.756e-05/0.376, allocations: 7.938 kB / 492.7 MB, free: 6.211 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.531e-05/0.376, allocations: 8 kB / 492.7 MB, free: 6.203 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.238e-06/0.376, allocations: 8 kB / 492.7 MB, free: 6.195 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001512/0.3776, allocations: 0.5386 MB / 493.3 MB, free: 5.656 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001996/0.3796, allocations: 1.022 MB / 494.3 MB, free: 4.555 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001446/0.381, allocations: 0.4987 MB / 494.8 MB, free: 4.02 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000678/0.3817, allocations: 284.2 kB / 495.1 MB, free: 3.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.403e-05/0.3818, allocations: 12 kB / 495.1 MB, free: 3.719 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.367e-05/0.3819, allocations: 54.48 kB / 495.1 MB, free: 3.656 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 3.506e-06/0.3819, allocations: 0 / 495.1 MB, free: 3.656 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.03524/0.4171, allocations: 6.754 MB / 0.4901 GB, free: 12.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/0.4173, allocations: 145 kB / 0.4903 GB, free: 12.72 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002488/0.4175, allocations: 212.1 kB / 0.4905 GB, free: 12.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001165/0.4177, allocations: 42.08 kB / 0.4905 GB, free: 12.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.083e-05/0.4178, allocations: 141.5 kB / 0.4906 GB, free: 12.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001969/0.418, allocations: 193.3 kB / 0.4908 GB, free: 12.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.737e-05/0.418, allocations: 16 kB / 0.4908 GB, free: 12.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.4182, allocations: 346.7 kB / 0.4912 GB, free: 11.76 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001522/0.4197, allocations: 0.6539 MB / 0.4918 GB, free: 11.11 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001605/0.4213, allocations: 0.8403 MB / 0.4926 GB, free: 10.19 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002949/0.4243, allocations: 1.332 MB / 0.4939 GB, free: 8.785 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/0.4243, allocations: 4 kB / 0.4939 GB, free: 8.781 MB / 378.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003524/0.4278, allocations: 1.479 MB / 0.4954 GB, free: 7.297 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.031e-05/0.4279, allocations: 4 kB / 0.4954 GB, free: 7.293 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.105e-05/0.4279, allocations: 8 kB / 0.4954 GB, free: 7.285 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.355e-05/0.428, allocations: 8 kB / 0.4954 GB, free: 7.277 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001288/0.4292, allocations: 239.8 kB / 0.4956 GB, free: 7.043 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.866e-05/0.4293, allocations: 11.94 kB / 0.4956 GB, free: 7.031 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009787/0.4303, allocations: 127.7 kB / 0.4957 GB, free: 6.906 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.579e-05/0.4304, allocations: 32 kB / 0.4958 GB, free: 6.875 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.0004033/0.4308, allocations: 177.6 kB / 0.4959 GB, free: 6.691 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003778/0.4312, allocations: 149.2 kB / 0.4961 GB, free: 6.539 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001951/0.4314, allocations: 67.3 kB / 0.4962 GB, free: 6.477 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.148e-05/0.4314, allocations: 8 kB / 0.4962 GB, free: 6.469 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.705e-05/0.4314, allocations: 7.938 kB / 0.4962 GB, free: 6.461 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.4314, allocations: 3.984 kB / 0.4962 GB, free: 6.457 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005169/0.4366, allocations: 2.301 MB / 0.4984 GB, free: 3.973 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.274e-05/0.4367, allocations: 12.25 kB / 0.4984 GB, free: 3.961 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000777/0.4375, allocations: 199.6 kB / 0.4986 GB, free: 3.766 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.113e-05/0.4375, allocations: 23.94 kB / 0.4986 GB, free: 3.742 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.62e-05/0.4376, allocations: 28 kB / 0.4987 GB, free: 3.715 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.667e-05/0.4376, allocations: 19.92 kB / 0.4987 GB, free: 3.695 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.255e-05/0.4376, allocations: 15.94 kB / 0.4987 GB, free: 3.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003543/0.4412, allocations: 1.681 MB / 0.5003 GB, free: 1.844 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002589/0.4414, allocations: 172.5 kB / 0.5005 GB, free: 1.656 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.193e-05/0.4415, allocations: 28.17 kB / 0.5005 GB, free: 1.629 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006108/0.4421, allocations: 99.97 kB / 0.5006 GB, free: 1.531 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002325/0.4424, allocations: 103.6 kB / 0.5007 GB, free: 1.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.846e-05/0.4425, allocations: 39.98 kB / 0.5008 GB, free: 1.391 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001709/0.4426, allocations: 145.2 kB / 0.5009 GB, free: 1.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4426, allocations: 0 / 0.5009 GB, free: 1.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007819/0.4434, allocations: 124 kB / 0.501 GB, free: 1.129 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.0002662/0.4437, allocations: 142.9 kB / 0.5012 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.2096/0.6534, allocations: 1.197 MB / 0.5023 GB, free: 103 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.998e-05/0.6534, allocations: 1.531 kB / 0.5023 GB, free: 103 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001299/0.6547, allocations: 385.8 kB / 0.5027 GB, free: 103 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001209/0.656, allocations: 143.5 kB / 0.5028 GB, free: 103 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.6584, allocations: 1.341 MB / 0.5041 GB, free: 102.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003738/0.6588, allocations: 0.8131 MB / 0.5049 GB, free: 101.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000647/0.6595, allocations: 91.28 kB / 0.505 GB, free: 101.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002708/0.6597, allocations: 41.45 kB / 0.5051 GB, free: 101.5 MB / 378.7 MB Notification: Performance of SimCode: time 1.082e-06/0.6597, allocations: 1.156 kB / 0.5051 GB, free: 101.5 MB / 378.7 MB Notification: Performance of Templates: time 0.0117/0.6715, allocations: 7.372 MB / 0.5123 GB, free: 99.95 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/jenkins1/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