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.001065/0.001065, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.191/1.191, allocations: 227.2 MB / 245 MB, free: 7.641 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009447/0.0009448, allocations: 103.1 kB / 297.3 MB, free: 6.211 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002271/0.0002272, allocations: 11.98 kB / 357.9 MB, free: 9.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1974/0.1977, allocations: 51.47 MB / 409.4 MB, free: 26.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09027/0.288, allocations: 81.73 MB / 491.1 MB, free: 8.918 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000212/0.2882, allocations: 71.97 kB / 491.2 MB, free: 8.848 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02053/0.3088, allocations: 7.305 MB / 498.5 MB, free: 1.535 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.3088, allocations: 0 / 498.5 MB, free: 1.535 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.566e-05/0.3088, allocations: 4 kB / 498.5 MB, free: 1.531 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.001084/0.3099, allocations: 0.6081 MB / 499.1 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.31, allocations: 12.03 kB / 499.1 MB, free: 0.8594 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.497e-05/0.3101, allocations: 35.62 kB / 499.2 MB, free: 0.8242 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000351/0.3104, allocations: 263.1 kB / 499.4 MB, free: 0.5273 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001945/0.3106, allocations: 141.7 kB / 499.6 MB, free: 380 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.475e-05/0.3107, allocations: 36 kB / 499.6 MB, free: 344 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001155/0.3119, allocations: 0.5737 MB / 0.4884 GB, free: 15.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.281e-05/0.3119, allocations: 4 kB / 0.4884 GB, free: 15.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.506e-05/0.312, allocations: 8 kB / 0.4885 GB, free: 15.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.312, allocations: 8 kB / 0.4885 GB, free: 15.72 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/0.3133, allocations: 0.5542 MB / 0.489 GB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001438/0.3148, allocations: 1.014 MB / 0.49 GB, free: 14.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001371/0.3161, allocations: 0.5024 MB / 0.4905 GB, free: 13.54 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.383e-05/0.3162, allocations: 12.31 kB / 0.4905 GB, free: 13.52 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.407e-05/0.3162, allocations: 46.45 kB / 0.4905 GB, free: 13.47 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 1.914e-06/0.3162, allocations: 0 / 0.4905 GB, free: 13.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.03904/0.3553, allocations: 6.754 MB / 0.4971 GB, free: 6.703 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.3554, allocations: 168.8 kB / 0.4973 GB, free: 6.504 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002037/0.3556, allocations: 183.4 kB / 0.4975 GB, free: 6.316 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.016e-05/0.3557, allocations: 37.7 kB / 0.4975 GB, free: 6.273 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.657e-05/0.3558, allocations: 137.6 kB / 0.4976 GB, free: 6.133 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001835/0.356, allocations: 189.3 kB / 0.4978 GB, free: 5.945 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.701e-05/0.3561, allocations: 16 kB / 0.4978 GB, free: 5.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.3562, allocations: 342.8 kB / 0.4982 GB, free: 5.586 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00147/0.3577, allocations: 0.6617 MB / 0.4988 GB, free: 4.922 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001544/0.3592, allocations: 0.8355 MB / 0.4996 GB, free: 4.008 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001396/0.3606, allocations: 0.6112 MB / 0.5002 GB, free: 3.395 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.3607, allocations: 4 kB / 0.5002 GB, free: 3.391 MB / 378.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003238/0.3639, allocations: 1.482 MB / 0.5017 GB, free: 1.902 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.3639, allocations: 4 kB / 0.5017 GB, free: 1.898 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.3639, allocations: 8 kB / 0.5017 GB, free: 1.891 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/0.364, allocations: 12 kB / 0.5017 GB, free: 1.879 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001289/0.3653, allocations: 231.8 kB / 0.5019 GB, free: 1.652 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.596e-05/0.3653, allocations: 11.94 kB / 0.5019 GB, free: 1.641 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009306/0.3662, allocations: 131.7 kB / 0.5021 GB, free: 1.512 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.91e-05/0.3663, allocations: 31.94 kB / 0.5021 GB, free: 1.48 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.0002718/0.3666, allocations: 177.6 kB / 0.5023 GB, free: 1.297 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002908/0.3669, allocations: 153.2 kB / 0.5024 GB, free: 1.141 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001608/0.3671, allocations: 63.3 kB / 0.5025 GB, free: 1.082 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.505e-06/0.3671, allocations: 8 kB / 0.5025 GB, free: 1.074 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.3671, allocations: 4 kB / 0.5025 GB, free: 1.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.3671, allocations: 3.984 kB / 0.5025 GB, free: 1.066 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1562/0.5233, allocations: 2.31 MB / 0.5047 GB, free: 97.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.64e-05/0.5234, allocations: 9.812 kB / 0.5047 GB, free: 97.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008582/0.5242, allocations: 204.4 kB / 0.5049 GB, free: 97.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-05/0.5243, allocations: 15.44 kB / 0.505 GB, free: 97.47 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.405e-05/0.5243, allocations: 24.91 kB / 0.505 GB, free: 97.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.852e-05/0.5244, allocations: 20.55 kB / 0.505 GB, free: 97.47 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.101e-05/0.5244, allocations: 15.22 kB / 0.505 GB, free: 97.46 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003277/0.5277, allocations: 2.201 MB / 0.5072 GB, free: 96.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002414/0.5279, allocations: 166.8 kB / 0.5073 GB, free: 96.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.128e-05/0.528, allocations: 26.55 kB / 0.5073 GB, free: 96.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006211/0.5286, allocations: 99.52 kB / 0.5074 GB, free: 96.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002036/0.5288, allocations: 104.2 kB / 0.5075 GB, free: 96.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.379e-05/0.5289, allocations: 30.7 kB / 0.5076 GB, free: 96.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001225/0.529, allocations: 143.8 kB / 0.5077 GB, free: 95.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.529, allocations: 1.406 kB / 0.5077 GB, free: 95.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006792/0.5297, allocations: 125.4 kB / 0.5078 GB, free: 95.95 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.0001674/0.5299, allocations: 145.4 kB / 0.508 GB, free: 95.85 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002884/0.5328, allocations: 1.199 MB / 0.5091 GB, free: 95.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.251e-06/0.5328, allocations: 1.344 kB / 0.5091 GB, free: 95.64 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009523/0.5338, allocations: 387.7 kB / 0.5095 GB, free: 95.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005638/0.5343, allocations: 131.9 kB / 0.5096 GB, free: 95.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001889/0.5362, allocations: 1.341 MB / 0.5109 GB, free: 94.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002157/0.5365, allocations: 0.8183 MB / 0.5117 GB, free: 93.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005421/0.537, allocations: 87.08 kB / 0.5118 GB, free: 93.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002702/0.5373, allocations: 48.22 kB / 0.5119 GB, free: 93.74 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.5373, allocations: 0 / 0.5119 GB, free: 93.74 MB / 378.7 MB Notification: Performance of Templates: time 0.009703/0.547, allocations: 7.336 MB / 0.519 GB, free: 90.46 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