Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007718/0.0007718, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008768/0.0008768, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8961/0.8961, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.793e-05/1.97e-05, allocations: 4.672 kB / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.002521/0.002541, allocations: 2.254 MB / 326.8 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001108/0.003649, allocations: 0.7714 MB / 327.6 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001475/0.003796, allocations: 7.938 kB / 327.6 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002714/0.004068, allocations: 51.58 kB / 327.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001774/0.004245, allocations: 71.42 kB / 327.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003752/0.00462, allocations: 175.4 kB / 327.9 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003375/0.004958, allocations: 379.5 kB / 328.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001617/0.00512, allocations: 68.39 kB / 328.3 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004804/0.0056, allocations: 227.5 kB / 328.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002309/0.005831, allocations: 143.6 kB / 328.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.467e-05/0.005886, allocations: 36 kB / 328.7 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.38e-05/0.005919, allocations: 32 kB / 328.7 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.788e-05/0.006017, allocations: 95.7 kB / 328.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.054e-05/0.006098, allocations: 107.7 kB / 328.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002975/0.006395, allocations: 350.9 kB / 329.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.006399, allocations: 0 / 329.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.0064, allocations: 0 / 329.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.006405, allocations: 0 / 329.3 MB, free: 11.2 MB / 298.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.0008122/0.007217, allocations: 0.5473 MB / 329.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.007256, allocations: 8.031 kB / 329.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.642e-05/0.007313, allocations: 74.72 kB / 329.9 MB, free: 10.53 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.542e-05/0.007368, allocations: 36.75 kB / 329.9 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003054/0.007674, allocations: 212.2 kB / 330.1 MB, free: 10.26 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001896/0.007863, allocations: 347.9 kB / 330.5 MB, free: 9.855 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.038e-05/0.007904, allocations: 28.33 kB / 330.5 MB, free: 9.828 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007567/0.00866, allocations: 0.5549 MB / 331.1 MB, free: 9.242 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.008677, allocations: 4 kB / 331.1 MB, free: 9.238 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.505e-05/0.008702, allocations: 12 kB / 331.1 MB, free: 9.227 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.008709, allocations: 8 kB / 331.1 MB, free: 9.219 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007873/0.009497, allocations: 0.5113 MB / 331.6 MB, free: 8.707 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009669/0.01046, allocations: 0.8941 MB / 332.5 MB, free: 7.754 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008441/0.01131, allocations: 471.6 kB / 333 MB, free: 7.258 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004278/0.01174, allocations: 239.4 kB / 333.2 MB, free: 7.012 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.121e-05/0.01178, allocations: 11.92 kB / 333.2 MB, free: 7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.236e-05/0.0118, allocations: 38.97 kB / 333.2 MB, free: 6.953 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 2.825e-06/0.0118, allocations: 3.938 kB / 333.2 MB, free: 6.949 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.01812/0.02992, allocations: 5.744 MB / 339 MB, free: 1.199 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.03002, allocations: 149 kB / 339.1 MB, free: 1.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002/0.03022, allocations: 207.1 kB / 339.3 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.932e-05/0.03028, allocations: 37.7 kB / 339.4 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.569e-05/0.03036, allocations: 141.8 kB / 339.5 MB, free: 0.625 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.0305, allocations: 198.3 kB / 339.7 MB, free: 440 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001764/0.03067, allocations: 90.34 kB / 339.8 MB, free: 344 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.781e-05/0.03077, allocations: 338.8 kB / 340.1 MB, free: 16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008967/0.03167, allocations: 0.6102 MB / 340.7 MB, free: 15.39 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009285/0.0326, allocations: 0.6898 MB / 341.4 MB, free: 14.67 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00166/0.03426, allocations: 1.122 MB / 342.5 MB, free: 13.52 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.03426, allocations: 0 / 342.5 MB, free: 13.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001957/0.03622, allocations: 1.298 MB / 343.8 MB, free: 12.21 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.03624, allocations: 8 kB / 343.9 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.03625, allocations: 0 / 343.9 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.06e-05/0.03627, allocations: 4 kB / 343.9 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006103/0.03688, allocations: 183.7 kB / 344 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.689e-06/0.03689, allocations: 8 kB / 344 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004052/0.0373, allocations: 91.83 kB / 344.1 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.658e-05/0.03734, allocations: 19.98 kB / 344.2 MB, free: 11.91 MB / 314.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.0002396/0.03758, allocations: 165.7 kB / 344.3 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002012/0.03778, allocations: 153.8 kB / 344.5 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.9e-05/0.03788, allocations: 67.31 kB / 344.5 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.962e-06/0.03789, allocations: 8.094 kB / 344.5 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.325e-06/0.0379, allocations: 7.938 kB / 344.5 MB, free: 11.49 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.0379, allocations: 11.92 kB / 344.6 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002803/0.04071, allocations: 1.964 MB / 346.5 MB, free: 9.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.273e-06/0.04071, allocations: 8 kB / 346.5 MB, free: 9.332 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003901/0.0411, allocations: 192.5 kB / 346.7 MB, free: 9.145 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.088e-05/0.04112, allocations: 12 kB / 346.7 MB, free: 9.133 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.406e-05/0.04115, allocations: 31.92 kB / 346.8 MB, free: 9.102 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.123e-05/0.04116, allocations: 15.94 kB / 346.8 MB, free: 9.086 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.234e-06/0.04117, allocations: 15.94 kB / 346.8 MB, free: 9.07 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001862/0.04303, allocations: 1.55 MB / 348.3 MB, free: 7.367 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001375/0.04317, allocations: 99.69 kB / 348.4 MB, free: 7.27 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.367e-05/0.04321, allocations: 27.94 kB / 348.5 MB, free: 7.242 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003129/0.04352, allocations: 79.91 kB / 348.5 MB, free: 7.164 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001468/0.04367, allocations: 95.64 kB / 348.6 MB, free: 7.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.087e-05/0.0437, allocations: 28 kB / 348.7 MB, free: 7.043 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.26e-05/0.04379, allocations: 152.3 kB / 348.8 MB, free: 6.895 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.04379, allocations: 0 / 348.8 MB, free: 6.895 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004209/0.04422, allocations: 124 kB / 348.9 MB, free: 6.773 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.002094/0.04631, allocations: 2.122 MB / 351.1 MB, free: 4.492 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001603/0.04791, allocations: 0.9986 MB / 352.1 MB, free: 3.484 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/0.04792, allocations: 3.938 kB / 352.1 MB, free: 3.48 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005763/0.04849, allocations: 342.2 kB / 352.4 MB, free: 3.148 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006231/0.04912, allocations: 136.8 kB / 352.5 MB, free: 3.016 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007699/0.05681, allocations: 6.395 MB / 358.9 MB, free: 12.22 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001663/0.05698, allocations: 211.3 kB / 359.1 MB, free: 11.99 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003223/0.0573, allocations: 91.17 kB / 359.2 MB, free: 11.9 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000266/0.05757, allocations: 116.4 kB / 359.3 MB, free: 11.79 MB / 330.7 MB Notification: Performance of SimCode: time 1.092e-06/0.05757, allocations: 4 kB / 359.3 MB, free: 11.79 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02734/0.08491, allocations: 12.46 MB / 371.8 MB, free: 15.5 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.045/7.13, allocations: 8 kB / 371.8 MB, free: 15.5 MB / 346.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.863800679333508]