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.001566/0.001567, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002143/0.002143, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.59/1.59, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 60.25 kB / 307 MB, free: 0.5898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09259/0.09385, allocations: 50.54 MB / 357.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004779/0.09867, allocations: 2.149 MB / 359.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00158/0.1003, allocations: 0.686 MB / 360.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002145/0.1005, allocations: 4 kB / 360.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002757/0.1008, allocations: 47.64 kB / 360.5 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000188/0.101, allocations: 55.62 kB / 360.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003998/0.1014, allocations: 115.8 kB / 360.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003957/0.1019, allocations: 343.2 kB / 361 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001865/0.102, allocations: 76.3 kB / 361 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003439/0.1024, allocations: 143.5 kB / 361.2 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002559/0.1027, allocations: 159.4 kB / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.489e-05/0.1027, allocations: 28 kB / 361.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.921e-05/0.1028, allocations: 32 kB / 361.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.1029, allocations: 79.8 kB / 361.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.1031, allocations: 123.4 kB / 361.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004502/0.1036, allocations: 283.3 kB / 361.9 MB, free: 9.738 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.1036, allocations: 0 / 361.9 MB, free: 9.738 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1036, allocations: 0 / 361.9 MB, free: 9.738 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.1036, allocations: 0 / 361.9 MB, free: 9.738 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.001481/0.1051, allocations: 0.5767 MB / 362.4 MB, free: 9.113 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.1052, allocations: 12.03 kB / 362.5 MB, free: 9.102 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001111/0.1053, allocations: 66.72 kB / 362.5 MB, free: 9.027 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.938e-05/0.1054, allocations: 36.59 kB / 362.6 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003543/0.1057, allocations: 247.4 kB / 362.8 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002182/0.106, allocations: 134 kB / 362.9 MB, free: 8.566 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.771e-05/0.106, allocations: 28 kB / 363 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008717/0.1069, allocations: 359.6 kB / 363.3 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.546e-05/0.107, allocations: 11.92 kB / 363.3 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.294e-05/0.107, allocations: 8 kB / 363.3 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.107, allocations: 4 kB / 363.3 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001526/0.1085, allocations: 0.4901 MB / 363.8 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001804/0.1104, allocations: 1.015 MB / 364.8 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001351/0.1117, allocations: 337.8 kB / 365.2 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005152/0.1122, allocations: 173.2 kB / 365.3 MB, free: 6.062 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.397e-05/0.1123, allocations: 4.234 kB / 365.3 MB, free: 6.059 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.703e-05/0.1123, allocations: 42.73 kB / 365.4 MB, free: 6.008 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.315e-06/0.1123, allocations: 0 / 365.4 MB, free: 6.008 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.02857/0.1409, allocations: 5.792 MB / 371.2 MB, free: 124 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.461e-05/0.1411, allocations: 59.84 kB / 371.2 MB, free: 52 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2297/0.3708, allocations: 200 kB / 371.4 MB, free: 21.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001156/0.3709, allocations: 33.55 kB / 371.5 MB, free: 21.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.499e-05/0.371, allocations: 150.8 kB / 371.6 MB, free: 21.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001832/0.3712, allocations: 173 kB / 371.8 MB, free: 21.11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002468/0.3715, allocations: 89.78 kB / 371.9 MB, free: 21.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.547e-05/0.3716, allocations: 339.1 kB / 372.2 MB, free: 20.78 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001427/0.373, allocations: 467.6 kB / 372.6 MB, free: 20.78 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001426/0.3744, allocations: 0.517 MB / 373.2 MB, free: 20.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002642/0.3771, allocations: 0.8036 MB / 374 MB, free: 20.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.3771, allocations: 1.031 kB / 374 MB, free: 20.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003095/0.3802, allocations: 0.9848 MB / 375 MB, free: 20.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.676e-05/0.3803, allocations: 13.16 kB / 375 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.3803, allocations: 1.375 kB / 375 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.978e-05/0.3803, allocations: 4.125 kB / 375 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.3814, allocations: 170.7 kB / 375.1 MB, free: 20.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.592e-05/0.3814, allocations: 2.922 kB / 375.1 MB, free: 20.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007411/0.3821, allocations: 87.7 kB / 375.2 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.489e-05/0.3822, allocations: 16 kB / 375.2 MB, free: 20.07 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.0002436/0.3825, allocations: 159 kB / 375.4 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.206e-05/0.3826, allocations: 29.08 kB / 375.4 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001093/0.3827, allocations: 48.56 kB / 375.5 MB, free: 19.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.245e-06/0.3827, allocations: 12.44 kB / 375.5 MB, free: 19.87 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.258e-06/0.3827, allocations: 1.969 kB / 375.5 MB, free: 19.87 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.858e-06/0.3827, allocations: 2.672 kB / 375.5 MB, free: 19.87 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004018/0.3867, allocations: 1.877 MB / 377.4 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.594e-05/0.3868, allocations: 8.156 kB / 377.4 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006998/0.3875, allocations: 148.2 kB / 377.5 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.932e-05/0.3875, allocations: 11.64 kB / 377.5 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.69e-05/0.3876, allocations: 22.62 kB / 377.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.047e-05/0.3876, allocations: 20.36 kB / 377.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.201e-05/0.3876, allocations: 10.03 kB / 377.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00276/0.3904, allocations: 1.23 MB / 378.8 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000166/0.3906, allocations: 143.2 kB / 379 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.733e-05/0.3906, allocations: 30.89 kB / 379 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005378/0.3912, allocations: 67.89 kB / 379 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002147/0.3914, allocations: 80.11 kB / 379.1 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.924e-05/0.3914, allocations: 31.81 kB / 379.2 MB, free: 17.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001621/0.3916, allocations: 146.1 kB / 379.3 MB, free: 17.83 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3916, allocations: 1.031 kB / 379.3 MB, free: 17.83 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005076/0.3921, allocations: 97.25 kB / 379.4 MB, free: 17.82 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.002922/0.3951, allocations: 1.778 MB / 381.2 MB, free: 16.56 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002447/0.3975, allocations: 0.8755 MB / 382 MB, free: 16.26 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.3975, allocations: 1.375 kB / 382.1 MB, free: 16.26 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001002/0.3986, allocations: 328 kB / 382.4 MB, free: 16.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007167/0.3993, allocations: 65.61 kB / 382.4 MB, free: 16.15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01146/0.4108, allocations: 5.226 MB / 387.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003317/0.4111, allocations: 0.7842 MB / 388.4 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005659/0.4117, allocations: 83.84 kB / 388.5 MB, free: 12.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002695/0.412, allocations: 92.84 kB / 388.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of SimCode: time 8.42e-07/0.412, allocations: 5.094 kB / 388.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03189/0.4439, allocations: 8.282 MB / 396.9 MB, free: 7.684 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.361/8.805, allocations: 19.59 kB / 396.9 MB, free: 7.668 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