Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008769/0.0008771, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.001017/0.001017, allocations: 184.3 kB / 17.57 MB, free: 6.199 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.535/1.535, allocations: 223.3 MB / 241.6 MB, free: 116 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002917/0.0002917, allocations: 8 kB / 301.5 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1214, allocations: 50.41 MB / 351.9 MB, free: 3.602 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003198/0.1247, allocations: 1.839 MB / 353.8 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001541/0.1262, allocations: 0.6394 MB / 354.4 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002547/0.1265, allocations: 0 / 354.4 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000345/0.1269, allocations: 35.77 kB / 354.4 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002741/0.1272, allocations: 43.69 kB / 354.5 MB, free: 1.02 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004978/0.1277, allocations: 111.8 kB / 354.6 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005703/0.1283, allocations: 319.2 kB / 354.9 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000215/0.1285, allocations: 68.2 kB / 355 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003397/0.1288, allocations: 123.5 kB / 355.1 MB, free: 416 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003072/0.1292, allocations: 139.5 kB / 355.2 MB, free: 276 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.952e-05/0.1292, allocations: 16 kB / 355.2 MB, free: 260 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.388e-05/0.1293, allocations: 16 kB / 355.3 MB, free: 244 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001182/0.1294, allocations: 63.8 kB / 355.3 MB, free: 180 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001448/0.1296, allocations: 141.1 kB / 355.5 MB, free: 32 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000364/0.1299, allocations: 267.2 kB / 355.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.13, allocations: 0 / 355.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.13, allocations: 0 / 355.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.089e-05/0.13, allocations: 0 / 355.7 MB, free: 15.77 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001297/0.1313, allocations: 0.5495 MB / 356.3 MB, free: 15.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.543e-05/0.1314, allocations: 8.031 kB / 356.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001315/0.1315, allocations: 62.73 kB / 356.3 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.76e-05/0.1316, allocations: 28.66 kB / 356.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00044/0.1321, allocations: 255.6 kB / 356.6 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002371/0.1323, allocations: 145.9 kB / 356.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.725e-05/0.1324, allocations: 24 kB / 356.8 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009366/0.1333, allocations: 383.5 kB / 357.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.1334, allocations: 0 / 357.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.911e-05/0.1334, allocations: 12 kB / 357.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.786e-06/0.1334, allocations: 4 kB / 357.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001457/0.1349, allocations: 0.5096 MB / 357.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002007/0.1369, allocations: 1.042 MB / 358.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001291/0.1382, allocations: 352.1 kB / 359.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005428/0.1388, allocations: 193.2 kB / 359.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.669e-05/0.1388, allocations: 4.234 kB / 359.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.496e-05/0.1388, allocations: 34.73 kB / 359.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.683e-06/0.1388, allocations: 0 / 359.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.02964/0.1685, allocations: 6.678 MB / 366 MB, free: 5.215 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.466e-05/0.1686, allocations: 55.84 kB / 366 MB, free: 5.148 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000285/0.1689, allocations: 198.9 kB / 366.2 MB, free: 4.945 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.495e-05/0.169, allocations: 33.7 kB / 366.3 MB, free: 4.906 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001219/0.1691, allocations: 152.6 kB / 366.4 MB, free: 4.754 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001882/0.1693, allocations: 181.4 kB / 366.6 MB, free: 4.574 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/0.1694, allocations: 49.69 kB / 366.6 MB, free: 4.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.1696, allocations: 338.8 kB / 367 MB, free: 4.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001445/0.171, allocations: 0.4891 MB / 367.4 MB, free: 3.691 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001472/0.1725, allocations: 0.5568 MB / 368 MB, free: 3.117 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002567/0.1751, allocations: 0.8852 MB / 368.9 MB, free: 2.219 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.1751, allocations: 0 / 368.9 MB, free: 2.219 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003094/0.1782, allocations: 1.057 MB / 369.9 MB, free: 1.152 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.408e-05/0.1783, allocations: 7.938 kB / 370 MB, free: 1.145 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.1783, allocations: 4.031 kB / 370 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.498e-05/0.1783, allocations: 4 kB / 370 MB, free: 1.137 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.1794, allocations: 187.7 kB / 370.1 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.569e-05/0.1794, allocations: 4 kB / 370.2 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008399/0.1803, allocations: 111.8 kB / 370.3 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.602e-05/0.1804, allocations: 16 kB / 370.3 MB, free: 0.8242 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0003559/0.1807, allocations: 165.7 kB / 370.4 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001266/0.1808, allocations: 27.66 kB / 370.5 MB, free: 0.625 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001749/0.181, allocations: 47.31 kB / 370.5 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.224e-06/0.181, allocations: 4 kB / 370.5 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.545e-05/0.1811, allocations: 4 kB / 370.5 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.1811, allocations: 7.984 kB / 370.5 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2394/0.4205, allocations: 1.986 MB / 372.5 MB, free: 25.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.349e-05/0.4206, allocations: 11.84 kB / 372.5 MB, free: 25.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008601/0.4214, allocations: 165.2 kB / 372.7 MB, free: 25.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.602e-05/0.4215, allocations: 14.88 kB / 372.7 MB, free: 25.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.494e-05/0.4215, allocations: 19.89 kB / 372.7 MB, free: 25.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.556e-05/0.4216, allocations: 15.95 kB / 372.7 MB, free: 25.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.58e-05/0.4216, allocations: 13.94 kB / 372.7 MB, free: 25.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003658/0.4253, allocations: 1.338 MB / 374.1 MB, free: 24.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002582/0.4255, allocations: 143.5 kB / 374.2 MB, free: 24.85 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.636e-05/0.4256, allocations: 21.23 kB / 374.2 MB, free: 24.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006063/0.4262, allocations: 92.69 kB / 374.3 MB, free: 24.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002728/0.4265, allocations: 86.64 kB / 374.4 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.236e-05/0.4266, allocations: 23.03 kB / 374.4 MB, free: 24.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002235/0.4268, allocations: 147.3 kB / 374.6 MB, free: 24.76 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4268, allocations: 0 / 374.6 MB, free: 24.76 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005976/0.4274, allocations: 95.88 kB / 374.7 MB, free: 24.76 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.004095/0.4315, allocations: 1.903 MB / 376.6 MB, free: 23.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003275/0.4348, allocations: 0.9202 MB / 377.5 MB, free: 23.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.595e-05/0.4349, allocations: 1.312 kB / 377.5 MB, free: 23.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001374/0.4363, allocations: 372.3 kB / 377.9 MB, free: 23.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001015/0.4373, allocations: 57.7 kB / 377.9 MB, free: 23.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01503/0.4523, allocations: 5.592 MB / 383.5 MB, free: 19.96 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004924/0.4529, allocations: 0.7847 MB / 384.3 MB, free: 19.26 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005959/0.4535, allocations: 75.58 kB / 384.4 MB, free: 19.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003006/0.4538, allocations: 97.53 kB / 384.5 MB, free: 19.16 MB / 302.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4538, allocations: 0 / 384.5 MB, free: 19.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02571/0.4795, allocations: 7.603 MB / 392.1 MB, free: 16.48 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002289/0.4798, allocations: 211.6 kB / 392.3 MB, free: 16.22 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.34/2.82, allocations: 0 / 392.3 MB, free: 16.22 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.initType,PI.k,PI.u,PI.x,PI.x_start,PI.y,PI.y_start,angle.flange.phi,angle.flange.tau,angle.phi,der(PI.x),der(der(kinematicPTP.Ta1)),der(der(kinematicPTP.Ta1s)),der(der(kinematicPTP.Ta2)),der(der(kinematicPTP.Ta2s)),der(der(kinematicPTP.Te)),der(der(kinematicPTP.Tv)),der(der(kinematicPTP.Tvs)),der(der(kinematicPTP.s1)),der(der(kinematicPTP.s2)),der(der(kinematicPTP.s3)),der(der(kinematicPTP.sd_max2)),der(kinematicPTP.Ta1),der(kinematicPTP.Ta1s),der(kinematicPTP.Ta2),der(kinematicPTP.Ta2s),der(kinematicPTP.Te),der(kinematicPTP.Tv),der(kinematicPTP.Tvs),der(kinematicPTP.s),der(kinematicPTP.s1),der(kinematicPTP.s2),der(kinematicPTP.s3),der(kinematicPTP.sd),der(kinematicPTP.sd_max2),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,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,speed.flange.phi,speed.flange.tau,speed.w,time,torque.flange.phi,torque.flange.tau,torque.tau,torque.useSupport