Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 108.8 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002246/0.002246, allocations: 191.8 kB / 24.5 MB, free: 4.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.484/1.484, allocations: 225.7 MB / 253.3 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 43.92 kB / 371.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.298, allocations: 52.2 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003697/0.3017, allocations: 2.065 MB / 425.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001089/0.3028, allocations: 0.5726 MB / 426 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001235/0.3029, allocations: 3.938 kB / 426 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001303/0.303, allocations: 19.8 kB / 426.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001829/0.3032, allocations: 35.72 kB / 426.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003103/0.3035, allocations: 75.78 kB / 426.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002199/0.3038, allocations: 127.6 kB / 426.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001619/0.3039, allocations: 38.06 kB / 426.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.304, allocations: 63.7 kB / 426.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.3041, allocations: 55.72 kB / 426.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.322e-05/0.3042, allocations: 8 kB / 426.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.218e-05/0.3042, allocations: 12 kB / 426.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.641e-05/0.3042, allocations: 31.91 kB / 426.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.097e-05/0.3043, allocations: 71.59 kB / 426.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002615/0.3046, allocations: 148.1 kB / 426.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.3046, allocations: 3.938 kB / 426.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3046, allocations: 0 / 426.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.3046, allocations: 0 / 426.7 MB, free: 11.27 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006721/0.3053, allocations: 385.5 kB / 427.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.3053, allocations: 8.031 kB / 427.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.12e-05/0.3053, allocations: 8.188 kB / 427.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.209e-05/0.3054, allocations: 42.75 kB / 427.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.19e-05/0.3054, allocations: 16.84 kB / 427.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003155/0.3057, allocations: 166.2 kB / 427.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.709e-05/0.3058, allocations: 8.375 kB / 427.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.6e-05/0.3058, allocations: 16.38 kB / 427.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005504/0.3063, allocations: 262.3 kB / 427.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.3064, allocations: 3.938 kB / 427.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.649e-05/0.3064, allocations: 8 kB / 427.6 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.3064, allocations: 4 kB / 427.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002601/0.3067, allocations: 83.88 kB / 427.7 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007063/0.3074, allocations: 0.5505 MB / 428.3 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003786/0.3077, allocations: 143.9 kB / 428.4 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001614/0.3079, allocations: 66.62 kB / 428.5 MB, free: 9.336 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.279e-05/0.3079, allocations: 8 kB / 428.5 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.838e-05/0.308, allocations: 34.56 kB / 428.5 MB, free: 9.285 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.308, allocations: 3.938 kB / 428.5 MB, free: 9.281 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005369/0.3085, allocations: 185.4 kB / 428.7 MB, free: 9.094 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.146e-05/0.3086, allocations: 114.8 kB / 428.8 MB, free: 8.957 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001559/0.3088, allocations: 162.3 kB / 429 MB, free: 8.789 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.515e-05/0.3088, allocations: 33.7 kB / 429 MB, free: 8.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.241e-05/0.3089, allocations: 108.5 kB / 429.1 MB, free: 8.641 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.779e-05/0.3089, allocations: 27.78 kB / 429.1 MB, free: 8.613 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.874e-05/0.309, allocations: 37.67 kB / 429.2 MB, free: 8.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.3091, allocations: 326.8 kB / 429.5 MB, free: 8.242 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.3092, allocations: 31.97 kB / 429.5 MB, free: 8.211 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000192/0.3094, allocations: 139.6 kB / 429.7 MB, free: 8.027 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003338/0.3097, allocations: 193.4 kB / 429.8 MB, free: 7.789 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.3097, allocations: 4 kB / 429.8 MB, free: 7.785 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003865/0.3101, allocations: 189.2 kB / 430 MB, free: 7.594 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.3102, allocations: 4.469 kB / 430 MB, free: 7.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.3102, allocations: 8 kB / 430 MB, free: 7.582 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.267e-05/0.3102, allocations: 8.234 kB / 430.1 MB, free: 7.574 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001585/0.3103, allocations: 43.92 kB / 430.1 MB, free: 7.531 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.5e-05/0.3104, allocations: 11.92 kB / 430.1 MB, free: 7.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.3105, allocations: 20.27 kB / 430.1 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.943e-05/0.3105, allocations: 12 kB / 430.1 MB, free: 7.488 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001376/0.3106, allocations: 133.7 kB / 430.3 MB, free: 7.348 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000169/0.3108, allocations: 101.5 kB / 430.4 MB, free: 7.242 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.364e-05/0.3109, allocations: 16.72 kB / 430.4 MB, free: 7.227 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.3109, allocations: 7.984 kB / 430.4 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-06/0.3109, allocations: 0 / 430.4 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.3109, allocations: 0 / 430.4 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000312/0.3112, allocations: 196.5 kB / 430.6 MB, free: 6.984 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3112, allocations: 0 / 430.6 MB, free: 6.984 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001942/0.3114, allocations: 43.91 kB / 430.6 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.3114, allocations: 0 / 430.6 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.3114, allocations: 0 / 430.6 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.3114, allocations: 4 kB / 430.6 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3114, allocations: 4 kB / 430.6 MB, free: 6.934 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005981/0.312, allocations: 387.3 kB / 431 MB, free: 6.535 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.578e-05/0.3121, allocations: 23.92 kB / 431 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.75e-05/0.3121, allocations: 16 kB / 431.1 MB, free: 6.496 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001359/0.3123, allocations: 7.984 kB / 431.1 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.284e-05/0.3123, allocations: 0 / 431.1 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.441e-05/0.3123, allocations: 12 kB / 431.1 MB, free: 6.477 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001049/0.3124, allocations: 120.1 kB / 431.2 MB, free: 6.359 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3124, allocations: 0 / 431.2 MB, free: 6.359 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003537/0.3128, allocations: 31.94 kB / 431.2 MB, free: 6.328 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.001017/0.3138, allocations: 0.9156 MB / 432.1 MB, free: 5.387 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003682/0.3142, allocations: 123.7 kB / 432.3 MB, free: 5.266 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3142, allocations: 0 / 432.3 MB, free: 5.266 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001129/0.3143, allocations: 31.91 kB / 432.3 MB, free: 5.234 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005793/0.3149, allocations: 60.61 kB / 432.3 MB, free: 5.18 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002911/0.3178, allocations: 2.112 MB / 434.5 MB, free: 2.891 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003928/0.3182, allocations: 0.7278 MB / 435.2 MB, free: 2.137 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.675e-05/0.3182, allocations: 9.438 kB / 435.2 MB, free: 2.125 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.075e-05/0.3183, allocations: 43.42 kB / 435.2 MB, free: 2.082 MB / 334.1 MB Notification: Performance of SimCode: time 1.001e-06/0.3183, allocations: 0 / 435.2 MB, free: 2.082 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02739/0.3457, allocations: 3.196 MB / 438.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.61, allocations: 7.5 kB / 438.4 MB, free: 15.06 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.k,PI.u,PI.x,PI.y,der(load.phi),der(load.w),feedback.u1,feedback.u2,feedback.y,hold1.u,hold1.y,hold1.y_start,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,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,previous(PI.x),ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,sample1.u,sample1.y,sample2.u,sample2.y,speed.flange.phi,speed.flange.tau,speed.w,time,torque.flange.phi,torque.flange.tau,torque.tau,torque.useSupport [Calling sys.exit(0), Time elapsed: 14.256227897014469]