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.001267/0.001266, allocations: 200.5 kB / 18.11 MB, free: 3.609 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 226.5 MB / 245.4 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007898/0.0007898, allocations: 105.8 kB / 297.5 MB, free: 6.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002363/0.0002364, allocations: 4 kB / 358.1 MB, free: 10.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.2422, allocations: 51.3 MB / 409.4 MB, free: 27.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09729/0.3395, allocations: 81.67 MB / 491 MB, free: 9.812 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002196/0.3398, allocations: 75.97 kB / 491.1 MB, free: 9.738 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02033/0.3601, allocations: 7.302 MB / 498.4 MB, free: 2.43 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3602, allocations: 4 kB / 498.4 MB, free: 2.426 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.54e-05/0.3602, allocations: 4 kB / 498.4 MB, free: 2.422 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.001026/0.3612, allocations: 0.5927 MB / 499 MB, free: 1.777 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.3613, allocations: 12.03 kB / 499 MB, free: 1.766 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.631e-05/0.3614, allocations: 36.56 kB / 499.1 MB, free: 1.73 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003426/0.3617, allocations: 280.3 kB / 499.3 MB, free: 1.418 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001875/0.3619, allocations: 142.3 kB / 499.5 MB, free: 1.262 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.88e-05/0.362, allocations: 32.38 kB / 499.5 MB, free: 1.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.3631, allocations: 0.5816 MB / 0.4884 GB, free: 0.625 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.3631, allocations: 0 / 0.4884 GB, free: 0.625 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.313e-05/0.3632, allocations: 12 kB / 0.4884 GB, free: 0.6133 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.3632, allocations: 8 kB / 0.4884 GB, free: 0.6055 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001285/0.3645, allocations: 0.5425 MB / 0.4889 GB, free: 64 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001568/0.3661, allocations: 1.025 MB / 0.4899 GB, free: 14.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001381/0.3675, allocations: 0.5025 MB / 0.4904 GB, free: 14.42 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006343/0.3681, allocations: 284 kB / 0.4907 GB, free: 14.13 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.918e-05/0.3682, allocations: 11.98 kB / 0.4907 GB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.823e-05/0.3682, allocations: 34.56 kB / 0.4907 GB, free: 14.08 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 2.675e-06/0.3682, allocations: 0 / 0.4907 GB, free: 14.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.03469/0.4029, allocations: 6.761 MB / 0.4973 GB, free: 7.305 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.254e-05/0.403, allocations: 149 kB / 0.4975 GB, free: 7.125 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002284/0.4033, allocations: 212.9 kB / 0.4977 GB, free: 6.906 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.042e-05/0.4034, allocations: 33.7 kB / 0.4977 GB, free: 6.867 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.18e-05/0.4035, allocations: 141.6 kB / 0.4978 GB, free: 6.727 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001763/0.4036, allocations: 193.3 kB / 0.498 GB, free: 6.535 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.178e-05/0.4037, allocations: 16 kB / 0.498 GB, free: 6.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.4038, allocations: 342.8 kB / 0.4984 GB, free: 6.176 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00149/0.4053, allocations: 0.6578 MB / 0.499 GB, free: 5.516 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001591/0.4069, allocations: 0.8356 MB / 0.4998 GB, free: 4.605 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002849/0.4098, allocations: 1.339 MB / 0.5011 GB, free: 3.191 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.4098, allocations: 0 / 0.5011 GB, free: 3.191 MB / 378.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003284/0.4131, allocations: 1.479 MB / 0.5026 GB, free: 1.707 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.4131, allocations: 12.12 kB / 0.5026 GB, free: 1.695 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.4132, allocations: 8 kB / 0.5026 GB, free: 1.688 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.238e-05/0.4132, allocations: 8 kB / 0.5026 GB, free: 1.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001265/0.4145, allocations: 231.6 kB / 0.5028 GB, free: 1.453 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.562e-05/0.4145, allocations: 16.31 kB / 0.5028 GB, free: 1.438 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008922/0.4154, allocations: 127.7 kB / 0.503 GB, free: 1.312 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.319e-05/0.4155, allocations: 27.94 kB / 0.503 GB, free: 1.285 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.000303/0.4158, allocations: 189.5 kB / 0.5032 GB, free: 1.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002686/0.416, allocations: 149.2 kB / 0.5033 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001403/0.4162, allocations: 63.53 kB / 0.5034 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/0.4162, allocations: 8 kB / 0.5034 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.4162, allocations: 11.92 kB / 0.5034 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.4162, allocations: 7.984 kB / 0.5034 GB, free: 0.8516 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1945/0.6107, allocations: 2.293 MB / 0.5056 GB, free: 98.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-05/0.6108, allocations: 9.688 kB / 0.5057 GB, free: 98.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008795/0.6117, allocations: 202.2 kB / 0.5058 GB, free: 98.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.634e-05/0.6117, allocations: 17.81 kB / 0.5059 GB, free: 98.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.57e-05/0.6119, allocations: 29.72 kB / 0.5059 GB, free: 98.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.306e-05/0.6119, allocations: 20.33 kB / 0.5059 GB, free: 98.22 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.279e-05/0.6119, allocations: 16.5 kB / 0.5059 GB, free: 98.22 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003297/0.6152, allocations: 1.685 MB / 0.5076 GB, free: 97.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002651/0.6155, allocations: 171.2 kB / 0.5077 GB, free: 97.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.293e-05/0.6156, allocations: 25.92 kB / 0.5078 GB, free: 97.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005981/0.6162, allocations: 100.4 kB / 0.5079 GB, free: 97.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002257/0.6164, allocations: 102.4 kB / 0.508 GB, free: 97.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.965e-05/0.6165, allocations: 31.25 kB / 0.508 GB, free: 97.51 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001413/0.6166, allocations: 146.7 kB / 0.5081 GB, free: 97.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.6167, allocations: 0 / 0.5081 GB, free: 97.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008019/0.6175, allocations: 124 kB / 0.5082 GB, free: 97.43 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.0002563/0.6177, allocations: 150.6 kB / 0.5084 GB, free: 97.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002886/0.6206, allocations: 1.204 MB / 0.5096 GB, free: 97.11 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.233e-06/0.6206, allocations: 2.75 kB / 0.5096 GB, free: 97.11 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000922/0.6216, allocations: 381.9 kB / 0.5099 GB, free: 97.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/0.6226, allocations: 149.7 kB / 0.5101 GB, free: 96.96 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001982/0.6246, allocations: 1.338 MB / 0.5114 GB, free: 95.97 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/0.6248, allocations: 0.8127 MB / 0.5122 GB, free: 95.26 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005908/0.6254, allocations: 86.42 kB / 0.5123 GB, free: 95.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002653/0.6257, allocations: 41.31 kB / 0.5123 GB, free: 95.22 MB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.6257, allocations: 0 / 0.5123 GB, free: 95.22 MB / 378.7 MB Notification: Performance of Templates: time 0.009446/0.6351, allocations: 7.368 MB / 0.5195 GB, free: 91.69 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/jenkins1/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