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.0009244/0.0009242, allocations: 171.8 kB / 16.8 MB, free: 5 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.473/1.473, allocations: 205.4 MB / 223 MB, free: 9.023 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.0007439/0.0007438, allocations: 85.17 kB / 271.3 MB, free: 8.254 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.07273/0.07273, allocations: 12.6 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004308/0.000431, allocations: 16 kB / 393.2 MB, free: 65.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09233/0.09278, allocations: 50.38 MB / 443.6 MB, free: 15.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3152/0.408, allocations: 82.06 MB / 0.5133 GB, free: 12.64 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002084/0.4082, allocations: 71.12 kB / 0.5134 GB, free: 12.63 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01613/0.4244, allocations: 6.443 MB / 0.5197 GB, free: 8.316 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.4244, allocations: 0 / 0.5197 GB, free: 8.316 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.583e-05/0.4245, allocations: 8 kB / 0.5197 GB, free: 8.309 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.0009248/0.4254, allocations: 0.5935 MB / 0.5203 GB, free: 7.688 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.4254, allocations: 8.031 kB / 0.5203 GB, free: 7.68 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.583e-05/0.4255, allocations: 40.56 kB / 0.5203 GB, free: 7.641 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003054/0.4258, allocations: 272.8 kB / 0.5206 GB, free: 7.355 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002147/0.4261, allocations: 144 kB / 0.5207 GB, free: 7.211 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.926e-05/0.4262, allocations: 30.56 kB / 0.5208 GB, free: 7.191 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/0.4272, allocations: 0.5601 MB / 0.5213 GB, free: 6.738 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.625e-05/0.4273, allocations: 7.031 kB / 0.5213 GB, free: 6.734 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.245e-05/0.4273, allocations: 10.31 kB / 0.5213 GB, free: 6.73 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.4273, allocations: 11.94 kB / 0.5213 GB, free: 6.719 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001215/0.4285, allocations: 0.5421 MB / 0.5219 GB, free: 6.301 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001272/0.4298, allocations: 1.015 MB / 0.5229 GB, free: 5.398 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001288/0.4311, allocations: 0.4981 MB / 0.5233 GB, free: 4.973 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000565/0.4317, allocations: 279.3 kB / 0.5236 GB, free: 4.762 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.545e-05/0.4318, allocations: 4 kB / 0.5236 GB, free: 4.758 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.045e-05/0.4318, allocations: 46.48 kB / 0.5237 GB, free: 4.707 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 2.455e-06/0.4318, allocations: 0 / 0.5237 GB, free: 4.707 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.03439/0.4662, allocations: 6.776 MB / 0.5303 GB, free: 14.65 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.4664, allocations: 140.3 kB / 0.5304 GB, free: 14.49 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002765/0.4667, allocations: 199.4 kB / 0.5306 GB, free: 14.31 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.823e-05/0.4668, allocations: 44.83 kB / 0.5306 GB, free: 14.27 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.542e-05/0.4669, allocations: 147.9 kB / 0.5308 GB, free: 14.14 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000201/0.4671, allocations: 190.6 kB / 0.531 GB, free: 13.98 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.298e-05/0.4671, allocations: 18.56 kB / 0.531 GB, free: 13.97 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.4673, allocations: 337.3 kB / 0.5313 GB, free: 13.65 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001518/0.4688, allocations: 0.6617 MB / 0.5319 GB, free: 13.23 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001674/0.4705, allocations: 0.8339 MB / 0.5328 GB, free: 12.57 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00319/0.4737, allocations: 1.34 MB / 0.5341 GB, free: 11.59 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.4737, allocations: 0 / 0.5341 GB, free: 11.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003565/0.4773, allocations: 1.478 MB / 0.5355 GB, free: 10.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/0.4773, allocations: 9.719 kB / 0.5355 GB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.4774, allocations: 4 kB / 0.5355 GB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.479e-05/0.4774, allocations: 12 kB / 0.5355 GB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/0.4787, allocations: 229.1 kB / 0.5358 GB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.603e-05/0.4787, allocations: 19.92 kB / 0.5358 GB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009251/0.4797, allocations: 118.2 kB / 0.5359 GB, free: 10.22 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.855e-05/0.4798, allocations: 33.73 kB / 0.5359 GB, free: 10.19 MB / 346.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.000337/0.4801, allocations: 191 kB / 0.5361 GB, free: 10.03 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002983/0.4804, allocations: 149.9 kB / 0.5362 GB, free: 9.906 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001411/0.4806, allocations: 63.66 kB / 0.5363 GB, free: 9.895 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/0.4806, allocations: 8 kB / 0.5363 GB, free: 9.887 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.819e-06/0.4806, allocations: 3.938 kB / 0.5363 GB, free: 9.883 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-06/0.4806, allocations: 3.984 kB / 0.5363 GB, free: 9.879 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004736/0.4853, allocations: 2.3 MB / 0.5386 GB, free: 7.824 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-05/0.4854, allocations: 16 kB / 0.5386 GB, free: 7.809 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007778/0.4862, allocations: 203.3 kB / 0.5388 GB, free: 7.613 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.83e-05/0.4862, allocations: 15.94 kB / 0.5388 GB, free: 7.598 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.297e-05/0.4863, allocations: 26.44 kB / 0.5388 GB, free: 7.582 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-05/0.4863, allocations: 27.92 kB / 0.5388 GB, free: 7.555 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-05/0.4863, allocations: 11.94 kB / 0.5389 GB, free: 7.543 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00318/0.4895, allocations: 1.677 MB / 0.5405 GB, free: 6.023 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002213/0.4897, allocations: 162.3 kB / 0.5406 GB, free: 5.867 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.157e-05/0.4898, allocations: 34.98 kB / 0.5407 GB, free: 5.844 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006205/0.4904, allocations: 95.11 kB / 0.5408 GB, free: 5.758 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002246/0.4907, allocations: 109.7 kB / 0.5409 GB, free: 5.668 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.695e-05/0.4907, allocations: 31.69 kB / 0.5409 GB, free: 5.641 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001449/0.4909, allocations: 142.4 kB / 0.541 GB, free: 5.52 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4909, allocations: 4 kB / 0.541 GB, free: 5.516 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006993/0.4916, allocations: 128.9 kB / 0.5412 GB, free: 5.41 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 () * 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.0001953/0.4918, allocations: 141.5 kB / 0.5413 GB, free: 5.27 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002786/0.4946, allocations: 1.196 MB / 0.5425 GB, free: 4.445 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/0.4946, allocations: 5.188 kB / 0.5425 GB, free: 4.441 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/0.4956, allocations: 386.1 kB / 0.5428 GB, free: 4.121 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001015/0.4967, allocations: 140.7 kB / 0.543 GB, free: 4.023 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002662/0.4993, allocations: 1.347 MB / 0.5443 GB, free: 2.656 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004543/0.4998, allocations: 0.817 MB / 0.5451 GB, free: 1.816 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006421/0.5005, allocations: 87.38 kB / 0.5452 GB, free: 1.73 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002749/0.5007, allocations: 39.42 kB / 0.5452 GB, free: 1.691 MB / 346.7 MB Notification: Performance of SimCode: time 1.102e-06/0.5008, allocations: 0 / 0.5452 GB, free: 1.691 MB / 346.7 MB Notification: Performance of Templates: time 0.01354/0.5143, allocations: 7.327 MB / 0.5524 GB, free: 10.37 MB / 362.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/jenkins1/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