Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001328/0.001328, allocations: 108.6 kB / 21.22 MB, free: 0.7305 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.001415/0.001415, allocations: 191.7 kB / 24.51 MB, free: 4.086 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.44/1.44, allocations: 225.6 MB / 253.3 MB, free: 13.03 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.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001564/0.001564, allocations: 47.92 kB / 371.2 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3202, allocations: 52.18 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003803/0.324, allocations: 2.107 MB / 425.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001065/0.3251, allocations: 0.5065 MB / 426 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.3252, allocations: 4 kB / 426 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001223/0.3253, allocations: 15.8 kB / 426 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.286e-05/0.3254, allocations: 27.73 kB / 426.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003236/0.3258, allocations: 55.86 kB / 426.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002162/0.326, allocations: 123.6 kB / 426.2 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001599/0.3261, allocations: 45.97 kB / 426.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001/0.3262, allocations: 55.73 kB / 426.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.586e-05/0.3263, allocations: 55.77 kB / 426.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.871e-05/0.3264, allocations: 12 kB / 426.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.163e-05/0.3264, allocations: 15.94 kB / 426.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.639e-05/0.3264, allocations: 27.91 kB / 426.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.393e-05/0.3265, allocations: 55.67 kB / 426.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002482/0.3267, allocations: 136.2 kB / 426.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3267, allocations: 0 / 426.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3267, allocations: 0 / 426.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.3268, allocations: 0 / 426.6 MB, free: 11.36 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0006549/0.3274, allocations: 361.8 kB / 427 MB, free: 10.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.3275, allocations: 12.03 kB / 427 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.854e-05/0.3275, allocations: 4.188 kB / 427 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.893e-05/0.3275, allocations: 46.73 kB / 427 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.197e-05/0.3276, allocations: 12.84 kB / 427 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003065/0.3279, allocations: 158.2 kB / 427.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.953e-05/0.3279, allocations: 12.38 kB / 427.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.734e-05/0.3279, allocations: 16.38 kB / 427.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004982/0.3284, allocations: 226.5 kB / 427.5 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.3284, allocations: 4 kB / 427.5 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/0.3285, allocations: 8 kB / 427.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.3285, allocations: 4 kB / 427.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002538/0.3287, allocations: 87.23 kB / 427.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007763/0.3295, allocations: 0.5427 MB / 428.1 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003946/0.3299, allocations: 147.9 kB / 428.2 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001586/0.33, allocations: 70.64 kB / 428.3 MB, free: 9.492 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.744e-05/0.3301, allocations: 4 kB / 428.3 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.489e-05/0.3301, allocations: 38.5 kB / 428.4 MB, free: 9.441 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.442e-06/0.3301, allocations: 0 / 428.4 MB, free: 9.441 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005226/0.3306, allocations: 177.4 kB / 428.5 MB, free: 9.262 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.3307, allocations: 122.7 kB / 428.6 MB, free: 9.117 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.3309, allocations: 132.7 kB / 428.8 MB, free: 8.98 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.411e-05/0.3309, allocations: 33.7 kB / 428.8 MB, free: 8.941 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.938e-05/0.331, allocations: 112.1 kB / 428.9 MB, free: 8.828 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.309e-05/0.331, allocations: 27.78 kB / 428.9 MB, free: 8.801 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.064e-05/0.3311, allocations: 37.7 kB / 429 MB, free: 8.758 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.3313, allocations: 327 kB / 429.3 MB, free: 8.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.3314, allocations: 35.97 kB / 429.3 MB, free: 8.395 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000194/0.3316, allocations: 136.9 kB / 429.5 MB, free: 8.215 MB / 334.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0004666/0.332, allocations: 213.5 kB / 429.7 MB, free: 7.957 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.332, allocations: 0 / 429.7 MB, free: 7.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000391/0.3324, allocations: 193.2 kB / 429.9 MB, free: 7.762 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.3324, allocations: 8 kB / 429.9 MB, free: 7.754 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.3325, allocations: 4 kB / 429.9 MB, free: 7.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.3325, allocations: 4 kB / 429.9 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001588/0.3326, allocations: 44.39 kB / 429.9 MB, free: 7.703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.606e-05/0.3327, allocations: 23.86 kB / 429.9 MB, free: 7.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.3328, allocations: 15.89 kB / 430 MB, free: 7.664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.743e-05/0.3328, allocations: 12 kB / 430 MB, free: 7.652 MB / 334.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. 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.0001517/0.3329, allocations: 134.1 kB / 430.1 MB, free: 7.512 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001743/0.3331, allocations: 97.47 kB / 430.2 MB, free: 7.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.885e-05/0.3331, allocations: 12.72 kB / 430.2 MB, free: 7.395 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.3331, allocations: 4 kB / 430.2 MB, free: 7.391 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.3332, allocations: 4 kB / 430.2 MB, free: 7.387 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/0.3332, allocations: 7.984 kB / 430.2 MB, free: 7.379 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000305/0.3335, allocations: 184.5 kB / 430.4 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3335, allocations: 0 / 430.4 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002243/0.3337, allocations: 39.97 kB / 430.4 MB, free: 7.117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.3337, allocations: 4 kB / 430.5 MB, free: 7.113 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.3337, allocations: 240 / 430.5 MB, free: 7.113 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.3337, allocations: 4 kB / 430.5 MB, free: 7.109 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.3337, allocations: 0 / 430.5 MB, free: 7.109 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005945/0.3343, allocations: 391.3 kB / 430.8 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.287e-05/0.3343, allocations: 15.94 kB / 430.9 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.26e-05/0.3344, allocations: 0 / 430.9 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001381/0.3345, allocations: 15.98 kB / 430.9 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.928e-05/0.3345, allocations: 8.047 kB / 430.9 MB, free: 6.668 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.3346, allocations: 4 kB / 430.9 MB, free: 6.664 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.086e-05/0.3346, allocations: 103.3 kB / 431 MB, free: 6.562 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3346, allocations: 0 / 431 MB, free: 6.562 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003119/0.3349, allocations: 27.94 kB / 431 MB, free: 6.535 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.0009219/0.3359, allocations: 0.9155 MB / 431.9 MB, free: 5.59 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003645/0.3362, allocations: 128.6 kB / 432.1 MB, free: 5.465 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3362, allocations: 0 / 432.1 MB, free: 5.465 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.913e-05/0.3363, allocations: 31.92 kB / 432.1 MB, free: 5.434 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005169/0.3368, allocations: 52.36 kB / 432.1 MB, free: 5.383 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002862/0.3397, allocations: 2.117 MB / 434.3 MB, free: 3.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003562/0.3401, allocations: 0.7162 MB / 435 MB, free: 2.348 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.169e-05/0.3401, allocations: 13.08 kB / 435 MB, free: 2.336 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.625e-05/0.3402, allocations: 47.36 kB / 435 MB, free: 2.289 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3402, allocations: 0 / 435 MB, free: 2.289 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02581/0.366, allocations: 3.235 MB / 438.3 MB, free: 15.24 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.57, allocations: 12.05 kB / 438.3 MB, free: 15.23 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.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,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.period,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.155863404972479]