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.001485/0.001485, allocations: 107.1 kB / 16.92 MB, free: 5.789 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.001669/0.001669, allocations: 191.3 kB / 17.85 MB, free: 5.191 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.719/1.719, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 52.23 kB / 300.7 MB, free: 5.723 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1765/0.1778, allocations: 49.43 MB / 350.1 MB, free: 4.285 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004983/0.1829, allocations: 2.148 MB / 352.3 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001592/0.1845, allocations: 0.6471 MB / 352.9 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000174/0.1847, allocations: 7.938 kB / 352.9 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003876/0.1851, allocations: 39.7 kB / 353 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001829/0.1853, allocations: 51.56 kB / 353 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004442/0.1858, allocations: 135.7 kB / 353.2 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004526/0.1862, allocations: 339.2 kB / 353.5 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002292/0.1865, allocations: 64.23 kB / 353.6 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002495/0.1867, allocations: 147.5 kB / 353.7 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002661/0.187, allocations: 151.4 kB / 353.9 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.215e-05/0.1871, allocations: 32 kB / 353.9 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.539e-05/0.1871, allocations: 28 kB / 353.9 MB, free: 496 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.1873, allocations: 83.73 kB / 354 MB, free: 412 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001449/0.1874, allocations: 127.4 kB / 354.1 MB, free: 284 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003426/0.1878, allocations: 279.3 kB / 354.4 MB, free: 4 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1878, allocations: 0 / 354.4 MB, free: 4 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1878, allocations: 0 / 354.4 MB, free: 4 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.1878, allocations: 0 / 354.4 MB, free: 4 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.001302/0.1891, allocations: 0.5806 MB / 355 MB, free: 15.38 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.612e-05/0.1892, allocations: 8.031 kB / 355 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.541e-05/0.1893, allocations: 58.73 kB / 355 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.618e-05/0.1894, allocations: 36.66 kB / 355.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003615/0.1897, allocations: 255.5 kB / 355.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002346/0.19, allocations: 137.9 kB / 355.5 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.539e-05/0.19, allocations: 24 kB / 355.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008619/0.1909, allocations: 367.6 kB / 355.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.1909, allocations: 4 kB / 355.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.256e-05/0.191, allocations: 8 kB / 355.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.475e-05/0.191, allocations: 8 kB / 355.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00134/0.1923, allocations: 0.49 MB / 356.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001827/0.1942, allocations: 1.015 MB / 357.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001303/0.1955, allocations: 339.1 kB / 357.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000548/0.196, allocations: 178.4 kB / 357.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.095e-05/0.1961, allocations: 4.234 kB / 357.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.1961, allocations: 34.8 kB / 357.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.663e-06/0.1962, allocations: 0 / 357.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.02829/0.2244, allocations: 5.797 MB / 363.7 MB, free: 6.391 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.038e-05/0.2246, allocations: 55.84 kB / 363.8 MB, free: 6.324 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003103/0.2249, allocations: 202.8 kB / 364 MB, free: 6.117 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.138e-05/0.225, allocations: 41.7 kB / 364 MB, free: 6.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001448/0.2251, allocations: 144.6 kB / 364.1 MB, free: 5.926 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002103/0.2253, allocations: 173.4 kB / 364.3 MB, free: 5.754 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002478/0.2256, allocations: 90.25 kB / 364.4 MB, free: 5.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000227/0.2258, allocations: 338.8 kB / 364.7 MB, free: 5.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00136/0.2272, allocations: 468.7 kB / 365.2 MB, free: 4.863 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001385/0.2286, allocations: 0.5255 MB / 365.7 MB, free: 4.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00246/0.2311, allocations: 0.8032 MB / 366.5 MB, free: 3.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2311, allocations: 4 kB / 366.5 MB, free: 3.496 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003163/0.2342, allocations: 0.9827 MB / 367.5 MB, free: 2.508 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.237e-05/0.2343, allocations: 10.59 kB / 367.5 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.2343, allocations: 4 kB / 367.5 MB, free: 2.496 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.577e-05/0.2343, allocations: 4 kB / 367.5 MB, free: 2.492 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.2353, allocations: 167.8 kB / 367.7 MB, free: 2.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.828e-05/0.2354, allocations: 4 kB / 367.7 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006909/0.2361, allocations: 87.83 kB / 367.8 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.064e-05/0.2361, allocations: 16 kB / 367.8 MB, free: 2.223 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.0002827/0.2364, allocations: 157.8 kB / 367.9 MB, free: 2.059 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.2365, allocations: 31.56 kB / 368 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001255/0.2367, allocations: 51.31 kB / 368 MB, free: 1.973 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.2367, allocations: 11.98 kB / 368 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.358e-06/0.2367, allocations: 0 / 368 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.2367, allocations: 0 / 368 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3303/0.567, allocations: 1.866 MB / 369.9 MB, free: 25.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.801e-05/0.5672, allocations: 9.938 kB / 369.9 MB, free: 25.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009207/0.5681, allocations: 143.8 kB / 370 MB, free: 25.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.462e-05/0.5681, allocations: 17.53 kB / 370.1 MB, free: 25.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.853e-05/0.5682, allocations: 19.81 kB / 370.1 MB, free: 25.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.127e-05/0.5682, allocations: 15.8 kB / 370.1 MB, free: 25.9 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.734e-05/0.5683, allocations: 14.66 kB / 370.1 MB, free: 25.9 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003568/0.5718, allocations: 1.225 MB / 371.3 MB, free: 25.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000267/0.5721, allocations: 146 kB / 371.5 MB, free: 25.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.289e-05/0.5722, allocations: 24.45 kB / 371.5 MB, free: 25.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006049/0.5728, allocations: 69.2 kB / 371.6 MB, free: 25.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000309/0.5731, allocations: 87.45 kB / 371.7 MB, free: 25.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.238e-05/0.5732, allocations: 23.91 kB / 371.7 MB, free: 25.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002619/0.5735, allocations: 144.7 kB / 371.8 MB, free: 25.31 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5735, allocations: 0 / 371.8 MB, free: 25.31 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006616/0.5742, allocations: 97.62 kB / 371.9 MB, free: 25.31 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.00449/0.5787, allocations: 1.788 MB / 373.7 MB, free: 24.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003264/0.5819, allocations: 0.8759 MB / 374.6 MB, free: 24.13 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/0.582, allocations: 1.375 kB / 374.6 MB, free: 24.13 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00124/0.5832, allocations: 332.1 kB / 374.9 MB, free: 24.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008935/0.5841, allocations: 52.86 kB / 375 MB, free: 24.03 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01359/0.5977, allocations: 5.231 MB / 380.2 MB, free: 20.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003778/0.5981, allocations: 0.78 MB / 381 MB, free: 20.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005239/0.5987, allocations: 80.2 kB / 381 MB, free: 20.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002934/0.599, allocations: 92.52 kB / 381.1 MB, free: 19.99 MB / 302.1 MB Notification: Performance of SimCode: time 8.82e-07/0.599, allocations: 1.344 kB / 381.1 MB, free: 19.99 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0431/0.6421, allocations: 8.299 MB / 389.4 MB, free: 17.15 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.441/10.08, allocations: 1.375 kB / 389.4 MB, free: 17.15 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