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.001611/0.001611, allocations: 102.4 kB / 16.5 MB, free: 6.641 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.001814/0.001814, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.378/1.378, allocations: 222.9 MB / 241.1 MB, free: 13.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 55.77 kB / 300.1 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1388, allocations: 49.45 MB / 349.5 MB, free: 4.586 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004597/0.1434, allocations: 2.186 MB / 351.7 MB, free: 2.379 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.1448, allocations: 0.6394 MB / 352.3 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002338/0.1451, allocations: 7.938 kB / 352.3 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003252/0.1455, allocations: 31.83 kB / 352.4 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002165/0.1457, allocations: 43.69 kB / 352.4 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004351/0.1461, allocations: 119.8 kB / 352.5 MB, free: 1.535 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004633/0.1466, allocations: 323.2 kB / 352.8 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001894/0.1468, allocations: 56.36 kB / 352.9 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002624/0.1471, allocations: 131.5 kB / 353 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002734/0.1474, allocations: 147.4 kB / 353.2 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.959e-05/0.1474, allocations: 23.94 kB / 353.2 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.08e-05/0.1475, allocations: 16 kB / 353.2 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.1476, allocations: 75.73 kB / 353.3 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001337/0.1477, allocations: 115.4 kB / 353.4 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002831/0.148, allocations: 263.3 kB / 353.7 MB, free: 412 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.1481, allocations: 0 / 353.7 MB, free: 412 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1481, allocations: 0 / 353.7 MB, free: 412 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.188e-05/0.1481, allocations: 0 / 353.7 MB, free: 412 kB / 286.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.1494, allocations: 0.5768 MB / 354.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.1494, allocations: 8.031 kB / 354.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.547e-05/0.1495, allocations: 66.73 kB / 354.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.99e-05/0.1496, allocations: 32.66 kB / 354.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003623/0.15, allocations: 255.5 kB / 354.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002087/0.1502, allocations: 137.9 kB / 354.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.723e-05/0.1503, allocations: 24 kB / 354.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008619/0.1511, allocations: 367.6 kB / 355.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.1512, allocations: 4 kB / 355.1 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.029e-05/0.1512, allocations: 4 kB / 355.1 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.1512, allocations: 11.98 kB / 355.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001337/0.1526, allocations: 0.4901 MB / 355.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001834/0.1544, allocations: 1.011 MB / 356.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00112/0.1555, allocations: 339.1 kB / 357 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004696/0.156, allocations: 181.1 kB / 357.1 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.416e-05/0.1561, allocations: 4.234 kB / 357.1 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.638e-05/0.1561, allocations: 34.8 kB / 357.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.553e-06/0.1561, allocations: 0 / 357.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.02617/0.1823, allocations: 5.788 MB / 363 MB, free: 6.793 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.934e-05/0.1824, allocations: 55.84 kB / 363 MB, free: 6.727 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002718/0.1827, allocations: 206.8 kB / 363.2 MB, free: 6.516 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.286e-05/0.1828, allocations: 33.7 kB / 363.3 MB, free: 6.477 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.1829, allocations: 152.6 kB / 363.4 MB, free: 6.324 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001704/0.1831, allocations: 173.4 kB / 363.6 MB, free: 6.152 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002161/0.1833, allocations: 90.25 kB / 363.7 MB, free: 6.059 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1834, allocations: 334.8 kB / 364 MB, free: 5.723 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001177/0.1846, allocations: 468.8 kB / 364.4 MB, free: 5.266 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001215/0.1858, allocations: 0.5216 MB / 365 MB, free: 4.727 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002084/0.1879, allocations: 0.7993 MB / 365.8 MB, free: 3.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.1879, allocations: 0 / 365.8 MB, free: 3.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002559/0.1905, allocations: 0.9867 MB / 366.8 MB, free: 2.918 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.641e-05/0.1905, allocations: 11.88 kB / 366.8 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.1906, allocations: 4 kB / 366.8 MB, free: 2.902 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.268e-05/0.1906, allocations: 4 kB / 366.8 MB, free: 2.898 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009746/0.1916, allocations: 167.7 kB / 366.9 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.847e-05/0.1916, allocations: 8.016 kB / 366.9 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006858/0.1923, allocations: 87.89 kB / 367 MB, free: 2.641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.087e-05/0.1924, allocations: 16 kB / 367 MB, free: 2.625 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.0002501/0.1926, allocations: 161.7 kB / 367.2 MB, free: 2.457 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.785e-05/0.1927, allocations: 31.56 kB / 367.2 MB, free: 2.426 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001011/0.1928, allocations: 47.31 kB / 367.3 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.465e-05/0.1928, allocations: 12 kB / 367.3 MB, free: 2.363 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.1929, allocations: 3.984 kB / 367.3 MB, free: 2.359 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.1929, allocations: 0 / 367.3 MB, free: 2.359 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004039/0.1969, allocations: 1.87 MB / 369.2 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.191e-05/0.1969, allocations: 8 kB / 369.2 MB, free: 324 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006407/0.1976, allocations: 152.5 kB / 369.3 MB, free: 172 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.492e-05/0.1976, allocations: 15.94 kB / 369.3 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.745e-05/0.1977, allocations: 20 kB / 369.4 MB, free: 136 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.204e-05/0.1977, allocations: 15.92 kB / 369.4 MB, free: 120 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.375e-06/0.1977, allocations: 12 kB / 369.4 MB, free: 108 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2078/0.4055, allocations: 1.215 MB / 370.6 MB, free: 25.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002026/0.4057, allocations: 151.5 kB / 370.7 MB, free: 25.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.171e-05/0.4058, allocations: 20.8 kB / 370.8 MB, free: 25.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000522/0.4063, allocations: 73.2 kB / 370.8 MB, free: 25.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002107/0.4066, allocations: 84.62 kB / 370.9 MB, free: 25.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.513e-05/0.4066, allocations: 23.38 kB / 370.9 MB, free: 25.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001606/0.4068, allocations: 145.8 kB / 371.1 MB, free: 25.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4068, allocations: 0 / 371.1 MB, free: 25.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005158/0.4073, allocations: 97.06 kB / 371.2 MB, free: 25.54 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.002824/0.4101, allocations: 1.783 MB / 373 MB, free: 24.58 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002284/0.4124, allocations: 0.8519 MB / 373.8 MB, free: 24.35 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.4125, allocations: 0 / 373.8 MB, free: 24.35 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008975/0.4134, allocations: 328.5 kB / 374.1 MB, free: 24.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000645/0.414, allocations: 60.91 kB / 374.2 MB, free: 24.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009787/0.4238, allocations: 5.35 MB / 379.5 MB, free: 20.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/0.4242, allocations: 0.7889 MB / 380.3 MB, free: 20.19 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005254/0.4247, allocations: 77.31 kB / 380.4 MB, free: 20.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002775/0.425, allocations: 92.97 kB / 380.5 MB, free: 20.1 MB / 302.1 MB Notification: Performance of SimCode: time 6.21e-07/0.425, allocations: 0 / 380.5 MB, free: 20.1 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02127/0.4463, allocations: 7.74 MB / 388.2 MB, free: 17.71 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001341/0.4464, allocations: 215 kB / 388.4 MB, free: 17.45 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.879/2.326, allocations: 0 / 388.4 MB, free: 17.45 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