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.001286/0.001286, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 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.001358/0.001358, allocations: 191.5 kB / 24.51 MB, free: 4.086 MB / 14.72 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 1.443/1.443, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 47.92 kB / 371.2 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2753, allocations: 52.19 MB / 423.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004194/0.2795, allocations: 2.35 MB / 425.8 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001649/0.2811, allocations: 0.7794 MB / 426.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001764/0.2813, allocations: 7.938 kB / 426.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003084/0.2816, allocations: 55.56 kB / 426.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002088/0.2818, allocations: 59.56 kB / 426.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005333/0.2824, allocations: 167.6 kB / 426.8 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000458/0.2828, allocations: 375.6 kB / 427.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001969/0.283, allocations: 67.8 kB / 427.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002802/0.2833, allocations: 171.4 kB / 427.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002881/0.2836, allocations: 171.3 kB / 427.6 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.446e-05/0.2836, allocations: 36 kB / 427.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.303e-05/0.2837, allocations: 32 kB / 427.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001291/0.2838, allocations: 99.72 kB / 427.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001564/0.284, allocations: 143.3 kB / 427.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004675/0.2844, allocations: 327.4 kB / 428.2 MB, free: 9.805 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2844, allocations: 0 / 428.2 MB, free: 9.805 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2844, allocations: 0 / 428.2 MB, free: 9.805 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.75e-06/0.2845, allocations: 0 / 428.2 MB, free: 9.805 MB / 334.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.001332/0.2858, allocations: 0.5522 MB / 428.8 MB, free: 9.223 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.2858, allocations: 12.03 kB / 428.8 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.546e-05/0.2859, allocations: 12.69 kB / 428.8 MB, free: 9.199 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.786e-05/0.2859, allocations: 70.72 kB / 428.9 MB, free: 9.121 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.321e-05/0.286, allocations: 36.75 kB / 428.9 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004875/0.2865, allocations: 206.5 kB / 429.1 MB, free: 8.859 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003587/0.2869, allocations: 351.9 kB / 429.4 MB, free: 8.449 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.732e-05/0.2869, allocations: 28.12 kB / 429.5 MB, free: 8.422 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001285/0.2882, allocations: 0.5576 MB / 430 MB, free: 7.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.2882, allocations: 0 / 430 MB, free: 7.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.703e-05/0.2883, allocations: 12 kB / 430 MB, free: 7.828 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.2883, allocations: 8 kB / 430 MB, free: 7.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001457/0.2897, allocations: 0.5113 MB / 430.5 MB, free: 7.309 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00167/0.2914, allocations: 0.949 MB / 431.5 MB, free: 6.293 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001694/0.2931, allocations: 482.5 kB / 432 MB, free: 5.785 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006864/0.2938, allocations: 235.3 kB / 432.2 MB, free: 5.543 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.431e-05/0.2939, allocations: 12.12 kB / 432.2 MB, free: 5.531 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.984e-05/0.2939, allocations: 38.56 kB / 432.2 MB, free: 5.484 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.705e-06/0.2939, allocations: 4 kB / 432.3 MB, free: 5.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03931/0.3332, allocations: 5.726 MB / 438 MB, free: 15.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001497/0.3334, allocations: 141 kB / 438.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002887/0.3337, allocations: 191.3 kB / 438.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.418e-05/0.3338, allocations: 41.69 kB / 438.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.3339, allocations: 145.7 kB / 438.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002428/0.3341, allocations: 202.3 kB / 438.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003181/0.3345, allocations: 110.7 kB / 438.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001897/0.3347, allocations: 342.8 kB / 439.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001693/0.3363, allocations: 0.6148 MB / 439.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001868/0.3382, allocations: 0.8003 MB / 440.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003447/0.3417, allocations: 1.247 MB / 441.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.093e-05/0.3417, allocations: 4 kB / 441.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.005772/0.3474, allocations: 1.398 MB / 443.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.219e-05/0.3475, allocations: 8 kB / 443.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.924e-05/0.3475, allocations: 8.375 kB / 443.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.495e-05/0.3476, allocations: 8 kB / 443.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001764/0.3493, allocations: 207.6 kB / 443.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.975e-05/0.3494, allocations: 12 kB / 443.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/0.3504, allocations: 111.7 kB / 443.5 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/0.3505, allocations: 24 kB / 443.6 MB, free: 9.93 MB / 350.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.noWphase,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 (83): * Single equations (assignments): 83 * 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.0004563/0.351, allocations: 186.6 kB / 443.7 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005452/0.3515, allocations: 153.4 kB / 443.9 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002744/0.3518, allocations: 63.3 kB / 444 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-05/0.3518, allocations: 8 kB / 444 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.792e-05/0.3519, allocations: 4 kB / 444 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.781e-05/0.3519, allocations: 7.984 kB / 444 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007309/0.3592, allocations: 2.136 MB / 446.1 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-05/0.3592, allocations: 12 kB / 446.1 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008712/0.3601, allocations: 183.7 kB / 446.3 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.205e-05/0.3601, allocations: 12.47 kB / 446.3 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.211e-05/0.3602, allocations: 31.98 kB / 446.3 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.348e-05/0.3602, allocations: 23.92 kB / 446.4 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.342e-05/0.3603, allocations: 15.94 kB / 446.4 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003646/0.3639, allocations: 1.561 MB / 447.9 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002664/0.3642, allocations: 87.81 kB / 448 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.786e-05/0.3643, allocations: 27.98 kB / 448.1 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006276/0.3649, allocations: 71.92 kB / 448.1 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002324/0.3651, allocations: 103.6 kB / 448.2 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.631e-05/0.3652, allocations: 28 kB / 448.3 MB, free: 4.891 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001572/0.3653, allocations: 139.2 kB / 448.4 MB, free: 4.754 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3653, allocations: 4 kB / 448.4 MB, free: 4.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007482/0.3661, allocations: 124 kB / 448.5 MB, free: 4.629 MB / 350.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 (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.004078/0.3702, allocations: 2.129 MB / 450.6 MB, free: 2.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003068/0.3732, allocations: 1.034 MB / 451.7 MB, free: 1.305 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.117e-05/0.3733, allocations: 0 / 451.7 MB, free: 1.305 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001095/0.3743, allocations: 330.3 kB / 452 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/0.3754, allocations: 132.1 kB / 452.1 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01496/0.3904, allocations: 6.785 MB / 458.9 MB, free: 9.578 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006403/0.391, allocations: 0.8167 MB / 459.7 MB, free: 8.734 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005681/0.3916, allocations: 99.3 kB / 459.8 MB, free: 8.633 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004119/0.392, allocations: 111.4 kB / 459.9 MB, free: 8.523 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.392, allocations: 0 / 459.9 MB, free: 8.523 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04028/0.4323, allocations: 11.99 MB / 471.9 MB, free: 12.69 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/12.03, allocations: 7.844 kB / 471.9 MB, free: 12.68 MB / 382.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/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: 14.80001495097531]