Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009168/0.0009169, allocations: 95.08 kB / 16.3 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009295/0.0009296, allocations: 182.5 kB / 17.2 MB, free: 5.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 223.2 MB / 241.1 MB, free: 14.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003115/0.0003116, allocations: 4 kB / 300.7 MB, free: 6.242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1021, allocations: 50.42 MB / 351.1 MB, free: 3.805 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.002411/0.1046, allocations: 1.902 MB / 353 MB, free: 1.883 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001202/0.1058, allocations: 0.7409 MB / 353.8 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.1059, allocations: 0 / 353.8 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002197/0.1062, allocations: 43.7 kB / 353.8 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001695/0.1063, allocations: 47.89 kB / 353.9 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003844/0.1067, allocations: 127.7 kB / 354 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002724/0.107, allocations: 224 kB / 354.2 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001721/0.1072, allocations: 77.94 kB / 354.3 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001849/0.1074, allocations: 139.5 kB / 354.4 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002223/0.1076, allocations: 139.4 kB / 354.6 MB, free: 364 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.832e-05/0.1077, allocations: 20 kB / 354.6 MB, free: 344 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.868e-05/0.1077, allocations: 16 kB / 354.6 MB, free: 328 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.515e-05/0.1078, allocations: 75.78 kB / 354.7 MB, free: 252 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.326e-05/0.1079, allocations: 65.58 kB / 354.7 MB, free: 180 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002391/0.1081, allocations: 227.7 kB / 355 MB, free: 15.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.1081, allocations: 0 / 355 MB, free: 15.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1081, allocations: 0 / 355 MB, free: 15.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.968e-06/0.1082, allocations: 0 / 355 MB, free: 15.95 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.001102/0.1093, allocations: 0.5887 MB / 355.5 MB, free: 15.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.1093, allocations: 8.031 kB / 355.6 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.87e-05/0.1094, allocations: 35.62 kB / 355.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003815/0.1098, allocations: 270.3 kB / 355.9 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001955/0.11, allocations: 141.6 kB / 356 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.817e-05/0.1101, allocations: 27.98 kB / 356 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/0.1112, allocations: 0.5533 MB / 356.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.1112, allocations: 3.938 kB / 356.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.807e-05/0.1112, allocations: 20 kB / 356.6 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.1113, allocations: 8 kB / 356.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001403/0.1127, allocations: 0.5316 MB / 357.1 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001472/0.1142, allocations: 1.014 MB / 358.2 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00157/0.1157, allocations: 0.503 MB / 358.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.92e-05/0.1158, allocations: 16.27 kB / 358.7 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.1158, allocations: 34.75 kB / 358.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 4.117e-06/0.1158, allocations: 0 / 358.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03834/0.1542, allocations: 6.75 MB / 365.5 MB, free: 5.199 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.848e-05/0.1543, allocations: 156.8 kB / 365.6 MB, free: 5.016 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001932/0.1545, allocations: 199.5 kB / 365.8 MB, free: 4.809 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.94e-05/0.1546, allocations: 37.7 kB / 365.8 MB, free: 4.766 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.747e-05/0.1547, allocations: 141.6 kB / 366 MB, free: 4.625 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001801/0.1549, allocations: 189.3 kB / 366.2 MB, free: 4.438 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.546e-05/0.155, allocations: 11.94 kB / 366.2 MB, free: 4.426 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.1551, allocations: 350.8 kB / 366.5 MB, free: 4.074 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001579/0.1567, allocations: 0.6539 MB / 367.2 MB, free: 3.418 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001625/0.1583, allocations: 0.8353 MB / 368 MB, free: 2.508 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001467/0.1598, allocations: 0.606 MB / 368.6 MB, free: 1.898 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.1598, allocations: 0 / 368.6 MB, free: 1.898 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003349/0.1632, allocations: 1.46 MB / 370.1 MB, free: 444 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.536e-05/0.1632, allocations: 8 kB / 370.1 MB, free: 436 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.1632, allocations: 8 kB / 370.1 MB, free: 428 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.946e-05/0.1633, allocations: 11.98 kB / 370.1 MB, free: 416 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/0.1646, allocations: 231.7 kB / 370.3 MB, free: 184 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.64e-05/0.1646, allocations: 8 kB / 370.3 MB, free: 176 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009048/0.1655, allocations: 127.7 kB / 370.5 MB, free: 48 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.297e-05/0.1656, allocations: 24 kB / 370.5 MB, free: 24 kB / 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.1764/0.3419, allocations: 185.4 kB / 370.7 MB, free: 25.31 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00042/0.3424, allocations: 145.5 kB / 370.8 MB, free: 25.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001869/0.3426, allocations: 62.06 kB / 370.9 MB, free: 25.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.605e-05/0.3426, allocations: 8.469 kB / 370.9 MB, free: 25.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.3426, allocations: 1.562 kB / 370.9 MB, free: 25.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.298e-05/0.3426, allocations: 4.578 kB / 370.9 MB, free: 25.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005161/0.3478, allocations: 2.288 MB / 373.2 MB, free: 24.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.166e-05/0.3478, allocations: 13.03 kB / 373.2 MB, free: 24.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000846/0.3487, allocations: 203.3 kB / 373.4 MB, free: 24.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.686e-05/0.3487, allocations: 15.12 kB / 373.4 MB, free: 24.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.968e-05/0.3488, allocations: 25.78 kB / 373.4 MB, free: 24.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.066e-05/0.3488, allocations: 20.16 kB / 373.4 MB, free: 24.58 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.661e-05/0.3488, allocations: 15.5 kB / 373.5 MB, free: 24.58 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003544/0.3524, allocations: 2.184 MB / 375.6 MB, free: 23.13 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002059/0.3526, allocations: 164 kB / 375.8 MB, free: 23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.055e-05/0.3527, allocations: 31.12 kB / 375.8 MB, free: 22.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006013/0.3533, allocations: 96.14 kB / 375.9 MB, free: 22.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001994/0.3535, allocations: 107.5 kB / 376 MB, free: 22.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.792e-05/0.3536, allocations: 29.5 kB / 376.1 MB, free: 22.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001162/0.3537, allocations: 137.8 kB / 376.2 MB, free: 22.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3537, allocations: 0 / 376.2 MB, free: 22.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006636/0.3544, allocations: 122.1 kB / 376.3 MB, free: 22.82 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.0001494/0.3545, allocations: 137.8 kB / 376.4 MB, free: 22.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002779/0.3573, allocations: 1.188 MB / 377.6 MB, free: 22.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.3573, allocations: 2 kB / 377.6 MB, free: 22.29 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001006/0.3583, allocations: 375.9 kB / 378 MB, free: 22.19 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006059/0.359, allocations: 125.8 kB / 378.1 MB, free: 22.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002221/0.3612, allocations: 1.333 MB / 379.5 MB, free: 21.15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003122/0.3615, allocations: 0.8204 MB / 380.3 MB, free: 20.45 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005546/0.3621, allocations: 90.94 kB / 380.4 MB, free: 20.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002642/0.3623, allocations: 38.62 kB / 380.4 MB, free: 20.4 MB / 302.1 MB Notification: Performance of SimCode: time 1.001e-06/0.3624, allocations: 4 kB / 380.4 MB, free: 20.4 MB / 302.1 MB Notification: Performance of Templates: time 0.01289/0.3752, allocations: 7.232 MB / 387.6 MB, free: 17.98 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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