Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001067/0.001067, 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.181/1.181, allocations: 227.2 MB / 245 MB, free: 5.93 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008754/0.0008754, allocations: 98.84 kB / 297.3 MB, free: 5.973 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002665/0.0002665, allocations: 8 kB / 357.9 MB, free: 9.344 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1831/0.1834, allocations: 51.47 MB / 409.4 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08208/0.2655, allocations: 81.56 MB / 491 MB, free: 9.043 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/0.2658, allocations: 75.94 kB / 491 MB, free: 8.969 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01773/0.2835, allocations: 6.604 MB / 497.6 MB, free: 2.363 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2835, allocations: 4 kB / 497.6 MB, free: 2.359 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.631e-05/0.2836, allocations: 4 kB / 497.6 MB, free: 2.355 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.0009957/0.2846, allocations: 0.5925 MB / 498.2 MB, free: 1.711 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.2846, allocations: 12.03 kB / 498.3 MB, free: 1.699 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.535e-05/0.2847, allocations: 35.72 kB / 498.3 MB, free: 1.664 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003061/0.285, allocations: 271.8 kB / 498.6 MB, free: 1.359 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001769/0.2852, allocations: 145.6 kB / 498.7 MB, free: 1.199 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.387e-05/0.2853, allocations: 28 kB / 498.7 MB, free: 1.172 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/0.2863, allocations: 0.5592 MB / 499.3 MB, free: 0.582 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.2864, allocations: 0 / 499.3 MB, free: 0.582 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.2864, allocations: 12 kB / 499.3 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.2864, allocations: 11.98 kB / 499.3 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001294/0.2877, allocations: 0.5464 MB / 499.9 MB, free: 12 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001362/0.2891, allocations: 1.018 MB / 0.4891 GB, free: 14.92 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001326/0.2904, allocations: 0.506 MB / 0.4896 GB, free: 14.38 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.203e-05/0.2905, allocations: 8.141 kB / 0.4896 GB, free: 14.37 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.164e-05/0.2905, allocations: 42.5 kB / 0.4897 GB, free: 14.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 1.583e-06/0.2905, allocations: 0 / 0.4897 GB, free: 14.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.04002/0.3305, allocations: 6.768 MB / 0.4963 GB, free: 7.539 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.263e-05/0.3307, allocations: 149 kB / 0.4964 GB, free: 7.359 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001879/0.3309, allocations: 178.3 kB / 0.4966 GB, free: 7.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.459e-05/0.331, allocations: 33.7 kB / 0.4966 GB, free: 7.141 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.583e-05/0.331, allocations: 149.5 kB / 0.4968 GB, free: 6.988 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001617/0.3312, allocations: 197.2 kB / 0.497 GB, free: 6.793 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.171e-05/0.3313, allocations: 12 kB / 0.497 GB, free: 6.781 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.355e-05/0.3314, allocations: 342.8 kB / 0.4973 GB, free: 6.438 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001421/0.3328, allocations: 0.6539 MB / 0.4979 GB, free: 5.781 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001535/0.3344, allocations: 0.8356 MB / 0.4987 GB, free: 4.867 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001395/0.3358, allocations: 0.6111 MB / 0.4993 GB, free: 4.254 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.3358, allocations: 0 / 0.4993 GB, free: 4.254 MB / 378.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003233/0.339, allocations: 1.479 MB / 0.5008 GB, free: 2.773 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.339, allocations: 8 kB / 0.5008 GB, free: 2.766 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.3391, allocations: 4 kB / 0.5008 GB, free: 2.762 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.102e-05/0.3391, allocations: 12 kB / 0.5008 GB, free: 2.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001321/0.3404, allocations: 232.1 kB / 0.501 GB, free: 2.523 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.565e-05/0.3405, allocations: 19.94 kB / 0.5011 GB, free: 2.504 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009736/0.3414, allocations: 119.7 kB / 0.5012 GB, free: 2.387 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.911e-05/0.3415, allocations: 35.98 kB / 0.5012 GB, free: 2.352 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.0002896/0.3418, allocations: 185.5 kB / 0.5014 GB, free: 2.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002808/0.3421, allocations: 145.5 kB / 0.5015 GB, free: 2.012 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001586/0.3423, allocations: 67.55 kB / 0.5016 GB, free: 1.949 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.3423, allocations: 8 kB / 0.5016 GB, free: 1.941 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.3423, allocations: 3.984 kB / 0.5016 GB, free: 1.938 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.3423, allocations: 7.938 kB / 0.5016 GB, free: 1.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1598/0.5021, allocations: 2.303 MB / 0.5038 GB, free: 97.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-05/0.5022, allocations: 12.23 kB / 0.5039 GB, free: 97.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009849/0.5032, allocations: 200 kB / 0.5041 GB, free: 97.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.261e-05/0.5033, allocations: 15.25 kB / 0.5041 GB, free: 97.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001314/0.5034, allocations: 30.09 kB / 0.5041 GB, free: 97.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.93e-05/0.5034, allocations: 19.8 kB / 0.5041 GB, free: 97.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-05/0.5035, allocations: 15.69 kB / 0.5041 GB, free: 97.47 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003474/0.5069, allocations: 2.2 MB / 0.5063 GB, free: 96.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002329/0.5072, allocations: 165 kB / 0.5064 GB, free: 96.08 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.984e-05/0.5073, allocations: 25.95 kB / 0.5065 GB, free: 96.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006207/0.5079, allocations: 98.73 kB / 0.5066 GB, free: 96.08 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002005/0.5081, allocations: 111.8 kB / 0.5067 GB, free: 96.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.501e-05/0.5082, allocations: 32.34 kB / 0.5067 GB, free: 96.06 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000133/0.5083, allocations: 144.2 kB / 0.5068 GB, free: 95.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5083, allocations: 0 / 0.5068 GB, free: 95.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007228/0.5091, allocations: 125.1 kB / 0.5069 GB, free: 95.98 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.0001847/0.5093, allocations: 141.9 kB / 0.5071 GB, free: 95.89 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002764/0.512, allocations: 1.202 MB / 0.5083 GB, free: 95.83 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.512, allocations: 1.594 kB / 0.5083 GB, free: 95.83 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00109/0.5131, allocations: 391.4 kB / 0.5086 GB, free: 95.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006004/0.5137, allocations: 128.9 kB / 0.5088 GB, free: 95.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002041/0.5158, allocations: 1.334 MB / 0.5101 GB, free: 94.72 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002182/0.516, allocations: 0.8192 MB / 0.5109 GB, free: 94.01 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005439/0.5166, allocations: 88.48 kB / 0.5109 GB, free: 93.97 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002667/0.5169, allocations: 37.72 kB / 0.511 GB, free: 93.96 MB / 378.7 MB Notification: Performance of SimCode: time 4.21e-07/0.5169, allocations: 0 / 0.511 GB, free: 93.96 MB / 378.7 MB Notification: Performance of Templates: time 0.009179/0.526, allocations: 7.285 MB / 0.5181 GB, free: 91.08 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","../files/Modelica_trunk_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