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.00143/0.00143, allocations: 202.2 kB / 18.11 MB, free: 3.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 226.5 MB / 245.4 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007838/0.0007839, allocations: 96.58 kB / 297.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002039/0.0002039, allocations: 8 kB / 358.1 MB, free: 10.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.2321, allocations: 51.29 MB / 409.4 MB, free: 27.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09976/0.3319, allocations: 81.51 MB / 490.9 MB, free: 9.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002163/0.3322, allocations: 75.95 kB / 491 MB, free: 9.906 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01908/0.3513, allocations: 6.614 MB / 497.6 MB, free: 3.289 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3513, allocations: 0 / 497.6 MB, free: 3.289 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.467e-05/0.3513, allocations: 8 kB / 497.6 MB, free: 3.281 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.00102/0.3524, allocations: 0.5772 MB / 498.2 MB, free: 2.648 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.3524, allocations: 16.03 kB / 498.2 MB, free: 2.633 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.296e-05/0.3525, allocations: 36.56 kB / 498.2 MB, free: 2.598 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000329/0.3528, allocations: 273.9 kB / 498.5 MB, free: 2.293 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001906/0.353, allocations: 138.2 kB / 498.6 MB, free: 2.141 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.639e-05/0.3531, allocations: 36.28 kB / 498.6 MB, free: 2.105 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001138/0.3542, allocations: 0.5651 MB / 499.2 MB, free: 1.516 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.3543, allocations: 0 / 499.2 MB, free: 1.516 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.592e-05/0.3543, allocations: 12 kB / 499.2 MB, free: 1.504 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.998e-06/0.3543, allocations: 8 kB / 499.2 MB, free: 1.496 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001362/0.3557, allocations: 0.5386 MB / 499.8 MB, free: 0.957 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/0.3572, allocations: 1.033 MB / 0.4891 GB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001405/0.3586, allocations: 0.4987 MB / 0.4895 GB, free: 15.31 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006414/0.3592, allocations: 275.3 kB / 0.4898 GB, free: 15.03 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.694e-05/0.3593, allocations: 11.98 kB / 0.4898 GB, free: 15.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.3593, allocations: 46.44 kB / 0.4899 GB, free: 14.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 2.054e-06/0.3593, allocations: 0 / 0.4899 GB, free: 14.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.03569/0.395, allocations: 6.754 MB / 0.4965 GB, free: 8.195 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.3952, allocations: 149.3 kB / 0.4966 GB, free: 8.016 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002155/0.3954, allocations: 195.1 kB / 0.4968 GB, free: 7.816 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.394e-05/0.3955, allocations: 45.64 kB / 0.4968 GB, free: 7.766 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.312e-05/0.3956, allocations: 141.5 kB / 0.497 GB, free: 7.625 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001805/0.3958, allocations: 189.3 kB / 0.4971 GB, free: 7.438 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.286e-05/0.3958, allocations: 20 kB / 0.4972 GB, free: 7.418 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.396, allocations: 342.8 kB / 0.4975 GB, free: 7.074 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001513/0.3975, allocations: 0.6578 MB / 0.4981 GB, free: 6.414 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001695/0.3992, allocations: 0.8394 MB / 0.499 GB, free: 5.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003013/0.4022, allocations: 1.328 MB / 0.5003 GB, free: 4.094 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.4023, allocations: 4 kB / 0.5003 GB, free: 4.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003516/0.4058, allocations: 1.482 MB / 0.5017 GB, free: 2.598 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.4058, allocations: 8 kB / 0.5017 GB, free: 2.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/0.4058, allocations: 8 kB / 0.5017 GB, free: 2.582 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.4059, allocations: 8 kB / 0.5017 GB, free: 2.574 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001268/0.4071, allocations: 227.8 kB / 0.5019 GB, free: 2.352 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.951e-05/0.4072, allocations: 20.19 kB / 0.502 GB, free: 2.332 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008975/0.4081, allocations: 127.7 kB / 0.5021 GB, free: 2.207 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.858e-05/0.4082, allocations: 27.98 kB / 0.5021 GB, free: 2.18 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.0003307/0.4085, allocations: 186.6 kB / 0.5023 GB, free: 1.988 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003141/0.4088, allocations: 157.2 kB / 0.5024 GB, free: 1.828 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001353/0.409, allocations: 55.31 kB / 0.5025 GB, free: 1.777 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.246e-06/0.409, allocations: 12 kB / 0.5025 GB, free: 1.766 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.409, allocations: 7.922 kB / 0.5025 GB, free: 1.758 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.409, allocations: 4 kB / 0.5025 GB, free: 1.754 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1898/0.5988, allocations: 2.297 MB / 0.5048 GB, free: 98.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-05/0.5989, allocations: 16.11 kB / 0.5048 GB, free: 98.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008467/0.5998, allocations: 203.4 kB / 0.505 GB, free: 98.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-05/0.5998, allocations: 20.31 kB / 0.505 GB, free: 98.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.437e-05/0.5999, allocations: 26.72 kB / 0.505 GB, free: 98.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.223e-05/0.5999, allocations: 18.84 kB / 0.505 GB, free: 98.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.745e-05/0.5999, allocations: 16.39 kB / 0.505 GB, free: 98.37 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003379/0.6033, allocations: 1.686 MB / 0.5067 GB, free: 97.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002285/0.6035, allocations: 169.5 kB / 0.5069 GB, free: 97.69 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.299e-05/0.6036, allocations: 25.8 kB / 0.5069 GB, free: 97.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005888/0.6042, allocations: 98.02 kB / 0.507 GB, free: 97.69 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002275/0.6045, allocations: 103.5 kB / 0.5071 GB, free: 97.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.324e-05/0.6045, allocations: 33.28 kB / 0.5071 GB, free: 97.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001429/0.6047, allocations: 146.5 kB / 0.5072 GB, free: 97.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.6047, allocations: 2.312 kB / 0.5072 GB, free: 97.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006946/0.6054, allocations: 125.3 kB / 0.5074 GB, free: 97.61 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.0001723/0.6056, allocations: 146.1 kB / 0.5075 GB, free: 97.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003108/0.6087, allocations: 1.198 MB / 0.5087 GB, free: 97.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/0.6087, allocations: 1.844 kB / 0.5087 GB, free: 97.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.6098, allocations: 387.7 kB / 0.509 GB, free: 97.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00128/0.6111, allocations: 147.8 kB / 0.5092 GB, free: 97.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002011/0.6131, allocations: 1.341 MB / 0.5105 GB, free: 96.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002183/0.6134, allocations: 0.8083 MB / 0.5113 GB, free: 95.63 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006049/0.614, allocations: 90.55 kB / 0.5114 GB, free: 95.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002531/0.6142, allocations: 43.33 kB / 0.5114 GB, free: 95.58 MB / 378.7 MB Notification: Performance of SimCode: time 1.473e-06/0.6142, allocations: 0 / 0.5114 GB, free: 95.58 MB / 378.7 MB Notification: Performance of Templates: time 0.01038/0.6246, allocations: 7.31 MB / 0.5186 GB, free: 92.41 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/jenkins1/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