Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.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.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_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.001768/0.001768, allocations: 122.8 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001957/0.001957, allocations: 202 kB / 18.74 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.581/1.581, allocations: 227.4 MB / 247 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002893/0.002893, allocations: 59.89 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3233/0.3263, allocations: 50.55 MB / 408.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.004158/0.3305, allocations: 1.886 MB / 410.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001353/0.3319, allocations: 478.8 kB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001434/0.3321, allocations: 4 kB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000168/0.3323, allocations: 15.81 kB / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.484e-05/0.3324, allocations: 31.72 kB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002206/0.3326, allocations: 27.97 kB / 411.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002619/0.3329, allocations: 103.6 kB / 411.3 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002256/0.3331, allocations: 45.31 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.997e-05/0.3332, allocations: 31.92 kB / 411.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001172/0.3333, allocations: 47.77 kB / 411.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.798e-05/0.3334, allocations: 11.94 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.458e-05/0.3334, allocations: 12 kB / 411.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.874e-05/0.3334, allocations: 19.92 kB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.963e-05/0.3335, allocations: 47.73 kB / 411.5 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002322/0.3338, allocations: 98.56 kB / 411.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.3338, allocations: 0 / 411.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.3338, allocations: 0 / 411.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.3338, allocations: 0 / 411.6 MB, free: 14.61 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0008044/0.3346, allocations: 411.2 kB / 412 MB, free: 14.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.332e-05/0.3347, allocations: 12.03 kB / 412.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.879e-05/0.3348, allocations: 46.73 kB / 412.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.504e-05/0.3348, allocations: 8.891 kB / 412.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004052/0.3352, allocations: 196.1 kB / 412.3 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.547e-05/0.3353, allocations: 8.562 kB / 412.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.181e-05/0.3353, allocations: 16.08 kB / 412.3 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003687/0.3357, allocations: 118.4 kB / 412.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.218e-05/0.3357, allocations: 4 kB / 412.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.844e-05/0.3358, allocations: 7.938 kB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.3358, allocations: 4 kB / 412.5 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003513/0.3361, allocations: 67.94 kB / 412.5 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001238/0.3374, allocations: 0.5288 MB / 413.1 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003244/0.3377, allocations: 82.48 kB / 413.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001694/0.3379, allocations: 40.83 kB / 413.2 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.933e-05/0.3379, allocations: 4 kB / 413.2 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.901e-05/0.338, allocations: 30.56 kB / 413.2 MB, free: 12.86 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.894e-06/0.338, allocations: 0 / 413.2 MB, free: 12.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0006141/0.3386, allocations: 121.6 kB / 413.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.864e-05/0.3387, allocations: 55.41 kB / 413.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001677/0.3389, allocations: 121.8 kB / 413.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.891e-05/0.3389, allocations: 33.7 kB / 413.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.339, allocations: 116 kB / 413.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.153e-05/0.3391, allocations: 31.73 kB / 413.7 MB, free: 12.35 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.53e-05/0.3392, allocations: 29.7 kB / 413.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002006/0.3394, allocations: 318.8 kB / 414 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001753/0.3396, allocations: 35.97 kB / 414.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002338/0.3398, allocations: 68.27 kB / 414.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003914/0.3402, allocations: 104.2 kB / 414.2 MB, free: 11.76 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.3403, allocations: 4 kB / 414.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005362/0.3408, allocations: 137.4 kB / 414.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.905e-05/0.3409, allocations: 7.984 kB / 414.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.3409, allocations: 4 kB / 414.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.809e-05/0.3409, allocations: 0 / 414.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002917/0.3412, allocations: 35.92 kB / 414.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.386e-05/0.3412, allocations: 4.125 kB / 414.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001286/0.3414, allocations: 11.98 kB / 414.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.769e-05/0.3414, allocations: 4 kB / 414.4 MB, free: 11.55 MB / 334.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001889/0.3416, allocations: 125.7 kB / 414.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.409e-05/0.3417, allocations: 7.953 kB / 414.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.11e-05/0.3418, allocations: 12.38 kB / 414.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.3418, allocations: 3.938 kB / 414.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.3418, allocations: 0 / 414.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.3418, allocations: 7.969 kB / 414.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000416/0.3422, allocations: 197.6 kB / 414.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.3423, allocations: 0 / 414.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002239/0.3425, allocations: 19.98 kB / 414.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.256e-06/0.3425, allocations: 3.984 kB / 414.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.175e-05/0.3425, allocations: 4 kB / 414.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.3426, allocations: 3.938 kB / 414.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3426, allocations: 0 / 414.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007091/0.3433, allocations: 247.6 kB / 415 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.201e-05/0.3434, allocations: 85.06 kB / 415.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.539e-05/0.3434, allocations: 3.938 kB / 415.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001616/0.3436, allocations: 8.031 kB / 415.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.438e-05/0.3436, allocations: 0 / 415.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.014e-05/0.3437, allocations: 8 kB / 415.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001028/0.3438, allocations: 98.78 kB / 415.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3438, allocations: 4 kB / 415.3 MB, free: 10.63 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004573/0.3443, allocations: 23.94 kB / 415.3 MB, free: 10.61 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.001094/0.3454, allocations: 0.7592 MB / 416 MB, free: 9.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004423/0.3458, allocations: 87.88 kB / 416.1 MB, free: 9.734 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3459, allocations: 0 / 416.1 MB, free: 9.734 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001796/0.3461, allocations: 40.23 kB / 416.2 MB, free: 9.695 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005611/0.3466, allocations: 27.55 kB / 416.2 MB, free: 9.672 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003427/0.3501, allocations: 1.727 MB / 417.9 MB, free: 7.836 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000495/0.3506, allocations: 0.704 MB / 418.6 MB, free: 7.105 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.704e-05/0.3507, allocations: 12.42 kB / 418.6 MB, free: 7.094 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.421e-05/0.3508, allocations: 31.42 kB / 418.7 MB, free: 7.062 MB / 334.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3508, allocations: 0 / 418.7 MB, free: 7.062 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03283/0.3836, allocations: 2.375 MB / 421 MB, free: 4.793 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.782/9.165, allocations: 10.38 kB / 421 MB, free: 4.789 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.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,der(PI.x),der(load.phi),der(load.w),feedback.u1,feedback.u2,feedback.y,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,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,speed.flange.phi,speed.flange.tau,speed.w,time,torque.flange.phi,torque.flange.tau,torque.tau,torque.useSupport