Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00122/0.00122, allocations: 182.1 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.795/1.795, allocations: 205.2 MB / 219 MB, free: 9.207 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008442/0.000844, allocations: 92.45 kB / 267.1 MB, free: 9.289 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08856/0.08856, allocations: 12.59 MB / 327.8 MB, free: 12.5 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.565e-05/3.574e-05, allocations: 4 kB / 386 MB, free: 69.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09819/0.09824, allocations: 50.37 MB / 436.4 MB, free: 19.24 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3068/0.4051, allocations: 81.92 MB / 0.5061 GB, free: 11.97 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001891/0.4053, allocations: 69 kB / 0.5062 GB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01612/0.4215, allocations: 6.43 MB / 0.5125 GB, free: 9.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.4215, allocations: 0 / 0.5125 GB, free: 9.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.223e-05/0.4215, allocations: 3.844 kB / 0.5125 GB, free: 9.52 MB / 330.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.0008543/0.4224, allocations: 0.5683 MB / 0.513 GB, free: 9.059 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.4224, allocations: 11.72 kB / 0.5131 GB, free: 9.055 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.772e-05/0.4225, allocations: 38.69 kB / 0.5131 GB, free: 9.039 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002765/0.4228, allocations: 270.8 kB / 0.5133 GB, free: 8.789 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001639/0.423, allocations: 147 kB / 0.5135 GB, free: 8.68 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.37e-05/0.423, allocations: 26.88 kB / 0.5135 GB, free: 8.68 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006617/0.4237, allocations: 499.6 kB / 0.514 GB, free: 8.504 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/0.4237, allocations: 0 / 0.514 GB, free: 8.504 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.204e-05/0.4238, allocations: 14.47 kB / 0.514 GB, free: 8.5 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.4238, allocations: 11.78 kB / 0.514 GB, free: 8.496 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005418/0.4243, allocations: 416.7 kB / 0.5144 GB, free: 8.453 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001194/0.4255, allocations: 1.008 MB / 0.5154 GB, free: 7.754 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008287/0.4264, allocations: 414.6 kB / 0.5158 GB, free: 7.621 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002486/0.4266, allocations: 213.2 kB / 0.516 GB, free: 7.574 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.066e-05/0.4267, allocations: 15.34 kB / 0.516 GB, free: 7.57 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.74e-05/0.4267, allocations: 45.41 kB / 0.5161 GB, free: 7.527 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 1.944e-06/0.4267, allocations: 0 / 0.5161 GB, free: 7.527 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.007122/0.4338, allocations: 2.087 MB / 0.5181 GB, free: 6.906 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.248e-05/0.4339, allocations: 148 kB / 0.5182 GB, free: 6.734 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001753/0.4341, allocations: 174.8 kB / 0.5184 GB, free: 6.582 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.645e-05/0.4342, allocations: 36.02 kB / 0.5184 GB, free: 6.551 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.6e-05/0.4342, allocations: 147.4 kB / 0.5186 GB, free: 6.414 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001277/0.4344, allocations: 193.3 kB / 0.5188 GB, free: 6.254 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.872e-05/0.4344, allocations: 11.25 kB / 0.5188 GB, free: 6.254 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.656e-05/0.4345, allocations: 341.1 kB / 0.5191 GB, free: 5.926 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005974/0.4351, allocations: 481.6 kB / 0.5196 GB, free: 5.695 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006606/0.4358, allocations: 0.64 MB / 0.5202 GB, free: 5.234 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005555/0.4363, allocations: 435.5 kB / 0.5206 GB, free: 4.988 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.696e-06/0.4364, allocations: 8 kB / 0.5206 GB, free: 4.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001479/0.4378, allocations: 1.109 MB / 0.5217 GB, free: 4.312 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.4379, allocations: 8 kB / 0.5217 GB, free: 4.305 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.4379, allocations: 4 kB / 0.5217 GB, free: 4.301 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.4379, allocations: 12 kB / 0.5217 GB, free: 4.289 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/0.4392, allocations: 235.2 kB / 0.5219 GB, free: 4.066 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.503e-05/0.4393, allocations: 12 kB / 0.5219 GB, free: 4.055 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009347/0.4402, allocations: 126.4 kB / 0.5221 GB, free: 3.941 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.82e-05/0.4403, allocations: 23.88 kB / 0.5221 GB, free: 3.922 MB / 330.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 () * 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.0001927/0.4405, allocations: 155.2 kB / 0.5222 GB, free: 3.785 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002534/0.4408, allocations: 143.8 kB / 0.5224 GB, free: 3.66 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001704/0.4409, allocations: 68.64 kB / 0.5224 GB, free: 3.645 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.441, allocations: 12 kB / 0.5224 GB, free: 3.633 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.441, allocations: 3.953 kB / 0.5225 GB, free: 3.629 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.441, allocations: 3.984 kB / 0.5225 GB, free: 3.625 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003113/0.4441, allocations: 2.012 MB / 0.5244 GB, free: 1.852 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.4441, allocations: 12.22 kB / 0.5244 GB, free: 1.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007455/0.4449, allocations: 203.5 kB / 0.5246 GB, free: 1.645 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.619e-05/0.4449, allocations: 20 kB / 0.5246 GB, free: 1.625 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.997e-05/0.445, allocations: 27.38 kB / 0.5247 GB, free: 1.609 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.11e-05/0.445, allocations: 23.92 kB / 0.5247 GB, free: 1.586 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.358e-06/0.445, allocations: 19.89 kB / 0.5247 GB, free: 1.566 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001553/0.4466, allocations: 1.747 MB / 0.5264 GB, free: 15.72 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002298/0.4468, allocations: 170.6 kB / 0.5266 GB, free: 15.56 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.065e-05/0.4469, allocations: 26.06 kB / 0.5266 GB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006337/0.4475, allocations: 97.41 kB / 0.5267 GB, free: 15.46 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002036/0.4477, allocations: 106.7 kB / 0.5268 GB, free: 15.37 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.976e-05/0.4478, allocations: 30.19 kB / 0.5268 GB, free: 15.34 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001332/0.4479, allocations: 149.2 kB / 0.527 GB, free: 15.21 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4479, allocations: 0 / 0.527 GB, free: 15.21 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000652/0.4486, allocations: 124.1 kB / 0.5271 GB, free: 15.11 MB / 346.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 () * 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.000176/0.4488, allocations: 134.9 kB / 0.5272 GB, free: 14.98 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001283/0.4501, allocations: 0.8776 MB / 0.5281 GB, free: 14.48 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.4501, allocations: 0 / 0.5281 GB, free: 14.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004227/0.4505, allocations: 238.3 kB / 0.5283 GB, free: 14.3 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005517/0.4511, allocations: 115.2 kB / 0.5284 GB, free: 14.22 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001822/0.4529, allocations: 0.9658 MB / 0.5294 GB, free: 13.23 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003791/0.4533, allocations: 0.8171 MB / 0.5302 GB, free: 12.39 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005897/0.4539, allocations: 103.3 kB / 0.5303 GB, free: 12.29 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003122/0.4542, allocations: 35.44 kB / 0.5303 GB, free: 12.26 MB / 346.7 MB Notification: Performance of SimCode: time 5.01e-07/0.4542, allocations: 3.938 kB / 0.5303 GB, free: 12.25 MB / 346.7 MB Notification: Performance of Templates: time 0.01195/0.4662, allocations: 7.306 MB / 0.5374 GB, free: 4.969 MB / 346.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:PI.y,Time,angle.phi,gain.y,speed.w Variables in the result:PI.T,PI.k,PI.y,angle.phi,gain.k,gain.y,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.w,periodicRealClock.period,periodicRealClock.useSolver,speed.flange.phi,speed.w,super.factor,super.inferFactor,time