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.00139/0.00139, allocations: 107.4 kB / 16.92 MB, free: 5.773 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.001112/0.001112, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.483/1.483, allocations: 222.9 MB / 241.5 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001121, allocations: 44.86 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09565/0.09679, allocations: 49.44 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003738/0.1006, allocations: 2.032 MB / 352.2 MB, free: 2.258 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009637/0.1016, allocations: 0.5103 MB / 352.7 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001421/0.1017, allocations: 0 / 352.7 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001202/0.1019, allocations: 19.8 kB / 352.7 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001003/0.102, allocations: 27.73 kB / 352.7 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003111/0.1023, allocations: 55.88 kB / 352.8 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002106/0.1026, allocations: 131.5 kB / 352.9 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001578/0.1027, allocations: 49.67 kB / 353 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.83e-05/0.1028, allocations: 51.73 kB / 353 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.841e-05/0.1029, allocations: 59.75 kB / 353.1 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.622e-05/0.103, allocations: 15.94 kB / 353.1 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.268e-05/0.103, allocations: 8 kB / 353.1 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.636e-05/0.103, allocations: 23.92 kB / 353.1 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.835e-05/0.1031, allocations: 63.67 kB / 353.2 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002034/0.1033, allocations: 123.8 kB / 353.3 MB, free: 1.121 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1033, allocations: 4 kB / 353.3 MB, free: 1.117 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1033, allocations: 0 / 353.3 MB, free: 1.117 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.1033, allocations: 3.938 kB / 353.3 MB, free: 1.113 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0006096/0.104, allocations: 439 kB / 353.8 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.104, allocations: 11.89 kB / 353.8 MB, free: 0.625 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.607e-05/0.1041, allocations: 46.73 kB / 353.8 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.022e-05/0.1041, allocations: 16.75 kB / 353.8 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002111/0.1043, allocations: 200.1 kB / 354 MB, free: 328 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.66e-05/0.1044, allocations: 12.38 kB / 354 MB, free: 316 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.464e-05/0.1044, allocations: 16.36 kB / 354.1 MB, free: 300 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004802/0.1049, allocations: 231.1 kB / 354.3 MB, free: 44 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.1049, allocations: 4 kB / 354.3 MB, free: 40 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.1049, allocations: 4 kB / 354.3 MB, free: 36 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.105, allocations: 11.97 kB / 354.3 MB, free: 24 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002784/0.1052, allocations: 92.03 kB / 354.4 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007475/0.106, allocations: 0.6035 MB / 355 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003431/0.1064, allocations: 143.9 kB / 355.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001618/0.1065, allocations: 70.64 kB / 355.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.365e-05/0.1066, allocations: 11.92 kB / 355.2 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.387e-05/0.1066, allocations: 38.5 kB / 355.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.423e-06/0.1066, allocations: 0 / 355.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005402/0.1072, allocations: 185.2 kB / 355.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.985e-05/0.1072, allocations: 110.8 kB / 355.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/0.1074, allocations: 138.1 kB / 355.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.06e-05/0.1074, allocations: 29.7 kB / 355.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.819e-05/0.1075, allocations: 112 kB / 355.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.533e-05/0.1075, allocations: 23.66 kB / 355.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.184e-05/0.1076, allocations: 41.83 kB / 355.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.1077, allocations: 323.2 kB / 356.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001272/0.1078, allocations: 35.97 kB / 356.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001781/0.108, allocations: 148.8 kB / 356.4 MB, free: 13.72 MB / 302.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.0005081/0.1085, allocations: 278.7 kB / 356.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.1086, allocations: 7.875 kB / 356.7 MB, free: 13.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004027/0.109, allocations: 197.1 kB / 356.8 MB, free: 13.17 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.109, allocations: 8 kB / 356.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.109, allocations: 4 kB / 356.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.109, allocations: 4.469 kB / 356.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001625/0.1092, allocations: 55.91 kB / 356.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.1092, allocations: 4 kB / 356.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001108/0.1093, allocations: 15.89 kB / 356.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.468e-05/0.1093, allocations: 12 kB / 356.9 MB, free: 13.07 MB / 302.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.0001184/0.1095, allocations: 133.7 kB / 357.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001616/0.1096, allocations: 89.53 kB / 357.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.9e-05/0.1097, allocations: 20.7 kB / 357.2 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.1097, allocations: 4 kB / 357.2 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.1097, allocations: 0 / 357.2 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.1097, allocations: 4.234 kB / 357.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002694/0.11, allocations: 213.4 kB / 357.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.11, allocations: 0 / 357.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002227/0.1102, allocations: 43.91 kB / 357.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.381e-06/0.1103, allocations: 11.97 kB / 357.5 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.1103, allocations: 0 / 357.5 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.1103, allocations: 4 kB / 357.5 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.692e-06/0.1103, allocations: 3.984 kB / 357.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000535/0.1108, allocations: 382.4 kB / 357.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.942e-05/0.1109, allocations: 96.83 kB / 357.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.618e-05/0.1109, allocations: 8 kB / 357.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001416/0.1111, allocations: 12.05 kB / 358 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.635e-05/0.1111, allocations: 11.94 kB / 358 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.01e-05/0.1112, allocations: 4 kB / 358 MB, free: 11.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.556e-05/0.1112, allocations: 110.2 kB / 358.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1112, allocations: 0 / 358.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003396/0.1116, allocations: 24 kB / 358.1 MB, free: 11.82 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.0007925/0.1124, allocations: 0.9271 MB / 359 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003561/0.1127, allocations: 136.3 kB / 359.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.1128, allocations: 0 / 359.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.1129, allocations: 23.98 kB / 359.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004972/0.1134, allocations: 63.94 kB / 359.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002525/0.1159, allocations: 2.078 MB / 361.3 MB, free: 8.375 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002799/0.1162, allocations: 0.7162 MB / 362 MB, free: 7.633 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.002e-05/0.1163, allocations: 17.06 kB / 362.1 MB, free: 7.613 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.792e-05/0.1163, allocations: 35.42 kB / 362.1 MB, free: 7.582 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1164, allocations: 4 kB / 362.1 MB, free: 7.578 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02674/0.1431, allocations: 2.941 MB / 365 MB, free: 4.805 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.038/8.181, allocations: 11.06 kB / 365 MB, free: 4.797 MB / 302.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