Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001071/0.001071, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 225.4 MB / 240.1 MB, free: 15.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008843/0.0008844, allocations: 85.86 kB / 292.1 MB, free: 5.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.596e-05/2.599e-05, allocations: 4 kB / 350.5 MB, free: 2.562 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1129, allocations: 51.48 MB / 402 MB, free: 15.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3629/0.4759, allocations: 81.66 MB / 483.7 MB, free: 7.828 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002503/0.4762, allocations: 72.48 kB / 483.7 MB, free: 7.793 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01872/0.4949, allocations: 7.285 MB / 491 MB, free: 1.707 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.4949, allocations: 0 / 491 MB, free: 1.707 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.354e-05/0.4949, allocations: 7.938 kB / 491 MB, free: 1.699 MB / 346.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.000874/0.4958, allocations: 0.5825 MB / 491.6 MB, free: 1.102 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.4959, allocations: 8.031 kB / 491.6 MB, free: 1.094 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.937e-05/0.4959, allocations: 39.62 kB / 491.7 MB, free: 1.055 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003188/0.4963, allocations: 267 kB / 491.9 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001765/0.4965, allocations: 145.5 kB / 492.1 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.184e-05/0.4965, allocations: 35.28 kB / 492.1 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007282/0.4973, allocations: 0.5029 MB / 492.6 MB, free: 224 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.639e-05/0.4973, allocations: 0 / 492.6 MB, free: 224 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.235e-05/0.4973, allocations: 11.38 kB / 492.6 MB, free: 220 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.4973, allocations: 8 kB / 492.6 MB, free: 212 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006017/0.498, allocations: 405.6 kB / 493 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001564/0.4995, allocations: 1.028 MB / 494.1 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008888/0.5004, allocations: 413.7 kB / 494.5 MB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003034/0.5007, allocations: 207.6 kB / 494.7 MB, free: 14.4 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.306e-05/0.5008, allocations: 15.95 kB / 494.7 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.296e-05/0.5008, allocations: 41.34 kB / 494.7 MB, free: 14.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 1.824e-06/0.5009, allocations: 0 / 494.7 MB, free: 14.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.007706/0.5086, allocations: 2.076 MB / 496.8 MB, free: 12.26 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001081/0.5087, allocations: 152.8 kB / 496.9 MB, free: 12.08 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002111/0.5089, allocations: 183.4 kB / 497.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.986e-05/0.509, allocations: 41.7 kB / 497.2 MB, free: 11.84 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.931e-05/0.5091, allocations: 147.7 kB / 497.3 MB, free: 11.7 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001808/0.5093, allocations: 193.3 kB / 497.5 MB, free: 11.51 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.266e-05/0.5094, allocations: 12 kB / 497.5 MB, free: 11.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.5095, allocations: 350.8 kB / 497.8 MB, free: 11.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007609/0.5103, allocations: 473.5 kB / 498.3 MB, free: 10.68 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008685/0.5112, allocations: 0.6462 MB / 499 MB, free: 9.961 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006618/0.5118, allocations: 435.2 kB / 499.4 MB, free: 9.535 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.5118, allocations: 4 kB / 499.4 MB, free: 9.531 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001815/0.5137, allocations: 1.096 MB / 0.4887 GB, free: 8.43 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.5137, allocations: 8 kB / 0.4888 GB, free: 8.422 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.5137, allocations: 8.719 kB / 0.4888 GB, free: 8.414 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.39e-05/0.5137, allocations: 12 kB / 0.4888 GB, free: 8.402 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001359/0.5151, allocations: 223.6 kB / 0.489 GB, free: 8.184 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.826e-05/0.5151, allocations: 16 kB / 0.489 GB, free: 8.168 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009322/0.5161, allocations: 131.7 kB / 0.4891 GB, free: 8.039 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.697e-05/0.5162, allocations: 24.78 kB / 0.4892 GB, free: 8.016 MB / 362.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 () * 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.0002467/0.5164, allocations: 148.7 kB / 0.4893 GB, free: 7.863 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003024/0.5167, allocations: 154.7 kB / 0.4894 GB, free: 7.707 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000223/0.517, allocations: 59.09 kB / 0.4895 GB, free: 7.648 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.898e-06/0.517, allocations: 8 kB / 0.4895 GB, free: 7.641 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.186e-05/0.517, allocations: 0 / 0.4895 GB, free: 7.641 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.383e-05/0.517, allocations: 7.984 kB / 0.4895 GB, free: 7.633 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003838/0.5209, allocations: 2.019 MB / 0.4915 GB, free: 5.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.157e-05/0.5209, allocations: 12 kB / 0.4915 GB, free: 5.418 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007666/0.5217, allocations: 207.3 kB / 0.4917 GB, free: 5.219 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.822e-05/0.5217, allocations: 16 kB / 0.4917 GB, free: 5.203 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.429e-05/0.5218, allocations: 24 kB / 0.4917 GB, free: 5.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.826e-05/0.5218, allocations: 19.92 kB / 0.4918 GB, free: 5.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-05/0.5218, allocations: 15.94 kB / 0.4918 GB, free: 5.145 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00199/0.5238, allocations: 1.764 MB / 0.4935 GB, free: 2.957 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002003/0.524, allocations: 165.2 kB / 0.4936 GB, free: 2.777 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.617e-05/0.5241, allocations: 28 kB / 0.4937 GB, free: 2.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006156/0.5247, allocations: 99.97 kB / 0.4938 GB, free: 2.652 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002032/0.5249, allocations: 103.7 kB / 0.4939 GB, free: 2.551 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.217e-05/0.525, allocations: 31.98 kB / 0.4939 GB, free: 2.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001545/0.5251, allocations: 149.2 kB / 0.494 GB, free: 2.375 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5252, allocations: 6.375 kB / 0.494 GB, free: 2.371 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006369/0.5258, allocations: 128 kB / 0.4942 GB, free: 2.246 MB / 362.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 () * 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.0002159/0.526, allocations: 139 kB / 0.4943 GB, free: 2.102 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00142/0.5274, allocations: 0.8686 MB / 0.4952 GB, free: 1.234 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.5275, allocations: 0 / 0.4952 GB, free: 1.234 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004513/0.5279, allocations: 237.9 kB / 0.4954 GB, free: 1.004 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000582/0.5285, allocations: 120.7 kB / 0.4955 GB, free: 0.8867 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001823/0.5303, allocations: 0.9739 MB / 0.4964 GB, free: 15.76 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004586/0.5308, allocations: 0.8284 MB / 0.4973 GB, free: 14.9 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005572/0.5314, allocations: 91.38 kB / 0.4973 GB, free: 14.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002809/0.5317, allocations: 39.42 kB / 0.4974 GB, free: 14.77 MB / 378.7 MB Notification: Performance of SimCode: time 5.61e-07/0.5317, allocations: 0 / 0.4974 GB, free: 14.77 MB / 378.7 MB Notification: Performance of Templates: time 0.01297/0.5446, allocations: 7.345 MB / 0.5046 GB, free: 7.48 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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