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.001224/0.001225, allocations: 111.7 kB / 16.62 MB, free: 6.812 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.001213/0.001213, allocations: 190 kB / 17.55 MB, free: 5.934 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.336/1.336, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 46.72 kB / 300.2 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1173, allocations: 49.44 MB / 349.7 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004664/0.122, allocations: 2.186 MB / 351.9 MB, free: 2.457 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001428/0.1234, allocations: 0.6432 MB / 352.5 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002124/0.1237, allocations: 0 / 352.5 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003363/0.1241, allocations: 39.77 kB / 352.5 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002222/0.1243, allocations: 43.75 kB / 352.6 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004305/0.1247, allocations: 107.8 kB / 352.7 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004736/0.1252, allocations: 343.2 kB / 353 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002148/0.1254, allocations: 68.23 kB / 353.1 MB, free: 1.215 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003003/0.1258, allocations: 147.5 kB / 353.2 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000282/0.1261, allocations: 151.4 kB / 353.4 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.317e-05/0.1261, allocations: 32 kB / 353.4 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.961e-05/0.1262, allocations: 28 kB / 353.4 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002125/0.1264, allocations: 87.73 kB / 353.5 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001523/0.1266, allocations: 127.4 kB / 353.7 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003502/0.1269, allocations: 279.3 kB / 353.9 MB, free: 388 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.1269, allocations: 4 kB / 353.9 MB, free: 384 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.127, allocations: 0 / 353.9 MB, free: 384 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.943e-05/0.127, allocations: 0 / 353.9 MB, free: 384 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.00148/0.1285, allocations: 0.5767 MB / 354.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.569e-05/0.1285, allocations: 12.03 kB / 354.5 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001057/0.1286, allocations: 62.72 kB / 354.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.386e-05/0.1287, allocations: 32.66 kB / 354.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005002/0.1293, allocations: 244.4 kB / 354.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002762/0.1296, allocations: 134 kB / 355 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.159e-05/0.1296, allocations: 31.94 kB / 355 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009824/0.1306, allocations: 371.5 kB / 355.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.037e-05/0.1307, allocations: 0 / 355.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.308e-05/0.1307, allocations: 12 kB / 355.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/0.1307, allocations: 4 kB / 355.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001707/0.1324, allocations: 497.9 kB / 355.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002808/0.1353, allocations: 1.015 MB / 356.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001842/0.1371, allocations: 339.1 kB / 357.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007544/0.1379, allocations: 173.2 kB / 357.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.106e-05/0.138, allocations: 240 / 357.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.765e-05/0.138, allocations: 42.73 kB / 357.4 MB, free: 12.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.355e-06/0.138, allocations: 0 / 357.4 MB, free: 12.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.04108/0.1791, allocations: 5.801 MB / 363.2 MB, free: 6.766 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.441e-05/0.1792, allocations: 59.84 kB / 363.3 MB, free: 6.695 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004337/0.1797, allocations: 198.9 kB / 363.5 MB, free: 6.492 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001031/0.1798, allocations: 33.7 kB / 363.5 MB, free: 6.453 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001537/0.18, allocations: 148.6 kB / 363.7 MB, free: 6.305 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002762/0.1803, allocations: 177.4 kB / 363.8 MB, free: 6.129 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003621/0.1807, allocations: 90.25 kB / 363.9 MB, free: 6.035 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002174/0.1809, allocations: 334.8 kB / 364.3 MB, free: 5.699 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002283/0.1832, allocations: 464.8 kB / 364.7 MB, free: 5.246 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002399/0.1856, allocations: 0.5255 MB / 365.2 MB, free: 4.703 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003974/0.1896, allocations: 0.8033 MB / 366 MB, free: 3.883 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.706e-06/0.1896, allocations: 0 / 366 MB, free: 3.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.004863/0.1945, allocations: 0.9904 MB / 367 MB, free: 2.887 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.502e-05/0.1946, allocations: 7.938 kB / 367 MB, free: 2.879 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.1946, allocations: 0 / 367 MB, free: 2.879 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.526e-05/0.1946, allocations: 4 kB / 367 MB, free: 2.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001729/0.1964, allocations: 171.9 kB / 367.2 MB, free: 2.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.808e-05/0.1964, allocations: 7.984 kB / 367.2 MB, free: 2.699 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001179/0.1976, allocations: 87.88 kB / 367.3 MB, free: 2.613 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/0.1978, allocations: 16 kB / 367.3 MB, free: 2.598 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.0004195/0.1982, allocations: 161.7 kB / 367.5 MB, free: 2.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001898/0.1984, allocations: 35.55 kB / 367.5 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002006/0.1986, allocations: 47.31 kB / 367.6 MB, free: 2.344 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.355e-05/0.1986, allocations: 4 kB / 367.6 MB, free: 2.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.406e-05/0.1987, allocations: 0 / 367.6 MB, free: 2.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.598e-05/0.1987, allocations: 11.97 kB / 367.6 MB, free: 2.328 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007391/0.2061, allocations: 1.877 MB / 369.4 MB, free: 296 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.029e-05/0.2062, allocations: 12.03 kB / 369.5 MB, free: 284 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001177/0.2074, allocations: 139.8 kB / 369.6 MB, free: 144 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-05/0.2074, allocations: 15.94 kB / 369.6 MB, free: 128 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.116e-05/0.2075, allocations: 19.94 kB / 369.6 MB, free: 108 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.572e-05/0.2076, allocations: 19.92 kB / 369.7 MB, free: 88 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.026e-05/0.2076, allocations: 11.94 kB / 369.7 MB, free: 76 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2/0.4076, allocations: 1.217 MB / 370.9 MB, free: 25.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000212/0.4079, allocations: 156.5 kB / 371 MB, free: 25.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.775e-05/0.4079, allocations: 21.05 kB / 371.1 MB, free: 25.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005538/0.4085, allocations: 69.53 kB / 371.1 MB, free: 25.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002285/0.4087, allocations: 85.77 kB / 371.2 MB, free: 25.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.292e-05/0.4088, allocations: 23.67 kB / 371.2 MB, free: 25.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002038/0.409, allocations: 144.5 kB / 371.4 MB, free: 25.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.409, allocations: 0 / 371.4 MB, free: 25.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000499/0.4095, allocations: 96.44 kB / 371.5 MB, free: 25.71 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.003095/0.4126, allocations: 1.782 MB / 373.2 MB, free: 24.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002356/0.415, allocations: 0.8746 MB / 374.1 MB, free: 24.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.415, allocations: 1.375 kB / 374.1 MB, free: 24.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008861/0.4159, allocations: 328.4 kB / 374.4 MB, free: 24.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006377/0.4166, allocations: 60.53 kB / 374.5 MB, free: 24.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01015/0.4267, allocations: 5.353 MB / 379.9 MB, free: 21.05 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.427, allocations: 0.7855 MB / 380.6 MB, free: 20.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005165/0.4276, allocations: 77.17 kB / 380.7 MB, free: 20.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002766/0.4278, allocations: 94.06 kB / 380.8 MB, free: 20.24 MB / 302.1 MB Notification: Performance of SimCode: time 9.21e-07/0.4278, allocations: 0 / 380.8 MB, free: 20.24 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02723/0.4551, allocations: 8.034 MB / 388.8 MB, free: 17.65 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001393/0.4553, allocations: 210 kB / 389 MB, free: 17.4 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.132/2.587, allocations: 0 / 389 MB, free: 17.4 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