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.00147/0.00147, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001689/0.001689, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.536/1.536, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001828/0.001828, allocations: 55.91 kB / 358.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3344/0.3362, allocations: 50.55 MB / 408.8 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003495/0.3398, allocations: 2.154 MB / 411 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001316/0.3411, allocations: 0.6899 MB / 411.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.3412, allocations: 0 / 411.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002601/0.3415, allocations: 43.64 kB / 411.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001525/0.3417, allocations: 47.62 kB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003666/0.3421, allocations: 127.8 kB / 411.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004156/0.3425, allocations: 339.2 kB / 412.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/0.3427, allocations: 80.28 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002911/0.343, allocations: 143.5 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000249/0.3432, allocations: 155.5 kB / 412.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.162e-05/0.3433, allocations: 31.94 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.316e-05/0.3434, allocations: 32 kB / 412.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001132/0.3435, allocations: 87.72 kB / 412.7 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001338/0.3436, allocations: 115.4 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004094/0.344, allocations: 285.8 kB / 413.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.3441, allocations: 0 / 413.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3441, allocations: 0 / 413.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.002e-05/0.3441, allocations: 4 kB / 413.1 MB, free: 13.17 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.00114/0.3452, allocations: 0.5879 MB / 413.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.3453, allocations: 12.03 kB / 413.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.421e-05/0.3454, allocations: 62.73 kB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.545e-05/0.3454, allocations: 32.8 kB / 413.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003897/0.3458, allocations: 252.5 kB / 414 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002201/0.3461, allocations: 137.9 kB / 414.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.209e-05/0.3461, allocations: 24 kB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008813/0.347, allocations: 363.6 kB / 414.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.775e-05/0.3471, allocations: 11.95 kB / 414.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.706e-05/0.3471, allocations: 4 kB / 414.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.3471, allocations: 8 kB / 414.6 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001425/0.3485, allocations: 0.4901 MB / 415.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.3504, allocations: 0.9958 MB / 416.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001267/0.3516, allocations: 339 kB / 416.4 MB, free: 9.668 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005671/0.3522, allocations: 181.2 kB / 416.6 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.848e-05/0.3523, allocations: 8.219 kB / 416.6 MB, free: 9.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.809e-05/0.3523, allocations: 42.8 kB / 416.6 MB, free: 9.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.443e-06/0.3523, allocations: 0 / 416.6 MB, free: 9.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.02829/0.3806, allocations: 5.787 MB / 422.4 MB, free: 3.547 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.682e-05/0.3807, allocations: 55.84 kB / 422.5 MB, free: 3.48 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003188/0.3811, allocations: 202.3 kB / 422.7 MB, free: 3.273 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.806e-05/0.3811, allocations: 33.7 kB / 422.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.3813, allocations: 153 kB / 422.9 MB, free: 3.082 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002013/0.3815, allocations: 182.4 kB / 423 MB, free: 2.902 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002476/0.3817, allocations: 94.2 kB / 423.1 MB, free: 2.805 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000207/0.382, allocations: 338.8 kB / 423.5 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001423/0.3834, allocations: 464.8 kB / 423.9 MB, free: 2.012 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001573/0.385, allocations: 0.5255 MB / 424.4 MB, free: 1.469 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002561/0.3875, allocations: 0.8032 MB / 425.2 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3876, allocations: 0 / 425.2 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003013/0.3906, allocations: 0.9869 MB / 426.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.845e-05/0.3906, allocations: 7.938 kB / 426.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/0.3906, allocations: 4 kB / 426.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.636e-05/0.3907, allocations: 7.938 kB / 426.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.3917, allocations: 163.8 kB / 426.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/0.3917, allocations: 4 kB / 426.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007061/0.3924, allocations: 91.86 kB / 426.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.575e-05/0.3925, allocations: 16 kB / 426.5 MB, free: 15.37 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.000245/0.3927, allocations: 157.7 kB / 426.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.493e-05/0.3928, allocations: 35.73 kB / 426.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001283/0.393, allocations: 47.31 kB / 426.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.338e-05/0.393, allocations: 11.98 kB / 426.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.393, allocations: 3.938 kB / 426.8 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.393, allocations: 4 kB / 426.8 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004386/0.3974, allocations: 1.881 MB / 428.6 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.329e-05/0.3974, allocations: 8 kB / 428.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006918/0.3981, allocations: 147.7 kB / 428.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-05/0.3981, allocations: 11.94 kB / 428.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.484e-05/0.3982, allocations: 24.44 kB / 428.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.264e-05/0.3982, allocations: 15.98 kB / 428.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.404e-05/0.3982, allocations: 15.94 kB / 428.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003025/0.4013, allocations: 1.221 MB / 430.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000202/0.4015, allocations: 144.9 kB / 430.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.425e-05/0.4016, allocations: 27.92 kB / 430.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005259/0.4021, allocations: 71.92 kB / 430.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001948/0.4023, allocations: 83.72 kB / 430.4 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.68e-05/0.4024, allocations: 20 kB / 430.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001906/0.4025, allocations: 148.3 kB / 430.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4026, allocations: 0 / 430.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005112/0.4031, allocations: 100 kB / 430.7 MB, free: 10.89 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.003337/0.4064, allocations: 1.785 MB / 432.5 MB, free: 8.969 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002549/0.409, allocations: 0.8609 MB / 433.3 MB, free: 8.105 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/0.409, allocations: 4 kB / 433.3 MB, free: 8.102 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001012/0.41, allocations: 329.8 kB / 433.6 MB, free: 7.781 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006195/0.4107, allocations: 58.2 kB / 433.7 MB, free: 7.727 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01152/0.4222, allocations: 5.243 MB / 438.9 MB, free: 2.164 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005059/0.4227, allocations: 0.784 MB / 439.7 MB, free: 1.355 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004286/0.4232, allocations: 83.17 kB / 439.8 MB, free: 1.277 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003038/0.4235, allocations: 99.3 kB / 439.9 MB, free: 1.18 MB / 350.1 MB Notification: Performance of SimCode: time 6.32e-07/0.4235, allocations: 0 / 439.9 MB, free: 1.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03496/0.4584, allocations: 8.327 MB / 448.2 MB, free: 8.984 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.992/9.451, allocations: 15.44 kB / 448.2 MB, free: 8.973 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.1.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