Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009783/0.0009783, allocations: 199.4 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 226.5 MB / 244.7 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008457/0.0008458, allocations: 93.72 kB / 296.7 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002401/0.0002402, allocations: 4 kB / 356.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2729/0.2731, allocations: 51.29 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.001941/0.2751, allocations: 1.793 MB / 409.9 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009047/0.276, allocations: 0.6425 MB / 410.6 MB, free: 25.24 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001072/0.2762, allocations: 8.562 kB / 410.6 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002662/0.2764, allocations: 35.77 kB / 410.6 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001062/0.2765, allocations: 34.83 kB / 410.6 MB, free: 25.17 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002655/0.2768, allocations: 95.88 kB / 410.7 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002476/0.2771, allocations: 303 kB / 411 MB, free: 24.78 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001425/0.2772, allocations: 59.83 kB / 411.1 MB, free: 24.72 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001908/0.2774, allocations: 131.5 kB / 411.2 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001578/0.2776, allocations: 132.2 kB / 411.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.398e-05/0.2776, allocations: 15.94 kB / 411.4 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.344e-05/0.2777, allocations: 16.56 kB / 411.4 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.036e-05/0.2778, allocations: 68.44 kB / 411.4 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.639e-05/0.2779, allocations: 125.2 kB / 411.6 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001556/0.278, allocations: 201.4 kB / 411.8 MB, free: 24.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.278, allocations: 0 / 411.8 MB, free: 24.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.278, allocations: 5.188 kB / 411.8 MB, free: 24.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.278, allocations: 0 / 411.8 MB, free: 24.04 MB / 298.7 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.0008662/0.2789, allocations: 0.5547 MB / 412.3 MB, free: 23.44 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.279, allocations: 12.03 kB / 412.3 MB, free: 23.43 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.954e-05/0.279, allocations: 58.73 kB / 412.4 MB, free: 23.36 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.408e-05/0.2791, allocations: 36.59 kB / 412.4 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002435/0.2793, allocations: 247.7 kB / 412.7 MB, free: 23.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001675/0.2795, allocations: 146 kB / 412.8 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.333e-05/0.2796, allocations: 27.97 kB / 412.8 MB, free: 22.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007231/0.2803, allocations: 371.6 kB / 413.2 MB, free: 22.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.2803, allocations: 7.938 kB / 413.2 MB, free: 22.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.875e-05/0.2804, allocations: 12 kB / 413.2 MB, free: 22.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.2804, allocations: 4 kB / 413.2 MB, free: 22.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001166/0.2815, allocations: 0.5057 MB / 413.7 MB, free: 21.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001438/0.283, allocations: 1.03 MB / 414.8 MB, free: 20.86 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00105/0.2841, allocations: 352.1 kB / 415.1 MB, free: 20.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004652/0.2845, allocations: 189.2 kB / 415.3 MB, free: 20.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.603e-05/0.2846, allocations: 4.219 kB / 415.3 MB, free: 20.31 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.485e-05/0.2846, allocations: 34.8 kB / 415.3 MB, free: 20.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 2.405e-06/0.2846, allocations: 0 / 415.3 MB, free: 20.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.02575/0.3104, allocations: 6.667 MB / 422 MB, free: 13.51 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/0.3105, allocations: 59.84 kB / 422.1 MB, free: 13.44 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002114/0.3107, allocations: 198.7 kB / 422.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.55e-05/0.3107, allocations: 37.7 kB / 422.3 MB, free: 13.19 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.678e-05/0.3108, allocations: 148.6 kB / 422.4 MB, free: 13.04 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.3109, allocations: 177.4 kB / 422.6 MB, free: 12.87 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.657e-05/0.311, allocations: 12 kB / 422.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.958e-05/0.3111, allocations: 334.8 kB / 422.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001128/0.3122, allocations: 0.493 MB / 423.4 MB, free: 12.03 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001181/0.3134, allocations: 0.5529 MB / 424 MB, free: 11.46 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002078/0.3155, allocations: 0.8736 MB / 424.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3155, allocations: 4 kB / 424.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002432/0.3179, allocations: 1.057 MB / 425.9 MB, free: 9.504 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.318, allocations: 11.88 kB / 425.9 MB, free: 9.492 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.318, allocations: 0 / 425.9 MB, free: 9.492 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.318, allocations: 4 kB / 425.9 MB, free: 9.488 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000895/0.3189, allocations: 187.8 kB / 426.1 MB, free: 9.305 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.3189, allocations: 4 kB / 426.1 MB, free: 9.301 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006309/0.3196, allocations: 115.9 kB / 426.2 MB, free: 9.188 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.105e-05/0.3196, allocations: 16 kB / 426.3 MB, free: 9.172 MB / 298.7 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.moving[1],kinematicPTP.noWphase) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000187/0.3198, allocations: 162.8 kB / 426.4 MB, free: 9.004 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.077e-05/0.3199, allocations: 31.66 kB / 426.4 MB, free: 8.973 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001072/0.32, allocations: 51.25 kB / 426.5 MB, free: 8.918 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.32, allocations: 4 kB / 426.5 MB, free: 8.914 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.32, allocations: 0 / 426.5 MB, free: 8.914 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/0.32, allocations: 3.984 kB / 426.5 MB, free: 8.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003493/0.3235, allocations: 1.991 MB / 428.5 MB, free: 6.754 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.3236, allocations: 8 kB / 428.5 MB, free: 6.746 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005921/0.3242, allocations: 163.8 kB / 428.7 MB, free: 6.586 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.977e-06/0.3242, allocations: 15.94 kB / 428.7 MB, free: 6.57 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.564e-05/0.3242, allocations: 16 kB / 428.7 MB, free: 6.555 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.989e-06/0.3243, allocations: 23.92 kB / 428.7 MB, free: 6.531 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/0.3243, allocations: 11.94 kB / 428.7 MB, free: 6.52 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002438/0.3267, allocations: 1.33 MB / 430.1 MB, free: 5.059 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001499/0.3269, allocations: 148.6 kB / 430.2 MB, free: 4.895 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.52e-05/0.3269, allocations: 19.98 kB / 430.2 MB, free: 4.875 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000486/0.3274, allocations: 91.92 kB / 430.3 MB, free: 4.785 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001918/0.3276, allocations: 95.62 kB / 430.4 MB, free: 4.691 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.39e-05/0.3277, allocations: 24 kB / 430.4 MB, free: 4.668 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000131/0.3278, allocations: 151.2 kB / 430.6 MB, free: 4.52 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3278, allocations: 0 / 430.6 MB, free: 4.52 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004613/0.3283, allocations: 96 kB / 430.7 MB, free: 4.426 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002594/0.3309, allocations: 1.902 MB / 432.6 MB, free: 2.387 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002061/0.333, allocations: 0.9338 MB / 433.5 MB, free: 1.453 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.333, allocations: 0 / 433.5 MB, free: 1.453 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008296/0.3338, allocations: 357.7 kB / 433.9 MB, free: 1.105 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007116/0.3345, allocations: 68.12 kB / 433.9 MB, free: 1.043 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006728/0.3413, allocations: 3.34 MB / 437.3 MB, free: 13.53 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000397/0.3417, allocations: 0.7804 MB / 438 MB, free: 12.73 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003434/0.342, allocations: 91.42 kB / 438.1 MB, free: 12.64 MB / 314.7 MB Notification: Performance of SimCode: time 1.132e-06/0.3421, allocations: 4 kB / 438.1 MB, free: 12.63 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.081/3.423, allocations: 5.107 MB / 443.2 MB, free: 7.527 MB / 314.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_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.Ta1,kinematicPTP.Ta1s,kinematicPTP.Ta2,kinematicPTP.Ta2s,kinematicPTP.Te,kinematicPTP.Tes,kinematicPTP.Tv,kinematicPTP.Tvs,kinematicPTP.aux1[1],kinematicPTP.aux2[1],kinematicPTP.endTime,kinematicPTP.motion_ref,kinematicPTP.moving[1],kinematicPTP.noWphase,kinematicPTP.nout,kinematicPTP.p_deltaq[1],kinematicPTP.p_q_begin[1],kinematicPTP.p_q_end[1],kinematicPTP.p_qd_max[1],kinematicPTP.p_qdd_max[1],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.s,kinematicPTP.s1,kinematicPTP.s2,kinematicPTP.s3,kinematicPTP.sd,kinematicPTP.sd_max,kinematicPTP.sd_max2,kinematicPTP.sd_max_inv,kinematicPTP.sdd,kinematicPTP.sdd_max,kinematicPTP.sdd_max_inv,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.phi_support,torque.tau,torque.useSupport