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) 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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",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.001152/0.001152, allocations: 107.1 kB / 16.92 MB, free: 6.145 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.001155/0.001155, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.364/1.364, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001099/0.001099, allocations: 45.7 kB / 300.7 MB, free: 5.754 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09125/0.09237, allocations: 49.43 MB / 350.1 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003516/0.09592, allocations: 2.024 MB / 352.2 MB, free: 2.266 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001031/0.09697, allocations: 0.5725 MB / 352.7 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001364/0.09713, allocations: 7.938 kB / 352.8 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001243/0.09726, allocations: 19.73 kB / 352.8 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001775/0.09745, allocations: 31.72 kB / 352.8 MB, free: 1.629 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002854/0.09776, allocations: 67.8 kB / 352.9 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001695/0.09793, allocations: 127.6 kB / 353 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001586/0.0981, allocations: 53.72 kB / 353 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.697e-05/0.09819, allocations: 59.72 kB / 353.1 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.175e-05/0.09829, allocations: 63.69 kB / 353.2 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.74e-05/0.09833, allocations: 8 kB / 353.2 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.452e-05/0.09836, allocations: 16 kB / 353.2 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.152e-05/0.09842, allocations: 27.92 kB / 353.2 MB, free: 1.215 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.075e-05/0.09851, allocations: 63.61 kB / 353.3 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001902/0.09871, allocations: 143.7 kB / 353.4 MB, free: 1.012 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.09872, allocations: 4 kB / 353.4 MB, free: 1.008 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.09873, allocations: 0 / 353.4 MB, free: 1.008 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.09874, allocations: 0 / 353.4 MB, free: 1.008 MB / 286.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.0006755/0.09942, allocations: 450.8 kB / 353.9 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.09947, allocations: 12.03 kB / 353.9 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.228e-05/0.09954, allocations: 50.73 kB / 353.9 MB, free: 460 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.142e-05/0.09959, allocations: 20.66 kB / 353.9 MB, free: 440 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002185/0.09981, allocations: 211.9 kB / 354.2 MB, free: 188 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.673e-05/0.09984, allocations: 16.36 kB / 354.2 MB, free: 172 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.402e-05/0.09988, allocations: 16.38 kB / 354.2 MB, free: 156 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005105/0.1004, allocations: 251.2 kB / 354.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.1004, allocations: 7.938 kB / 354.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.1004, allocations: 4 kB / 354.4 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.1005, allocations: 4 kB / 354.4 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002674/0.1007, allocations: 87.86 kB / 354.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006357/0.1014, allocations: 0.6076 MB / 355.1 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003575/0.1017, allocations: 144 kB / 355.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001611/0.1019, allocations: 82.52 kB / 355.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.102, allocations: 0 / 355.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.421e-05/0.102, allocations: 46.5 kB / 355.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.152e-06/0.102, allocations: 0 / 355.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.000527/0.1025, allocations: 193.5 kB / 355.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.094e-05/0.1026, allocations: 110.9 kB / 355.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001701/0.1028, allocations: 154.2 kB / 355.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.241e-05/0.1028, allocations: 25.7 kB / 355.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.433e-05/0.1029, allocations: 120.4 kB / 356 MB, free: 14.15 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.381e-05/0.103, allocations: 27.64 kB / 356 MB, free: 14.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.287e-05/0.103, allocations: 37.7 kB / 356.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.1031, allocations: 322.8 kB / 356.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.1033, allocations: 35.97 kB / 356.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001875/0.1035, allocations: 136.8 kB / 356.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002995/0.1038, allocations: 189.5 kB / 356.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.124e-06/0.1038, allocations: 7.938 kB / 356.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003812/0.1042, allocations: 193.5 kB / 356.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.1042, allocations: 12.03 kB / 356.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.1042, allocations: 4 kB / 356.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.1042, allocations: 4 kB / 356.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.1044, allocations: 43.97 kB / 357 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/0.1044, allocations: 7.938 kB / 357 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001091/0.1045, allocations: 19.84 kB / 357 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.494e-05/0.1046, allocations: 15.92 kB / 357 MB, free: 13 MB / 302.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.0001154/0.1047, allocations: 145.7 kB / 357.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001645/0.1049, allocations: 89.53 kB / 357.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000123/0.105, allocations: 20.7 kB / 357.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.105, allocations: 0 / 357.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.105, allocations: 8 kB / 357.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.105, allocations: 0 / 357.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002795/0.1053, allocations: 217.4 kB / 357.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.1053, allocations: 0 / 357.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001767/0.1055, allocations: 35.97 kB / 357.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.1055, allocations: 4.234 kB / 357.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/0.1055, allocations: 8 kB / 357.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.1055, allocations: 0 / 357.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.1055, allocations: 4 kB / 357.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005446/0.1061, allocations: 391.4 kB / 357.9 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.372e-05/0.1062, allocations: 105 kB / 358 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.658e-05/0.1062, allocations: 3.984 kB / 358 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.1064, allocations: 8 kB / 358 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.217e-05/0.1064, allocations: 7.984 kB / 358.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.706e-06/0.1064, allocations: 4 kB / 358.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.746e-05/0.1065, allocations: 120.1 kB / 358.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1065, allocations: 0 / 358.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003367/0.1069, allocations: 35.84 kB / 358.2 MB, free: 11.71 MB / 302.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.0008122/0.1077, allocations: 0.926 MB / 359.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003418/0.108, allocations: 131.7 kB / 359.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1081, allocations: 0 / 359.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.995e-05/0.1082, allocations: 23.98 kB / 359.3 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005105/0.1087, allocations: 68.56 kB / 359.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002366/0.1111, allocations: 2.101 MB / 361.5 MB, free: 8.242 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/0.1114, allocations: 0.7201 MB / 362.2 MB, free: 7.496 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.948e-05/0.1115, allocations: 21.41 kB / 362.2 MB, free: 7.477 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.373e-05/0.1115, allocations: 39.42 kB / 362.2 MB, free: 7.438 MB / 302.1 MB Notification: Performance of SimCode: time 2.625e-06/0.1115, allocations: 0 / 362.2 MB, free: 7.438 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02062/0.1322, allocations: 2.923 MB / 365.2 MB, free: 4.684 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.017/8.149, allocations: 8.281 kB / 365.2 MB, free: 4.676 MB / 302.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_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_ExactlyClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv","/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) "Error: Could not read variable PI.x in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_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