Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",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.001628/0.001628, allocations: 110.8 kB / 17.06 MB, free: 6.02 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.001731/0.001731, allocations: 191 kB / 18 MB, free: 5.102 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.451/1.451, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00176/0.00176, allocations: 47.92 kB / 350.8 MB, free: 3.793 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3882/0.39, allocations: 49.43 MB / 400.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.004108/0.3942, allocations: 2.01 MB / 402.2 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001134/0.3953, allocations: 0.5376 MB / 402.8 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001379/0.3955, allocations: 4 kB / 402.8 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001564/0.3957, allocations: 15.8 kB / 402.8 MB, free: 6.273 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001891/0.3959, allocations: 23.73 kB / 402.8 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003147/0.3962, allocations: 59.81 kB / 402.9 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002088/0.3964, allocations: 127.6 kB / 403 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001949/0.3966, allocations: 57.39 kB / 403 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001003/0.3967, allocations: 47.8 kB / 403.1 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001038/0.3968, allocations: 55.77 kB / 403.1 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.972e-05/0.3969, allocations: 8 kB / 403.1 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.513e-05/0.3969, allocations: 12 kB / 403.2 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.145e-05/0.397, allocations: 31.84 kB / 403.2 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.952e-05/0.397, allocations: 59.67 kB / 403.2 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002571/0.3973, allocations: 122.5 kB / 403.4 MB, free: 5.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.3973, allocations: 4 kB / 403.4 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3973, allocations: 3.938 kB / 403.4 MB, free: 5.672 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.3973, allocations: 0 / 403.4 MB, free: 5.672 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007147/0.3981, allocations: 434.8 kB / 403.8 MB, free: 5.199 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.3981, allocations: 8.031 kB / 403.8 MB, free: 5.191 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.275e-05/0.3982, allocations: 50.73 kB / 403.9 MB, free: 5.133 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.485e-05/0.3982, allocations: 12.84 kB / 403.9 MB, free: 5.121 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00031/0.3985, allocations: 216.2 kB / 404.1 MB, free: 4.871 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.3986, allocations: 8.375 kB / 404.1 MB, free: 4.863 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.89e-05/0.3986, allocations: 12.38 kB / 404.1 MB, free: 4.852 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005313/0.3992, allocations: 261.7 kB / 404.4 MB, free: 4.574 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.3992, allocations: 3.938 kB / 404.4 MB, free: 4.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.631e-05/0.3992, allocations: 8 kB / 404.4 MB, free: 4.562 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.3992, allocations: 0 / 404.4 MB, free: 4.562 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002525/0.3995, allocations: 91.8 kB / 404.5 MB, free: 4.473 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007255/0.4002, allocations: 0.5844 MB / 405 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003688/0.4006, allocations: 143.9 kB / 405.2 MB, free: 3.645 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.4008, allocations: 78.64 kB / 405.3 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.022e-05/0.4008, allocations: 7.984 kB / 405.3 MB, free: 3.551 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.151e-05/0.4008, allocations: 38.5 kB / 405.3 MB, free: 3.504 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.663e-06/0.4009, allocations: 0 / 405.3 MB, free: 3.504 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005566/0.4014, allocations: 189.3 kB / 405.5 MB, free: 3.312 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.194e-05/0.4015, allocations: 110.8 kB / 405.6 MB, free: 3.18 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001334/0.4017, allocations: 130.2 kB / 405.7 MB, free: 3.039 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.4017, allocations: 29.7 kB / 405.8 MB, free: 3.004 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.29e-05/0.4018, allocations: 115.9 kB / 405.9 MB, free: 2.887 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.775e-05/0.4018, allocations: 23.84 kB / 405.9 MB, free: 2.863 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.735e-05/0.4019, allocations: 41.83 kB / 405.9 MB, free: 2.816 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.402, allocations: 322.8 kB / 406.2 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.4022, allocations: 35.97 kB / 406.3 MB, free: 2.457 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002038/0.4024, allocations: 139.2 kB / 406.4 MB, free: 2.273 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003516/0.4027, allocations: 189.5 kB / 406.6 MB, free: 2.039 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.4027, allocations: 3.938 kB / 406.6 MB, free: 2.035 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003858/0.4031, allocations: 193.5 kB / 406.8 MB, free: 1.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.522e-05/0.4032, allocations: 8 kB / 406.8 MB, free: 1.832 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.4032, allocations: 7.922 kB / 406.8 MB, free: 1.824 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.512e-05/0.4032, allocations: 8 kB / 406.8 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001574/0.4034, allocations: 43.91 kB / 406.9 MB, free: 1.773 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.609e-05/0.4034, allocations: 12.41 kB / 406.9 MB, free: 1.762 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001064/0.4035, allocations: 23.89 kB / 406.9 MB, free: 1.738 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/0.4036, allocations: 11.98 kB / 406.9 MB, free: 1.727 MB / 318.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.0001474/0.4037, allocations: 137.7 kB / 407 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001586/0.4039, allocations: 93.84 kB / 407.1 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001/0.404, allocations: 20.72 kB / 407.2 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.404, allocations: 4 kB / 407.2 MB, free: 1.457 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.404, allocations: 0 / 407.2 MB, free: 1.457 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.404, allocations: 3.984 kB / 407.2 MB, free: 1.453 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002919/0.4043, allocations: 205.5 kB / 407.4 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.4043, allocations: 0 / 407.4 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001774/0.4045, allocations: 31.98 kB / 407.4 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.4045, allocations: 4 kB / 407.4 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.4045, allocations: 4 kB / 407.4 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.4045, allocations: 4 kB / 407.4 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.4046, allocations: 3.984 kB / 407.4 MB, free: 1.156 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005873/0.4051, allocations: 386.6 kB / 407.8 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.731e-05/0.4052, allocations: 89.03 kB / 407.9 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.53e-05/0.4053, allocations: 4 kB / 407.9 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/0.4054, allocations: 11.98 kB / 407.9 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.295e-05/0.4055, allocations: 7.984 kB / 407.9 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.817e-06/0.4055, allocations: 4 kB / 407.9 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.344e-05/0.4056, allocations: 103.3 kB / 408 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4056, allocations: 0 / 408 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000338/0.4059, allocations: 27.95 kB / 408 MB, free: 0.5 MB / 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.0008973/0.4068, allocations: 0.9193 MB / 408.9 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003363/0.4072, allocations: 116.7 kB / 409.1 MB, free: 15.44 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.4072, allocations: 64 / 409.1 MB, free: 15.44 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001002/0.4073, allocations: 39.91 kB / 409.1 MB, free: 15.4 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004852/0.4078, allocations: 55.92 kB / 409.2 MB, free: 15.34 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002623/0.4104, allocations: 2.06 MB / 411.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004298/0.4108, allocations: 0.7162 MB / 411.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.652e-05/0.4109, allocations: 9.031 kB / 411.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.669e-05/0.411, allocations: 43.36 kB / 412 MB, free: 12.32 MB / 334.1 MB Notification: Performance of SimCode: time 7.61e-07/0.411, allocations: 0 / 412 MB, free: 12.32 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0224/0.4334, allocations: 2.777 MB / 414.8 MB, free: 9.684 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.238/8.672, allocations: 17.64 kB / 414.8 MB, free: 9.676 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_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