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.001285/0.001285, allocations: 107.1 kB / 17.32 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001334/0.001334, allocations: 205.8 kB / 18.26 MB, free: 4.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.4 MB / 246.4 MB, free: 9.082 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 60.53 kB / 306.6 MB, free: 0.6289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09934/0.1007, allocations: 50.52 MB / 357.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003839/0.1046, allocations: 2.198 MB / 359.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001362/0.106, allocations: 0.6822 MB / 360 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002031/0.1062, allocations: 4 kB / 360 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003261/0.1066, allocations: 31.78 kB / 360 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002012/0.1068, allocations: 43.75 kB / 360 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004186/0.1072, allocations: 115.8 kB / 360.1 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004228/0.1077, allocations: 347.2 kB / 360.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001979/0.1079, allocations: 68.31 kB / 360.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003528/0.1082, allocations: 151.5 kB / 360.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002731/0.1085, allocations: 151.4 kB / 360.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.828e-05/0.1086, allocations: 32 kB / 360.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.426e-05/0.1087, allocations: 28 kB / 360.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.1088, allocations: 83.78 kB / 361 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001338/0.1089, allocations: 123.4 kB / 361.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003076/0.1092, allocations: 287.3 kB / 361.4 MB, free: 9.766 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.059e-05/0.1093, allocations: 8 kB / 361.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1093, allocations: 0 / 361.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.1093, allocations: 0 / 361.4 MB, free: 9.758 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.001165/0.1104, allocations: 0.5689 MB / 362 MB, free: 9.141 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.1105, allocations: 8.031 kB / 362 MB, free: 9.133 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.58e-05/0.1106, allocations: 66.72 kB / 362 MB, free: 9.059 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.576e-05/0.1107, allocations: 40.64 kB / 362.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000305/0.111, allocations: 253.2 kB / 362.3 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000195/0.1112, allocations: 138 kB / 362.5 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.11e-05/0.1113, allocations: 24 kB / 362.5 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008437/0.1121, allocations: 371.5 kB / 362.8 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.844e-05/0.1121, allocations: 0 / 362.8 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.503e-05/0.1122, allocations: 15.98 kB / 362.9 MB, free: 8.168 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.1122, allocations: 4 kB / 362.9 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/0.1136, allocations: 493.9 kB / 363.4 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00178/0.1154, allocations: 1.011 MB / 364.4 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001293/0.1167, allocations: 342.4 kB / 364.7 MB, free: 6.254 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004639/0.1171, allocations: 169.2 kB / 364.9 MB, free: 6.086 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.382e-05/0.1172, allocations: 4.234 kB / 364.9 MB, free: 6.082 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.679e-05/0.1172, allocations: 34.8 kB / 364.9 MB, free: 6.039 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.134e-06/0.1172, allocations: 3.938 kB / 364.9 MB, free: 6.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.03319/0.1504, allocations: 5.796 MB / 370.7 MB, free: 152 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.639e-05/0.1505, allocations: 59.84 kB / 370.8 MB, free: 80 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1517/0.3023, allocations: 193.5 kB / 370.9 MB, free: 21.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000102/0.3024, allocations: 34.53 kB / 371 MB, free: 21.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.311e-05/0.3025, allocations: 146.3 kB / 371.1 MB, free: 21.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001308/0.3026, allocations: 177.3 kB / 371.3 MB, free: 21.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000209/0.3028, allocations: 89.23 kB / 371.4 MB, free: 21.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.106e-05/0.3029, allocations: 342.1 kB / 371.7 MB, free: 20.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001229/0.3041, allocations: 470.5 kB / 372.2 MB, free: 20.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001284/0.3054, allocations: 0.514 MB / 372.7 MB, free: 20.65 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002161/0.3076, allocations: 0.8086 MB / 373.5 MB, free: 20.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3076, allocations: 3.781 kB / 373.5 MB, free: 20.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002702/0.3103, allocations: 0.9792 MB / 374.5 MB, free: 20 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.449e-05/0.3104, allocations: 6.891 kB / 374.5 MB, free: 20 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.3104, allocations: 1.031 kB / 374.5 MB, free: 20 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.411e-05/0.3104, allocations: 9.625 kB / 374.5 MB, free: 20 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009614/0.3114, allocations: 168.4 kB / 374.7 MB, free: 19.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/0.3114, allocations: 4.562 kB / 374.7 MB, free: 19.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006604/0.3121, allocations: 91.33 kB / 374.8 MB, free: 19.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.327e-05/0.3121, allocations: 16.38 kB / 374.8 MB, free: 19.98 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.0002182/0.3123, allocations: 157.5 kB / 374.9 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.959e-05/0.3124, allocations: 30.22 kB / 375 MB, free: 19.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001062/0.3125, allocations: 56.39 kB / 375 MB, free: 19.78 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.3126, allocations: 4.125 kB / 375 MB, free: 19.78 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.3126, allocations: 1.984 kB / 375 MB, free: 19.78 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.3126, allocations: 2.719 kB / 375 MB, free: 19.78 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003872/0.3165, allocations: 1.877 MB / 376.9 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.073e-05/0.3165, allocations: 13.5 kB / 376.9 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006337/0.3171, allocations: 144.9 kB / 377.1 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.478e-05/0.3171, allocations: 11.19 kB / 377.1 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.813e-05/0.3172, allocations: 24.64 kB / 377.1 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.528e-05/0.3172, allocations: 16.77 kB / 377.1 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.127e-05/0.3172, allocations: 13.11 kB / 377.1 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002592/0.3198, allocations: 1.227 MB / 378.3 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001417/0.32, allocations: 144.1 kB / 378.5 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.563e-05/0.3201, allocations: 26.08 kB / 378.5 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005076/0.3206, allocations: 72.7 kB / 378.6 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001923/0.3208, allocations: 87.58 kB / 378.7 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.171e-05/0.3208, allocations: 24.75 kB / 378.7 MB, free: 17.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001538/0.321, allocations: 148.5 kB / 378.8 MB, free: 17.74 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.321, allocations: 1.312 kB / 378.8 MB, free: 17.74 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004877/0.3215, allocations: 96.22 kB / 378.9 MB, free: 17.72 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.00272/0.3242, allocations: 1.78 MB / 380.7 MB, free: 16.47 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002187/0.3264, allocations: 0.8773 MB / 381.6 MB, free: 16.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.3264, allocations: 1.312 kB / 381.6 MB, free: 16.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009091/0.3273, allocations: 327.6 kB / 381.9 MB, free: 16.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006253/0.328, allocations: 65.09 kB / 382 MB, free: 16.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009674/0.3377, allocations: 5.345 MB / 387.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002362/0.3379, allocations: 0.7802 MB / 388.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004906/0.3384, allocations: 83.83 kB / 388.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002595/0.3387, allocations: 93.66 kB / 388.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3387, allocations: 0 / 388.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05063/0.3893, allocations: 8.029 MB / 396.3 MB, free: 8.016 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001611/0.3895, allocations: 210.9 kB / 396.5 MB, free: 7.766 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.111/2.5, allocations: 0 / 396.5 MB, free: 7.766 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