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.001435/0.001434, allocations: 110.2 kB / 17.06 MB, free: 5.785 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.001553/0.001553, allocations: 191 kB / 18 MB, free: 4.945 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.587/1.587, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 47.94 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3368/0.3385, allocations: 49.44 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003502/0.342, allocations: 2.057 MB / 402.3 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009388/0.343, allocations: 0.5025 MB / 402.8 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001262/0.3431, allocations: 8 kB / 402.8 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000137/0.3433, allocations: 15.8 kB / 402.8 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.961e-05/0.3434, allocations: 31.7 kB / 402.8 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002998/0.3437, allocations: 51.88 kB / 402.9 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001943/0.3439, allocations: 123.6 kB / 403 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001762/0.3441, allocations: 61.78 kB / 403.1 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.293e-05/0.3442, allocations: 55.72 kB / 403.1 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.243e-05/0.3443, allocations: 55.7 kB / 403.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.613e-05/0.3443, allocations: 12 kB / 403.2 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.031e-05/0.3443, allocations: 12 kB / 403.2 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.029e-05/0.3444, allocations: 23.92 kB / 403.2 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.823e-05/0.3444, allocations: 59.66 kB / 403.3 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002142/0.3447, allocations: 130.4 kB / 403.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.3447, allocations: 4 kB / 403.4 MB, free: 5.617 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3447, allocations: 3.938 kB / 403.4 MB, free: 5.613 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.3447, allocations: 0 / 403.4 MB, free: 5.613 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.0006735/0.3454, allocations: 434.8 kB / 403.8 MB, free: 5.141 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.3454, allocations: 15.89 kB / 403.8 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.956e-05/0.3455, allocations: 46.73 kB / 403.9 MB, free: 5.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.2e-05/0.3455, allocations: 12.84 kB / 403.9 MB, free: 5.059 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003194/0.3459, allocations: 220.1 kB / 404.1 MB, free: 4.805 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/0.3459, allocations: 12.38 kB / 404.1 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.706e-05/0.3459, allocations: 12.38 kB / 404.1 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004959/0.3464, allocations: 238.7 kB / 404.4 MB, free: 4.523 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/0.3465, allocations: 4 kB / 404.4 MB, free: 4.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.698e-05/0.3465, allocations: 4 kB / 404.4 MB, free: 4.516 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.874e-06/0.3465, allocations: 4 kB / 404.4 MB, free: 4.512 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002492/0.3468, allocations: 79.88 kB / 404.5 MB, free: 4.434 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007185/0.3475, allocations: 0.5961 MB / 405.1 MB, free: 3.766 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003636/0.3479, allocations: 151.9 kB / 405.2 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000158/0.348, allocations: 74.62 kB / 405.3 MB, free: 3.508 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.726e-05/0.3481, allocations: 4 kB / 405.3 MB, free: 3.504 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/0.3481, allocations: 30.56 kB / 405.3 MB, free: 3.465 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.723e-06/0.3481, allocations: 4 kB / 405.3 MB, free: 3.461 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.000515/0.3486, allocations: 181.3 kB / 405.5 MB, free: 3.277 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.494e-05/0.3487, allocations: 118.8 kB / 405.6 MB, free: 3.137 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.3489, allocations: 130.2 kB / 405.7 MB, free: 3 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.95e-05/0.3489, allocations: 33.64 kB / 405.8 MB, free: 2.961 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.7e-05/0.349, allocations: 112.2 kB / 405.9 MB, free: 2.848 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.995e-05/0.349, allocations: 35.78 kB / 405.9 MB, free: 2.812 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.992e-05/0.3491, allocations: 37.66 kB / 406 MB, free: 2.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.3492, allocations: 322.8 kB / 406.3 MB, free: 2.445 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.3493, allocations: 35.97 kB / 406.3 MB, free: 2.41 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001669/0.3495, allocations: 137.7 kB / 406.4 MB, free: 2.227 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.0004306/0.3499, allocations: 278.6 kB / 406.7 MB, free: 1.887 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-06/0.3499, allocations: 7.938 kB / 406.7 MB, free: 1.879 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003547/0.3503, allocations: 193.4 kB / 406.9 MB, free: 1.684 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.3503, allocations: 12.45 kB / 406.9 MB, free: 1.672 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.3503, allocations: 8 kB / 406.9 MB, free: 1.664 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.3504, allocations: 4.375 kB / 406.9 MB, free: 1.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/0.3505, allocations: 39.92 kB / 407 MB, free: 1.621 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.189e-05/0.3505, allocations: 8 kB / 407 MB, free: 1.613 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/0.3506, allocations: 27.81 kB / 407 MB, free: 1.586 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.3507, allocations: 15.94 kB / 407 MB, free: 1.57 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.0001006/0.3508, allocations: 125.8 kB / 407.1 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001591/0.3509, allocations: 101.5 kB / 407.2 MB, free: 1.332 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.339e-05/0.351, allocations: 12.72 kB / 407.3 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.351, allocations: 4 kB / 407.3 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.351, allocations: 0 / 407.3 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.351, allocations: 4 kB / 407.3 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002599/0.3513, allocations: 221.4 kB / 407.5 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3513, allocations: 0 / 407.5 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000203/0.3515, allocations: 43.91 kB / 407.5 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.3515, allocations: 4 kB / 407.5 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.307e-05/0.3515, allocations: 4 kB / 407.5 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.3515, allocations: 8 kB / 407.5 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3515, allocations: 0 / 407.5 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005322/0.3521, allocations: 386.5 kB / 407.9 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.648e-05/0.3521, allocations: 89.02 kB / 408 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.267e-05/0.3522, allocations: 4.062 kB / 408 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/0.3523, allocations: 11.98 kB / 408 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.897e-05/0.3524, allocations: 4 kB / 408 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.329e-05/0.3524, allocations: 7.984 kB / 408 MB, free: 464 kB / 318.1 MB Notification: Performance of sorting global known variables: time 6.417e-05/0.3525, allocations: 105.8 kB / 408.1 MB, free: 360 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3525, allocations: 0 / 408.1 MB, free: 360 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003181/0.3528, allocations: 27.94 kB / 408.2 MB, free: 332 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.0008247/0.3536, allocations: 0.9271 MB / 409.1 MB, free: 15.37 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003552/0.354, allocations: 131.7 kB / 409.2 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.354, allocations: 0 / 409.2 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.3541, allocations: 27.98 kB / 409.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005142/0.3546, allocations: 71.14 kB / 409.3 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00246/0.3571, allocations: 2.105 MB / 411.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003047/0.3574, allocations: 0.7162 MB / 412.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.744e-05/0.3575, allocations: 9.094 kB / 412.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.512e-05/0.3576, allocations: 39.42 kB / 412.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3576, allocations: 0 / 412.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02336/0.3809, allocations: 3.011 MB / 415.2 MB, free: 9.246 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.232/8.613, allocations: 4.188 kB / 415.2 MB, free: 9.242 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