Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001532/0.001532, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002001/0.002001, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 246.3 MB, free: 9.035 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 60.59 kB / 306.3 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1159, allocations: 50.52 MB / 356.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003864/0.1198, allocations: 2.202 MB / 359.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001372/0.1212, allocations: 0.6783 MB / 359.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001759/0.1214, allocations: 7.938 kB / 359.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002971/0.1217, allocations: 39.78 kB / 359.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001879/0.1219, allocations: 35.75 kB / 359.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003635/0.1223, allocations: 111.8 kB / 359.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003815/0.1227, allocations: 323.2 kB / 360.3 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001784/0.1229, allocations: 68.28 kB / 360.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003305/0.1232, allocations: 131.5 kB / 360.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002629/0.1235, allocations: 143.4 kB / 360.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.684e-05/0.1235, allocations: 20 kB / 360.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.09e-05/0.1236, allocations: 16 kB / 360.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001078/0.1237, allocations: 83.77 kB / 360.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000131/0.1239, allocations: 107.4 kB / 360.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003094/0.1242, allocations: 275.3 kB / 361.1 MB, free: 9.949 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1242, allocations: 0 / 361.1 MB, free: 9.949 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.01e-07/0.1242, allocations: 0 / 361.1 MB, free: 9.949 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.1242, allocations: 0 / 361.1 MB, free: 9.949 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.001176/0.1254, allocations: 0.5712 MB / 361.7 MB, free: 9.332 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.1255, allocations: 12.03 kB / 361.7 MB, free: 9.32 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.337e-05/0.1255, allocations: 70.66 kB / 361.7 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.227e-05/0.1256, allocations: 32.66 kB / 361.8 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003158/0.1259, allocations: 247.8 kB / 362 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002044/0.1262, allocations: 141.9 kB / 362.2 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.194e-05/0.1262, allocations: 24 kB / 362.2 MB, free: 8.754 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008012/0.127, allocations: 367.5 kB / 362.5 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.1271, allocations: 4 kB / 362.5 MB, free: 8.379 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.162e-05/0.1271, allocations: 8 kB / 362.5 MB, free: 8.371 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.1271, allocations: 4 kB / 362.5 MB, free: 8.367 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001266/0.1284, allocations: 0.4901 MB / 363 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001729/0.1301, allocations: 1.011 MB / 364 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001082/0.1312, allocations: 331.8 kB / 364.4 MB, free: 6.457 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004537/0.1317, allocations: 181.2 kB / 364.6 MB, free: 6.277 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.736e-05/0.1317, allocations: 240 / 364.6 MB, free: 6.277 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/0.1318, allocations: 42.8 kB / 364.6 MB, free: 6.227 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.092e-06/0.1318, allocations: 0 / 364.6 MB, free: 6.227 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.02846/0.1602, allocations: 5.801 MB / 370.4 MB, free: 344 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.806e-05/0.1603, allocations: 55.84 kB / 370.4 MB, free: 276 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003598/0.1607, allocations: 195.7 kB / 370.6 MB, free: 72 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.581e-05/0.1608, allocations: 33.7 kB / 370.7 MB, free: 32 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1723/0.3331, allocations: 145.9 kB / 370.8 MB, free: 21.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002284/0.3334, allocations: 173.9 kB / 371 MB, free: 21.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002421/0.3336, allocations: 97.39 kB / 371.1 MB, free: 21.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.588e-05/0.3337, allocations: 337.5 kB / 371.4 MB, free: 20.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001271/0.335, allocations: 468.5 kB / 371.9 MB, free: 20.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001285/0.3363, allocations: 0.5174 MB / 372.4 MB, free: 20.69 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002216/0.3385, allocations: 0.8078 MB / 373.2 MB, free: 20.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.3385, allocations: 0 / 373.2 MB, free: 20.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002644/0.3412, allocations: 0.9888 MB / 374.2 MB, free: 20.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.3412, allocations: 6.531 kB / 374.2 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.3412, allocations: 1.094 kB / 374.2 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.3412, allocations: 3.688 kB / 374.2 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009302/0.3422, allocations: 174.7 kB / 374.4 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.3422, allocations: 7.938 kB / 374.4 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006303/0.3428, allocations: 83.19 kB / 374.5 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.538e-05/0.3429, allocations: 16.38 kB / 374.5 MB, free: 20.04 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.0002094/0.3431, allocations: 159.1 kB / 374.6 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.573e-05/0.3432, allocations: 31.62 kB / 374.7 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001103/0.3433, allocations: 52.5 kB / 374.7 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.3433, allocations: 12.09 kB / 374.7 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.868e-06/0.3433, allocations: 0.7031 kB / 374.7 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.3433, allocations: 3.5 kB / 374.7 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003607/0.347, allocations: 1.871 MB / 376.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.405e-06/0.347, allocations: 7.938 kB / 376.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006034/0.3476, allocations: 145.7 kB / 376.7 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.117e-05/0.3476, allocations: 15.73 kB / 376.8 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.03e-05/0.3477, allocations: 20.19 kB / 376.8 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.42e-05/0.3477, allocations: 20.97 kB / 376.8 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.215e-06/0.3477, allocations: 12.62 kB / 376.8 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002347/0.35, allocations: 1.236 MB / 378 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001536/0.3502, allocations: 140.1 kB / 378.2 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.556e-05/0.3503, allocations: 27.3 kB / 378.2 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004802/0.3508, allocations: 70.69 kB / 378.3 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001876/0.351, allocations: 81.5 kB / 378.4 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.152e-05/0.351, allocations: 28.19 kB / 378.4 MB, free: 17.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000145/0.3512, allocations: 151.6 kB / 378.5 MB, free: 17.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.12e-07/0.3512, allocations: 4 kB / 378.5 MB, free: 17.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004611/0.3516, allocations: 95.77 kB / 378.6 MB, free: 17.78 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.002544/0.3542, allocations: 1.782 MB / 380.4 MB, free: 16.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001975/0.3562, allocations: 0.8439 MB / 381.3 MB, free: 16.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3562, allocations: 1.344 kB / 381.3 MB, free: 16.24 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008464/0.357, allocations: 333.8 kB / 381.6 MB, free: 16.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005746/0.3576, allocations: 63.05 kB / 381.6 MB, free: 16.13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009159/0.3668, allocations: 5.33 MB / 387 MB, free: 12.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002411/0.367, allocations: 0.7887 MB / 387.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004674/0.3675, allocations: 82.7 kB / 387.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002536/0.3678, allocations: 94 kB / 387.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3678, allocations: 0 / 387.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01723/0.385, allocations: 7.747 MB / 395.7 MB, free: 8.41 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001571/0.3852, allocations: 217.2 kB / 395.9 MB, free: 8.156 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.831/2.217, allocations: 0 / 395.9 MB, free: 8.156 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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