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.001161/0.001161, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001342/0.001342, allocations: 197.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 55.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3927/0.3945, allocations: 50.54 MB / 408.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003984/0.3986, allocations: 2.148 MB / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001686/0.4003, allocations: 0.6899 MB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000229/0.4006, allocations: 4 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004632/0.4011, allocations: 47.64 kB / 411.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001971/0.4013, allocations: 47.62 kB / 411.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005534/0.4019, allocations: 123.8 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004925/0.4024, allocations: 343.2 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003141/0.4027, allocations: 72.3 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004084/0.4031, allocations: 147.5 kB / 412.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002973/0.4034, allocations: 151.4 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.516e-05/0.4035, allocations: 36 kB / 412.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.567e-05/0.4036, allocations: 31.94 kB / 412.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001465/0.4037, allocations: 87.78 kB / 412.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001701/0.4039, allocations: 123.4 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004802/0.4044, allocations: 284.7 kB / 413 MB, free: 13.21 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.4044, allocations: 0 / 413 MB, free: 13.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.729e-06/0.4044, allocations: 0 / 413 MB, free: 13.21 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.4044, allocations: 0 / 413 MB, free: 13.21 MB / 334.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.001463/0.4059, allocations: 0.5842 MB / 413.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.222e-05/0.406, allocations: 12.03 kB / 413.6 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.598e-05/0.4061, allocations: 58.73 kB / 413.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.627e-05/0.4062, allocations: 36.66 kB / 413.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005209/0.4067, allocations: 243.9 kB / 414 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002104/0.4069, allocations: 137.9 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.09e-05/0.407, allocations: 27.91 kB / 414.1 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008592/0.4079, allocations: 363.6 kB / 414.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.96e-05/0.4079, allocations: 8 kB / 414.5 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.031e-05/0.4079, allocations: 8 kB / 414.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.4079, allocations: 8 kB / 414.5 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001377/0.4093, allocations: 497.8 kB / 415 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002204/0.4115, allocations: 1.003 MB / 416 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/0.4129, allocations: 339.1 kB / 416.3 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005356/0.4134, allocations: 181.1 kB / 416.5 MB, free: 9.535 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.145e-05/0.4135, allocations: 4.234 kB / 416.5 MB, free: 9.531 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.139e-05/0.4135, allocations: 34.8 kB / 416.5 MB, free: 9.488 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 2.054e-06/0.4135, allocations: 0 / 416.5 MB, free: 9.488 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.02867/0.4422, allocations: 5.786 MB / 422.3 MB, free: 3.605 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.954e-05/0.4423, allocations: 59.84 kB / 422.4 MB, free: 3.535 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003217/0.4426, allocations: 210.2 kB / 422.6 MB, free: 3.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.175e-05/0.4427, allocations: 33.7 kB / 422.6 MB, free: 3.281 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.4428, allocations: 148.7 kB / 422.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.443, allocations: 173.4 kB / 422.9 MB, free: 2.961 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002424/0.4432, allocations: 94.16 kB / 423 MB, free: 2.863 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.4434, allocations: 334.8 kB / 423.4 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001395/0.4448, allocations: 468.8 kB / 423.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001425/0.4462, allocations: 0.5216 MB / 424.3 MB, free: 1.531 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002499/0.4487, allocations: 0.8071 MB / 425.1 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.4488, allocations: 0 / 425.1 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002966/0.4517, allocations: 0.9788 MB / 426.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.385e-05/0.4518, allocations: 7.938 kB / 426.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.4518, allocations: 7.938 kB / 426.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.386e-05/0.4518, allocations: 128 / 426.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/0.4529, allocations: 167.8 kB / 426.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.553e-05/0.4529, allocations: 7.984 kB / 426.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007701/0.4537, allocations: 83.89 kB / 426.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.397e-05/0.4537, allocations: 16 kB / 426.4 MB, free: 15.44 MB / 350.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.000247/0.454, allocations: 169.6 kB / 426.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.137e-05/0.4541, allocations: 27.66 kB / 426.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001114/0.4542, allocations: 47.31 kB / 426.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.124e-06/0.4542, allocations: 4 kB / 426.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/0.4542, allocations: 7.984 kB / 426.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.4543, allocations: 3.938 kB / 426.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004407/0.4587, allocations: 1.878 MB / 428.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.564e-05/0.4587, allocations: 12.03 kB / 428.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006947/0.4594, allocations: 147.7 kB / 428.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.817e-05/0.4595, allocations: 11.94 kB / 428.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.459e-05/0.4595, allocations: 16 kB / 428.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.239e-05/0.4595, allocations: 15.98 kB / 428.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.199e-05/0.4595, allocations: 15.94 kB / 428.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003005/0.4626, allocations: 1.225 MB / 430 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002167/0.4628, allocations: 148.7 kB / 430.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.203e-05/0.4629, allocations: 23.98 kB / 430.1 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005657/0.4634, allocations: 67.92 kB / 430.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002176/0.4637, allocations: 87.73 kB / 430.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.852e-05/0.4637, allocations: 31.97 kB / 430.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001891/0.4639, allocations: 148.3 kB / 430.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4639, allocations: 0 / 430.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005536/0.4645, allocations: 92 kB / 430.6 MB, free: 10.95 MB / 350.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.003504/0.468, allocations: 1.784 MB / 432.3 MB, free: 9.039 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002611/0.4706, allocations: 0.8687 MB / 433.2 MB, free: 8.168 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.768e-06/0.4707, allocations: 4 kB / 433.2 MB, free: 8.164 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001064/0.4717, allocations: 329.3 kB / 433.5 MB, free: 7.844 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007281/0.4725, allocations: 58.2 kB / 433.6 MB, free: 7.789 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01184/0.4843, allocations: 5.224 MB / 438.8 MB, free: 2.246 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004677/0.4849, allocations: 0.7801 MB / 439.6 MB, free: 1.438 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004662/0.4853, allocations: 87.12 kB / 439.7 MB, free: 1.355 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003137/0.4857, allocations: 99.41 kB / 439.8 MB, free: 1.258 MB / 350.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4857, allocations: 0 / 439.8 MB, free: 1.258 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03243/0.5181, allocations: 8.544 MB / 448.3 MB, free: 8.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.621/9.139, allocations: 11.55 kB / 448.3 MB, free: 8.832 MB / 366.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(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