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.0008401/0.0008403, allocations: 93.78 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009843/0.0009843, allocations: 197.9 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002362/0.000236, allocations: 8 kB / 307.8 MB, free: 0.7617 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07961/0.07987, allocations: 51.52 MB / 359.3 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002308/0.08222, allocations: 1.844 MB / 361.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001061/0.0833, allocations: 0.6667 MB / 361.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.84e-05/0.08341, allocations: 4 kB / 361.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002195/0.08363, allocations: 43.75 kB / 361.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001128/0.08375, allocations: 31.77 kB / 361.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003016/0.08406, allocations: 115.8 kB / 362 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003104/0.08438, allocations: 323.2 kB / 362.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001668/0.08456, allocations: 64.36 kB / 362.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002261/0.08479, allocations: 123.5 kB / 362.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002005/0.085, allocations: 143.4 kB / 362.7 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.426e-05/0.08505, allocations: 12 kB / 362.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.671e-05/0.0851, allocations: 16 kB / 362.7 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.526e-05/0.08519, allocations: 67.78 kB / 362.8 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001204/0.08532, allocations: 137.1 kB / 362.9 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002811/0.0856, allocations: 263.2 kB / 363.2 MB, free: 9.379 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.08562, allocations: 7.938 kB / 363.2 MB, free: 9.371 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.08562, allocations: 0 / 363.2 MB, free: 9.371 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.08563, allocations: 0 / 363.2 MB, free: 9.371 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.001025/0.08666, allocations: 0.5495 MB / 363.7 MB, free: 8.773 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.979e-05/0.08671, allocations: 8.031 kB / 363.7 MB, free: 8.766 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.394e-05/0.08679, allocations: 62.67 kB / 363.8 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.832e-05/0.08685, allocations: 36.64 kB / 363.8 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002778/0.08714, allocations: 247.5 kB / 364.1 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002036/0.08735, allocations: 145.9 kB / 364.2 MB, free: 8.223 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.015e-05/0.08741, allocations: 24 kB / 364.2 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008267/0.08824, allocations: 387.5 kB / 364.6 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.08827, allocations: 0 / 364.6 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.127e-05/0.0883, allocations: 12 kB / 364.6 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.08832, allocations: 4 kB / 364.6 MB, free: 7.793 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001326/0.08965, allocations: 0.5135 MB / 365.1 MB, free: 7.277 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001597/0.09126, allocations: 1.03 MB / 366.2 MB, free: 6.172 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.09245, allocations: 355.1 kB / 366.5 MB, free: 5.816 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005027/0.09296, allocations: 189.2 kB / 366.7 MB, free: 5.629 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.093, allocations: 240 / 366.7 MB, free: 5.629 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.09303, allocations: 38.8 kB / 366.7 MB, free: 5.582 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.062e-06/0.09304, allocations: 0 / 366.7 MB, free: 5.582 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.1645/0.2575, allocations: 6.672 MB / 373.4 MB, free: 19.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.072e-05/0.2576, allocations: 58.22 kB / 373.5 MB, free: 19.26 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002556/0.2578, allocations: 201.3 kB / 373.7 MB, free: 19.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.11e-05/0.2579, allocations: 32.77 kB / 373.7 MB, free: 19.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.034e-05/0.258, allocations: 158.4 kB / 373.9 MB, free: 19.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001364/0.2581, allocations: 178.5 kB / 374 MB, free: 18.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.855e-05/0.2582, allocations: 45.8 kB / 374.1 MB, free: 18.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.579e-05/0.2583, allocations: 339.5 kB / 374.4 MB, free: 18.58 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001349/0.2597, allocations: 0.4929 MB / 374.9 MB, free: 18.58 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001435/0.2611, allocations: 0.5509 MB / 375.5 MB, free: 18.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002568/0.2637, allocations: 0.8784 MB / 376.3 MB, free: 18.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2637, allocations: 1.375 kB / 376.3 MB, free: 18.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002795/0.2665, allocations: 1.068 MB / 377.4 MB, free: 18.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.2665, allocations: 5.719 kB / 377.4 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.2665, allocations: 1.25 kB / 377.4 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.788e-05/0.2666, allocations: 7.219 kB / 377.4 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009637/0.2675, allocations: 187.4 kB / 377.6 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/0.2676, allocations: 6.953 kB / 377.6 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006956/0.2683, allocations: 102.7 kB / 377.7 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.812e-05/0.2683, allocations: 19.67 kB / 377.7 MB, free: 18.24 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.0002031/0.2685, allocations: 158.7 kB / 377.9 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.667e-05/0.2686, allocations: 34.44 kB / 377.9 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000128/0.2688, allocations: 56.64 kB / 378 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.2688, allocations: 5.062 kB / 378 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/0.2688, allocations: 1.156 kB / 378 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.782e-06/0.2688, allocations: 3.797 kB / 378 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003935/0.2727, allocations: 1.993 MB / 380 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.033e-05/0.2728, allocations: 9.25 kB / 380 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006802/0.2735, allocations: 164.5 kB / 380.1 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.609e-05/0.2735, allocations: 14.84 kB / 380.2 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.047e-05/0.2735, allocations: 20.66 kB / 380.2 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-05/0.2735, allocations: 17.12 kB / 380.2 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.828e-06/0.2736, allocations: 13.56 kB / 380.2 MB, free: 16.97 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002771/0.2763, allocations: 1.349 MB / 381.6 MB, free: 16.24 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001537/0.2765, allocations: 147.1 kB / 381.7 MB, free: 16.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.963e-05/0.2766, allocations: 22.81 kB / 381.7 MB, free: 16.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005291/0.2771, allocations: 90.98 kB / 381.8 MB, free: 16.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001875/0.2773, allocations: 88.92 kB / 381.9 MB, free: 16.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.077e-05/0.2773, allocations: 24.48 kB / 381.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001526/0.2775, allocations: 147.7 kB / 382.1 MB, free: 15.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2775, allocations: 0 / 382.1 MB, free: 15.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005227/0.278, allocations: 96.44 kB / 382.2 MB, free: 15.95 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.002882/0.2809, allocations: 1.894 MB / 384.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002348/0.2833, allocations: 0.9204 MB / 385 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.2833, allocations: 5.281 kB / 385 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009471/0.2843, allocations: 365.8 kB / 385.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007055/0.285, allocations: 66.95 kB / 385.4 MB, free: 14.28 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01022/0.2952, allocations: 5.583 MB / 391 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000257/0.2955, allocations: 0.7823 MB / 391.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004699/0.296, allocations: 83.05 kB / 391.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002476/0.2962, allocations: 95.67 kB / 391.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2962, allocations: 0 / 391.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01795/0.3142, allocations: 7.609 MB / 399.6 MB, free: 4.973 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001714/0.3144, allocations: 211.1 kB / 399.8 MB, free: 4.719 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.902/2.216, allocations: 0 / 399.8 MB, free: 4.719 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