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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001683/0.001683, allocations: 107.9 kB / 17.06 MB, free: 5.82 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001812/0.001813, allocations: 195.9 kB / 18 MB, free: 4.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002147/0.002148, allocations: 39.94 kB / 350.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3174/0.3196, allocations: 49.45 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003646/0.3233, allocations: 2.051 MB / 402.3 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009418/0.3242, allocations: 0.5103 MB / 402.8 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.924e-05/0.3244, allocations: 0 / 402.8 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000122/0.3245, allocations: 19.8 kB / 402.8 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.267e-05/0.3246, allocations: 23.72 kB / 402.8 MB, free: 6.211 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002867/0.3249, allocations: 55.88 kB / 402.9 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002001/0.3251, allocations: 123.6 kB / 403 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001679/0.3253, allocations: 53.8 kB / 403.1 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.605e-05/0.3254, allocations: 55.72 kB / 403.1 MB, free: 5.922 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.442e-05/0.3255, allocations: 47.78 kB / 403.2 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.436e-05/0.3255, allocations: 15.94 kB / 403.2 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.304e-05/0.3255, allocations: 12 kB / 403.2 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.093e-05/0.3256, allocations: 27.91 kB / 403.2 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.125e-05/0.3256, allocations: 63.66 kB / 403.3 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002245/0.3259, allocations: 130.4 kB / 403.4 MB, free: 5.633 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.3259, allocations: 0 / 403.4 MB, free: 5.633 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3259, allocations: 0 / 403.4 MB, free: 5.633 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.3259, allocations: 0 / 403.4 MB, free: 5.633 MB / 318.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.000643/0.3265, allocations: 430.8 kB / 403.8 MB, free: 5.164 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.3266, allocations: 12.03 kB / 403.8 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.997e-05/0.3267, allocations: 54.72 kB / 403.9 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.962e-05/0.3267, allocations: 16.84 kB / 403.9 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003232/0.327, allocations: 220 kB / 404.1 MB, free: 4.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/0.3271, allocations: 12.38 kB / 404.1 MB, free: 4.809 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.083e-05/0.3271, allocations: 12.38 kB / 404.1 MB, free: 4.797 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004931/0.3276, allocations: 242.7 kB / 404.4 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.3276, allocations: 0 / 404.4 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/0.3277, allocations: 4 kB / 404.4 MB, free: 4.531 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.3277, allocations: 4 kB / 404.4 MB, free: 4.527 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002503/0.3279, allocations: 83.88 kB / 404.5 MB, free: 4.445 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007239/0.3286, allocations: 0.5883 MB / 405.1 MB, free: 3.781 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003692/0.329, allocations: 159.8 kB / 405.2 MB, free: 3.598 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.3292, allocations: 70.64 kB / 405.3 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/0.3292, allocations: 4 kB / 405.3 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.735e-05/0.3293, allocations: 34.56 kB / 405.3 MB, free: 3.473 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.382e-06/0.3293, allocations: 4 kB / 405.3 MB, free: 3.469 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005117/0.3298, allocations: 185.3 kB / 405.5 MB, free: 3.281 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.3299, allocations: 114.8 kB / 405.6 MB, free: 3.145 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001281/0.3301, allocations: 130.2 kB / 405.7 MB, free: 3.008 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.443e-05/0.3301, allocations: 33.7 kB / 405.8 MB, free: 2.969 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.89e-05/0.3302, allocations: 120.2 kB / 405.9 MB, free: 2.848 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.582e-05/0.3302, allocations: 27.78 kB / 405.9 MB, free: 2.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.493e-05/0.3303, allocations: 37.7 kB / 406 MB, free: 2.777 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.3304, allocations: 322.8 kB / 406.3 MB, free: 2.453 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.3306, allocations: 35.97 kB / 406.3 MB, free: 2.418 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001998/0.3308, allocations: 139.2 kB / 406.4 MB, free: 2.234 MB / 318.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.0004868/0.3313, allocations: 278.6 kB / 406.7 MB, free: 1.895 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3313, allocations: 7.938 kB / 406.7 MB, free: 1.887 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003936/0.3317, allocations: 189.2 kB / 406.9 MB, free: 1.695 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.3317, allocations: 8.469 kB / 406.9 MB, free: 1.688 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.3317, allocations: 8 kB / 406.9 MB, free: 1.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.3318, allocations: 4 kB / 406.9 MB, free: 1.676 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.3319, allocations: 40.16 kB / 407 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.321e-05/0.3319, allocations: 19.86 kB / 407 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.3321, allocations: 19.89 kB / 407 MB, free: 1.598 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.3321, allocations: 8 kB / 407 MB, free: 1.59 MB / 318.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.0001286/0.3322, allocations: 137.7 kB / 407.1 MB, free: 1.445 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001745/0.3324, allocations: 101.9 kB / 407.2 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.667e-05/0.3324, allocations: 16.72 kB / 407.3 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3325, allocations: 0 / 407.3 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3325, allocations: 0 / 407.3 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.3325, allocations: 7.984 kB / 407.3 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002936/0.3328, allocations: 213.4 kB / 407.5 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.3328, allocations: 0 / 407.5 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002129/0.333, allocations: 47.91 kB / 407.5 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/0.333, allocations: 4 kB / 407.5 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/0.333, allocations: 0 / 407.5 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.333, allocations: 8 kB / 407.5 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3331, allocations: 0 / 407.5 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005831/0.3336, allocations: 386.5 kB / 407.9 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.831e-05/0.3337, allocations: 89.02 kB / 408 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.442e-05/0.3337, allocations: 12.05 kB / 408 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001469/0.3339, allocations: 4 kB / 408 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.019e-05/0.334, allocations: 11.98 kB / 408 MB, free: 480 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.378e-06/0.334, allocations: 4 kB / 408 MB, free: 476 kB / 318.1 MB Notification: Performance of sorting global known variables: time 7.638e-05/0.334, allocations: 106 kB / 408.1 MB, free: 372 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3341, allocations: 0 / 408.1 MB, free: 372 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003138/0.3344, allocations: 27.94 kB / 408.2 MB, free: 344 kB / 318.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.0009674/0.3353, allocations: 0.9232 MB / 409.1 MB, free: 15.38 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003755/0.3357, allocations: 131.7 kB / 409.2 MB, free: 15.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3357, allocations: 0 / 409.2 MB, free: 15.25 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000109/0.3359, allocations: 35.91 kB / 409.3 MB, free: 15.22 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005119/0.3364, allocations: 61.36 kB / 409.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002856/0.3392, allocations: 2.109 MB / 411.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000417/0.3397, allocations: 0.7123 MB / 412.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.471e-05/0.3397, allocations: 13.08 kB / 412.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.78e-05/0.3398, allocations: 35.44 kB / 412.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of SimCode: time 2.615e-06/0.3398, allocations: 0 / 412.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02756/0.3674, allocations: 3.016 MB / 415.2 MB, free: 9.258 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.596/8.964, allocations: 7.156 kB / 415.2 MB, free: 9.254 MB / 334.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv","/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) "Error: Could not read variable PI.x in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv failed! " Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.phi,load.w