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.001316/0.001316, allocations: 113 kB / 18.49 MB, free: 4.539 MB / 14.72 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.001341/0.001341, allocations: 217.4 kB / 21.46 MB, free: 1.586 MB / 14.72 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 1.515/1.515, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 55.92 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1161, allocations: 53.32 MB / 427 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004153/0.1203, allocations: 2.341 MB / 429.3 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001533/0.1218, allocations: 0.8105 MB / 430.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001364/0.1219, allocations: 7.938 kB / 430.2 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003213/0.1223, allocations: 55.56 kB / 430.2 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002185/0.1225, allocations: 59.56 kB / 430.3 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004778/0.123, allocations: 159.2 kB / 430.4 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004734/0.1234, allocations: 375.6 kB / 430.8 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002106/0.1236, allocations: 71.38 kB / 430.9 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000354/0.124, allocations: 183.4 kB / 431 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002753/0.1243, allocations: 175.3 kB / 431.2 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.872e-05/0.1243, allocations: 36 kB / 431.3 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.46e-05/0.1244, allocations: 32 kB / 431.3 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000133/0.1245, allocations: 95.72 kB / 431.4 MB, free: 412 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001606/0.1247, allocations: 135.3 kB / 431.5 MB, free: 276 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2244/0.349, allocations: 325.9 kB / 431.8 MB, free: 8.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.022e-05/0.3491, allocations: 3.25 kB / 431.8 MB, free: 8.301 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.3491, allocations: 0.5312 kB / 431.8 MB, free: 8.301 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.419e-05/0.3491, allocations: 0 / 431.8 MB, free: 8.301 MB / 350.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.001569/0.3506, allocations: 0.6173 MB / 432.4 MB, free: 7.879 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.718e-05/0.3507, allocations: 10.31 kB / 432.5 MB, free: 7.879 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.486e-05/0.3507, allocations: 6.812 kB / 432.5 MB, free: 7.879 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.215e-05/0.3508, allocations: 71.3 kB / 432.5 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.95e-05/0.3509, allocations: 39.38 kB / 432.6 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004847/0.3514, allocations: 274.7 kB / 432.8 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002016/0.3516, allocations: 137.2 kB / 433 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.289e-05/0.3517, allocations: 32.47 kB / 433 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00128/0.3529, allocations: 0.5484 MB / 433.6 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/0.353, allocations: 2.156 kB / 433.6 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.854e-05/0.353, allocations: 11.88 kB / 433.6 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.353, allocations: 6.625 kB / 433.6 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001377/0.3544, allocations: 0.5141 MB / 434.1 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001439/0.3558, allocations: 1 MB / 435.1 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001685/0.3575, allocations: 483.4 kB / 435.6 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007145/0.3582, allocations: 237.6 kB / 435.8 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.594e-05/0.3583, allocations: 10.25 kB / 435.8 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.455e-05/0.3583, allocations: 41.88 kB / 435.8 MB, free: 6.695 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.713e-06/0.3583, allocations: 1.625 kB / 435.8 MB, free: 6.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03965/0.398, allocations: 5.726 MB / 441.6 MB, free: 6.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.801e-05/0.398, allocations: 147.5 kB / 441.7 MB, free: 6.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000221/0.3983, allocations: 201.9 kB / 441.9 MB, free: 6.023 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.211e-05/0.3983, allocations: 39.92 kB / 442 MB, free: 5.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.734e-05/0.3984, allocations: 139.5 kB / 442.1 MB, free: 5.855 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001962/0.3986, allocations: 205.3 kB / 442.3 MB, free: 5.699 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002897/0.3989, allocations: 108.7 kB / 442.4 MB, free: 5.637 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.495e-05/0.399, allocations: 345.6 kB / 442.7 MB, free: 5.309 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001601/0.4006, allocations: 0.6126 MB / 443.3 MB, free: 5.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00165/0.4022, allocations: 0.802 MB / 444.1 MB, free: 4.602 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003017/0.4053, allocations: 1.245 MB / 445.4 MB, free: 3.949 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.4053, allocations: 9.688 kB / 445.4 MB, free: 3.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003543/0.4088, allocations: 1.397 MB / 446.8 MB, free: 3.391 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.386e-05/0.4088, allocations: 8.062 kB / 446.8 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.4088, allocations: 5.812 kB / 446.8 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.862e-05/0.4089, allocations: 10.84 kB / 446.8 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001368/0.4102, allocations: 207.5 kB / 447 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.848e-05/0.4103, allocations: 14.28 kB / 447 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009507/0.4112, allocations: 103.8 kB / 447.1 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.614e-05/0.4113, allocations: 30.23 kB / 447.2 MB, free: 3.359 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.0003077/0.4116, allocations: 187 kB / 447.4 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002884/0.4119, allocations: 153.2 kB / 447.5 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001797/0.4121, allocations: 63.16 kB / 447.6 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/0.4121, allocations: 13.17 kB / 447.6 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.331e-05/0.4121, allocations: 5.375 kB / 447.6 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.09e-05/0.4121, allocations: 4.844 kB / 447.6 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004335/0.4164, allocations: 2.169 MB / 449.8 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.201e-05/0.4165, allocations: 10.28 kB / 449.8 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007268/0.4172, allocations: 181.4 kB / 449.9 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.469e-05/0.4172, allocations: 14.41 kB / 450 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.883e-05/0.4172, allocations: 29.25 kB / 450 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-05/0.4173, allocations: 20.81 kB / 450 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.016e-05/0.4173, allocations: 15.69 kB / 450 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00289/0.4202, allocations: 1.552 MB / 451.6 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001482/0.4203, allocations: 172.3 kB / 451.7 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.512e-05/0.4204, allocations: 24.59 kB / 451.8 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000558/0.4209, allocations: 75.72 kB / 451.8 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000182/0.4211, allocations: 97.61 kB / 451.9 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.864e-05/0.4212, allocations: 34.09 kB / 452 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.882e-05/0.4213, allocations: 141.4 kB / 452.1 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4213, allocations: 4 kB / 452.1 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006499/0.4219, allocations: 122.5 kB / 452.2 MB, free: 0.5156 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.003447/0.4254, allocations: 2.125 MB / 454.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002781/0.4281, allocations: 1.029 MB / 455.4 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.4281, allocations: 1.188 kB / 455.4 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009905/0.4291, allocations: 330.2 kB / 455.7 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001042/0.4302, allocations: 132.1 kB / 455.8 MB, free: 14.13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01375/0.4439, allocations: 6.779 MB / 462.6 MB, free: 9.043 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004996/0.4444, allocations: 0.813 MB / 463.4 MB, free: 8.293 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004927/0.4449, allocations: 101.8 kB / 463.5 MB, free: 8.242 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003999/0.4453, allocations: 113.3 kB / 463.6 MB, free: 8.16 MB / 366.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4453, allocations: 0 / 463.6 MB, free: 8.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03368/0.479, allocations: 11.31 MB / 475 MB, free: 15.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.082/9.561, allocations: 15.98 kB / 475 MB, free: 15.17 MB / 382.1 MB " [Timeout remaining time 650] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/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: 12.355052842991427]