Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.SuperSampled,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.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,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.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009175/0.0009175, allocations: 176.4 kB / 17.4 MB, free: 4.422 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.402/1.402, allocations: 223.3 MB / 241.4 MB, free: 11.7 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.000899/0.000899, allocations: 100.2 kB / 292.6 MB, free: 10.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003341/0.0003341, allocations: 11.94 kB / 352.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2123/0.2127, allocations: 50.4 MB / 402.7 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1257/0.3384, allocations: 80.81 MB / 483.6 MB, free: 15.54 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002856/0.3387, allocations: 71.97 kB / 483.6 MB, free: 15.47 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02207/0.3608, allocations: 6.545 MB / 490.2 MB, free: 8.918 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3609, allocations: 0 / 490.2 MB, free: 8.918 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.545e-05/0.3609, allocations: 11.94 kB / 490.2 MB, free: 8.906 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001232/0.3621, allocations: 0.585 MB / 490.8 MB, free: 8.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.3622, allocations: 8.031 kB / 490.8 MB, free: 8.262 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.3623, allocations: 40.56 kB / 490.8 MB, free: 8.223 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004156/0.3627, allocations: 268.3 kB / 491.1 MB, free: 7.918 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002244/0.363, allocations: 142.2 kB / 491.2 MB, free: 7.762 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.452e-05/0.3631, allocations: 28.28 kB / 491.2 MB, free: 7.734 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001269/0.3643, allocations: 0.5638 MB / 491.8 MB, free: 7.148 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.89e-05/0.3644, allocations: 7.938 kB / 491.8 MB, free: 7.141 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.93e-05/0.3644, allocations: 15.98 kB / 491.8 MB, free: 7.125 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.026e-06/0.3645, allocations: 4 kB / 491.8 MB, free: 7.121 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001378/0.3658, allocations: 0.5386 MB / 492.4 MB, free: 6.582 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001556/0.3674, allocations: 1.025 MB / 493.4 MB, free: 5.477 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00143/0.3688, allocations: 0.5064 MB / 493.9 MB, free: 4.934 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000624/0.3695, allocations: 275.3 kB / 494.2 MB, free: 4.652 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.979e-05/0.3695, allocations: 11.92 kB / 494.2 MB, free: 4.641 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.3696, allocations: 46.56 kB / 494.2 MB, free: 4.586 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 1.843e-06/0.3696, allocations: 0 / 494.2 MB, free: 4.586 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.03711/0.4067, allocations: 6.77 MB / 0.4893 GB, free: 13.81 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000135/0.4069, allocations: 145 kB / 0.4894 GB, free: 13.64 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002949/0.4072, allocations: 203.5 kB / 0.4896 GB, free: 13.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001173/0.4073, allocations: 37.7 kB / 0.4896 GB, free: 13.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.4075, allocations: 141.5 kB / 0.4898 GB, free: 13.25 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003142/0.4078, allocations: 197.3 kB / 0.4899 GB, free: 13.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.027e-05/0.4079, allocations: 15.94 kB / 0.49 GB, free: 13.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001873/0.4081, allocations: 338.8 kB / 0.4903 GB, free: 12.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001646/0.4097, allocations: 0.6617 MB / 0.4909 GB, free: 12.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00168/0.4114, allocations: 0.8394 MB / 0.4918 GB, free: 11.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00341/0.4149, allocations: 1.335 MB / 0.4931 GB, free: 9.703 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.4149, allocations: 0 / 0.4931 GB, free: 9.703 MB / 378.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003586/0.4185, allocations: 1.482 MB / 0.4945 GB, free: 8.215 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.402e-05/0.4185, allocations: 8 kB / 0.4945 GB, free: 8.207 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/0.4185, allocations: 4 kB / 0.4945 GB, free: 8.203 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.257e-05/0.4186, allocations: 12 kB / 0.4945 GB, free: 8.191 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001348/0.4199, allocations: 228 kB / 0.4947 GB, free: 7.969 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.733e-05/0.42, allocations: 19.88 kB / 0.4948 GB, free: 7.949 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009463/0.4209, allocations: 119.7 kB / 0.4949 GB, free: 7.832 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-05/0.421, allocations: 35.98 kB / 0.4949 GB, free: 7.797 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.0003091/0.4213, allocations: 185.6 kB / 0.4951 GB, free: 7.605 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002961/0.4216, allocations: 149.2 kB / 0.4952 GB, free: 7.453 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001539/0.4218, allocations: 59.31 kB / 0.4953 GB, free: 7.398 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.547e-06/0.4218, allocations: 11.98 kB / 0.4953 GB, free: 7.387 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-05/0.4218, allocations: 3.938 kB / 0.4953 GB, free: 7.383 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.4218, allocations: 0 / 0.4953 GB, free: 7.383 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004719/0.4266, allocations: 2.301 MB / 0.4975 GB, free: 4.898 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.726e-05/0.4266, allocations: 12.22 kB / 0.4976 GB, free: 4.887 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007357/0.4274, allocations: 207.7 kB / 0.4978 GB, free: 4.684 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-05/0.4274, allocations: 19.94 kB / 0.4978 GB, free: 4.664 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.531e-05/0.4274, allocations: 24 kB / 0.4978 GB, free: 4.641 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.614e-05/0.4275, allocations: 23.92 kB / 0.4978 GB, free: 4.617 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.067e-06/0.4275, allocations: 12.12 kB / 0.4978 GB, free: 4.605 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003135/0.4306, allocations: 1.685 MB / 0.4995 GB, free: 2.762 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002099/0.4308, allocations: 160.6 kB / 0.4996 GB, free: 2.586 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.995e-05/0.4309, allocations: 31.92 kB / 0.4997 GB, free: 2.555 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005966/0.4315, allocations: 107.9 kB / 0.4998 GB, free: 2.449 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001951/0.4317, allocations: 103.6 kB / 0.4999 GB, free: 2.348 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.755e-05/0.4318, allocations: 32 kB / 0.4999 GB, free: 2.316 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001294/0.4319, allocations: 143.2 kB / 0.5 GB, free: 2.176 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4319, allocations: 0 / 0.5 GB, free: 2.176 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000662/0.4326, allocations: 131.9 kB / 0.5002 GB, free: 2.047 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.0001878/0.4328, allocations: 139 kB / 0.5003 GB, free: 1.902 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002783/0.4356, allocations: 1.199 MB / 0.5015 GB, free: 0.707 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.4356, allocations: 4.312 kB / 0.5015 GB, free: 0.7031 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009963/0.4366, allocations: 381.8 kB / 0.5018 GB, free: 340 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009731/0.4376, allocations: 139 kB / 0.502 GB, free: 204 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1652/0.6028, allocations: 1.339 MB / 0.5033 GB, free: 102.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003324/0.6032, allocations: 0.8121 MB / 0.5041 GB, free: 101.9 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006749/0.6039, allocations: 90.94 kB / 0.5042 GB, free: 101.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002769/0.6041, allocations: 38.88 kB / 0.5042 GB, free: 101.8 MB / 378.7 MB Notification: Performance of SimCode: time 7.71e-07/0.6041, allocations: 0 / 0.5042 GB, free: 101.8 MB / 378.7 MB Notification: Performance of Templates: time 0.01101/0.6152, allocations: 7.318 MB / 0.5113 GB, free: 100.4 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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,super.factor,super.inferFactor,time