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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001176/0.001176, allocations: 94.75 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001356/0.001356, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002476/0.0002478, allocations: 4 kB / 306.6 MB, free: 1.469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09886/0.09912, allocations: 51.49 MB / 358.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.002269/0.1014, allocations: 1.919 MB / 360 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001245/0.1027, allocations: 0.7761 MB / 360.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001197/0.1028, allocations: 7.938 kB / 360.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002098/0.1031, allocations: 35.77 kB / 360.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001632/0.1032, allocations: 55.83 kB / 360.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000406/0.1036, allocations: 131.6 kB / 361 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002554/0.1039, allocations: 227.8 kB / 361.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001616/0.1041, allocations: 80.98 kB / 361.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002248/0.1043, allocations: 135.5 kB / 361.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001886/0.1045, allocations: 143.4 kB / 361.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.449e-05/0.1046, allocations: 16 kB / 361.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.051e-05/0.1046, allocations: 20 kB / 361.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.16e-05/0.1047, allocations: 71.78 kB / 361.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.182e-05/0.1048, allocations: 65.58 kB / 361.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002002/0.105, allocations: 223.7 kB / 361.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.105, allocations: 0 / 361.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.105, allocations: 0 / 361.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.105, allocations: 0 / 361.9 MB, free: 10.07 MB / 302.1 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.001057/0.1061, allocations: 0.5848 MB / 362.5 MB, free: 9.434 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.1061, allocations: 12.03 kB / 362.5 MB, free: 9.422 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.107e-05/0.1062, allocations: 35.62 kB / 362.6 MB, free: 9.387 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003243/0.1065, allocations: 266.3 kB / 362.8 MB, free: 9.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001932/0.1067, allocations: 141.6 kB / 363 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.695e-05/0.1068, allocations: 35.95 kB / 363 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/0.108, allocations: 0.5455 MB / 363.5 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.065e-05/0.108, allocations: 4 kB / 363.5 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.943e-05/0.1081, allocations: 12 kB / 363.6 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.337e-06/0.1081, allocations: 11.94 kB / 363.6 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001367/0.1094, allocations: 0.5386 MB / 364.1 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001503/0.111, allocations: 1.014 MB / 365.1 MB, free: 6.664 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001514/0.1125, allocations: 0.5107 MB / 365.6 MB, free: 6.117 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.374e-05/0.1125, allocations: 12.27 kB / 365.6 MB, free: 6.105 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/0.1126, allocations: 42.75 kB / 365.7 MB, free: 6.055 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.234e-06/0.1126, allocations: 0 / 365.7 MB, free: 6.055 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2328/0.3454, allocations: 6.744 MB / 372.4 MB, free: 20.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.3455, allocations: 154.4 kB / 372.6 MB, free: 20 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002619/0.3458, allocations: 194.4 kB / 372.8 MB, free: 19.9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.558e-05/0.3459, allocations: 39.11 kB / 372.8 MB, free: 19.87 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.081e-05/0.346, allocations: 148.1 kB / 373 MB, free: 19.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001855/0.3462, allocations: 193.7 kB / 373.1 MB, free: 19.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.371e-05/0.3463, allocations: 12.25 kB / 373.2 MB, free: 19.65 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.207e-05/0.3464, allocations: 343 kB / 373.5 MB, free: 19.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001979/0.3483, allocations: 0.6495 MB / 374.1 MB, free: 19.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002113/0.3505, allocations: 0.8274 MB / 375 MB, free: 19.14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001686/0.3522, allocations: 0.6061 MB / 375.6 MB, free: 18.92 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/0.3522, allocations: 1.594 kB / 375.6 MB, free: 18.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.004071/0.3563, allocations: 1.468 MB / 377 MB, free: 18.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.186e-05/0.3563, allocations: 6.875 kB / 377.1 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.3563, allocations: 5.5 kB / 377.1 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.674e-05/0.3564, allocations: 10.28 kB / 377.1 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001401/0.3578, allocations: 239.3 kB / 377.3 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.218e-05/0.3578, allocations: 10.22 kB / 377.3 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/0.3588, allocations: 121 kB / 377.4 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.187e-05/0.3589, allocations: 34.39 kB / 377.5 MB, free: 18.29 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0003152/0.3592, allocations: 177.1 kB / 377.6 MB, free: 18.13 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003094/0.3595, allocations: 149.6 kB / 377.8 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001672/0.3597, allocations: 67.72 kB / 377.8 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/0.3598, allocations: 7.625 kB / 377.9 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.938e-05/0.3598, allocations: 4.969 kB / 377.9 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/0.3598, allocations: 6.047 kB / 377.9 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005028/0.3648, allocations: 2.284 MB / 380.1 MB, free: 16.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.378e-05/0.3649, allocations: 9.062 kB / 380.2 MB, free: 16.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007754/0.3656, allocations: 209.6 kB / 380.4 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.971e-05/0.3657, allocations: 16.25 kB / 380.4 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.991e-05/0.3657, allocations: 23.42 kB / 380.4 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.006e-05/0.3658, allocations: 20 kB / 380.4 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-05/0.3658, allocations: 15.22 kB / 380.4 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003314/0.3691, allocations: 2.18 MB / 382.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001991/0.3693, allocations: 164.9 kB / 382.8 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.558e-05/0.3694, allocations: 26.02 kB / 382.8 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006372/0.3701, allocations: 99.31 kB / 382.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002243/0.3703, allocations: 103.5 kB / 383 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.499e-05/0.3704, allocations: 30.08 kB / 383 MB, free: 14.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001414/0.3705, allocations: 142.3 kB / 383.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3705, allocations: 1.031 kB / 383.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007333/0.3713, allocations: 121.7 kB / 383.3 MB, free: 14.75 MB / 302.1 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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.000156/0.3714, allocations: 141.4 kB / 383.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003047/0.3745, allocations: 1.186 MB / 384.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.3745, allocations: 1.281 kB / 384.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001086/0.3756, allocations: 373.3 kB / 385 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006597/0.3763, allocations: 134.3 kB / 385.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002233/0.3785, allocations: 1.316 MB / 386.4 MB, free: 13.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003409/0.3789, allocations: 0.8283 MB / 387.3 MB, free: 12.35 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005764/0.3794, allocations: 94.64 kB / 387.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000263/0.3797, allocations: 37.83 kB / 387.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3797, allocations: 1.406 kB / 387.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of Templates: time 0.01195/0.3917, allocations: 7.242 MB / 394.6 MB, free: 9.281 MB / 302.1 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