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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008576/0.0008576, allocations: 76.08 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009464/0.0009464, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8988/0.8988, allocations: 173.4 MB / 200.5 MB, free: 9.449 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 318.4 MB, free: 6.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.499e-05/1.66e-05, allocations: 6.219 kB / 318.4 MB, free: 6.402 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.002975/0.002992, allocations: 2.225 MB / 320.6 MB, free: 4.16 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001018/0.00401, allocations: 0.7402 MB / 321.4 MB, free: 3.414 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.004131, allocations: 11.94 kB / 321.4 MB, free: 3.402 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002382/0.004369, allocations: 51.52 kB / 321.4 MB, free: 3.352 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001651/0.004534, allocations: 59.56 kB / 321.5 MB, free: 3.293 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003507/0.004885, allocations: 183.4 kB / 321.7 MB, free: 3.113 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002787/0.005163, allocations: 383.5 kB / 322.1 MB, free: 2.738 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001413/0.005305, allocations: 67.84 kB / 322.1 MB, free: 2.668 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000332/0.005637, allocations: 215.5 kB / 322.3 MB, free: 2.457 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.005789, allocations: 143.6 kB / 322.5 MB, free: 2.316 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.246e-05/0.005831, allocations: 32 kB / 322.5 MB, free: 2.285 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.154e-05/0.005863, allocations: 36 kB / 322.5 MB, free: 2.25 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.963e-05/0.005942, allocations: 103.6 kB / 322.6 MB, free: 2.148 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.277e-05/0.006015, allocations: 99.77 kB / 322.7 MB, free: 2.051 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002742/0.006289, allocations: 358.8 kB / 323.1 MB, free: 1.699 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.006291, allocations: 4 kB / 323.1 MB, free: 1.695 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.006293, allocations: 0 / 323.1 MB, free: 1.695 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.006298, allocations: 0 / 323.1 MB, free: 1.695 MB / 282.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.0007972/0.007095, allocations: 0.5405 MB / 323.6 MB, free: 1.125 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.007132, allocations: 12.92 kB / 323.6 MB, free: 1.113 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.28e-05/0.007185, allocations: 66.72 kB / 323.7 MB, free: 1.039 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.37e-05/0.007238, allocations: 40.75 kB / 323.7 MB, free: 1 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/0.007499, allocations: 205.8 kB / 323.9 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001769/0.007676, allocations: 347.9 kB / 324.3 MB, free: 376 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.923e-05/0.007715, allocations: 32.38 kB / 324.3 MB, free: 344 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007504/0.008466, allocations: 0.561 MB / 324.9 MB, free: 15.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.00848, allocations: 0 / 324.9 MB, free: 15.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.728e-05/0.008507, allocations: 20 kB / 324.9 MB, free: 15.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.822e-06/0.008514, allocations: 4 kB / 324.9 MB, free: 15.72 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007845/0.009299, allocations: 0.5191 MB / 325.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/0.01037, allocations: 0.8831 MB / 326.3 MB, free: 14.26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000828/0.0112, allocations: 466.6 kB / 326.8 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003545/0.01155, allocations: 235.4 kB / 327 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.301e-05/0.01159, allocations: 8 kB / 327 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.947e-05/0.01161, allocations: 46.5 kB / 327 MB, free: 13.46 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.563e-06/0.01161, allocations: 0 / 327 MB, free: 13.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.01881/0.03042, allocations: 5.738 MB / 332.8 MB, free: 7.707 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.76e-05/0.03051, allocations: 157 kB / 332.9 MB, free: 7.523 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001944/0.0307, allocations: 198.7 kB / 333.1 MB, free: 7.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.028e-05/0.03076, allocations: 37.7 kB / 333.2 MB, free: 7.277 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.755e-05/0.03083, allocations: 141.7 kB / 333.3 MB, free: 7.137 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001998/0.03103, allocations: 194.3 kB / 333.5 MB, free: 6.945 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001816/0.03121, allocations: 98.28 kB / 333.6 MB, free: 6.844 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.174e-05/0.0313, allocations: 334.8 kB / 333.9 MB, free: 6.508 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009025/0.03221, allocations: 0.6064 MB / 334.5 MB, free: 5.902 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009941/0.0332, allocations: 0.6937 MB / 335.2 MB, free: 5.18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001617/0.03482, allocations: 1.115 MB / 336.3 MB, free: 4.039 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.03482, allocations: 0 / 336.3 MB, free: 4.039 MB / 298.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001897/0.03672, allocations: 1.305 MB / 337.6 MB, free: 2.727 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.03674, allocations: 4 kB / 337.6 MB, free: 2.723 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.03675, allocations: 4.219 kB / 337.6 MB, free: 2.719 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.946e-05/0.03677, allocations: 8 kB / 337.7 MB, free: 2.711 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005799/0.03735, allocations: 171.8 kB / 337.8 MB, free: 2.543 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.03736, allocations: 7.938 kB / 337.8 MB, free: 2.535 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000396/0.03775, allocations: 91.81 kB / 337.9 MB, free: 2.445 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.514e-05/0.0378, allocations: 28 kB / 337.9 MB, free: 2.418 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002063/0.03801, allocations: 169.6 kB / 338.1 MB, free: 2.242 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001945/0.0382, allocations: 157.4 kB / 338.3 MB, free: 2.082 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.742e-05/0.0383, allocations: 63.3 kB / 338.3 MB, free: 2.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.0383, allocations: 8 kB / 338.3 MB, free: 2.012 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.03831, allocations: 4 kB / 338.3 MB, free: 2.008 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.03832, allocations: 7.922 kB / 338.3 MB, free: 2 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002819/0.04114, allocations: 1.961 MB / 340.3 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.04114, allocations: 16.34 kB / 340.3 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003722/0.04152, allocations: 183.7 kB / 340.5 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.087e-06/0.04153, allocations: 16 kB / 340.5 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.169e-05/0.04156, allocations: 31.88 kB / 340.5 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.358e-06/0.04157, allocations: 23.92 kB / 340.6 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.664e-06/0.04157, allocations: 15.94 kB / 340.6 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001816/0.04339, allocations: 1.558 MB / 342.1 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001363/0.04353, allocations: 87.69 kB / 342.2 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.226e-05/0.04357, allocations: 31.92 kB / 342.3 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003104/0.04388, allocations: 75.92 kB / 342.3 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/0.04402, allocations: 103.7 kB / 342.4 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.826e-05/0.04405, allocations: 32 kB / 342.5 MB, free: 13.54 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.8e-05/0.04413, allocations: 152.2 kB / 342.6 MB, free: 13.39 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04413, allocations: 0 / 342.6 MB, free: 13.39 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004013/0.04454, allocations: 116 kB / 342.7 MB, free: 13.28 MB / 314.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002012/0.04655, allocations: 2.134 MB / 344.9 MB, free: 10.98 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001697/0.04824, allocations: 0.9869 MB / 345.9 MB, free: 9.996 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.04825, allocations: 4 kB / 345.9 MB, free: 9.992 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005699/0.04882, allocations: 346.3 kB / 346.2 MB, free: 9.656 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006075/0.04943, allocations: 127.2 kB / 346.3 MB, free: 9.535 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0079/0.05733, allocations: 6.407 MB / 352.7 MB, free: 2.73 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000174/0.0575, allocations: 211.2 kB / 352.9 MB, free: 2.508 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003382/0.05784, allocations: 91.19 kB / 353 MB, free: 2.414 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002882/0.05813, allocations: 116.5 kB / 353.1 MB, free: 2.301 MB / 314.7 MB Notification: Performance of SimCode: time 1.583e-06/0.05813, allocations: 0 / 353.1 MB, free: 2.301 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0267/0.08483, allocations: 12.46 MB / 365.6 MB, free: 6.02 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.941/7.026, allocations: 7.203 kB / 365.6 MB, free: 6.016 MB / 330.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 52.5] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.k,PI.u,PI.x,PI.y,angle.flange.phi,angle.flange.tau,angle.phi,der(load.w),der(speed.flange.phi),feedback1.u1,feedback1.u2,feedback1.y,feedback2.u1,feedback2.u2,feedback2.y,gain.k,gain.u,gain.y,hold1.u,hold1.y,hold1.y_start,kinematicPTP.endTime,kinematicPTP.moving[1],kinematicPTP.nout,kinematicPTP.q[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd[1],kinematicPTP.qd_max[1],kinematicPTP.qdd[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.a,load.flange_a.phi,load.flange_a.tau,load.flange_b.phi,load.flange_b.tau,load.phi,load.stateSelect,load.w,periodicRealClock.period,periodicRealClock.useSolver,previous(PI.x),sample1.u,sample1.y,sample2.u,sample2.y,sample3.u,sample3.y,speed.flange.phi,speed.flange.tau,speed.w,super.factor,super.inferFactor,super.u,super.y,time,torque.flange.phi,torque.flange.tau,torque.tau,torque.useSupport [Calling sys.exit(0), Time elapsed: 8.800760361365974]