Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001096/0.001096, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001101/0.001101, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001528, allocations: 55.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/0.2962, allocations: 50.56 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.0035/0.2998, allocations: 2.057 MB / 410.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001106/0.3009, allocations: 0.5377 MB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001535/0.3011, allocations: 0 / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001535/0.3013, allocations: 23.73 kB / 411.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001059/0.3014, allocations: 23.8 kB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002877/0.3017, allocations: 59.86 kB / 411.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001851/0.3019, allocations: 135.5 kB / 411.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001724/0.302, allocations: 53.77 kB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.931e-05/0.3021, allocations: 47.8 kB / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.427e-05/0.3022, allocations: 59.7 kB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.359e-05/0.3023, allocations: 12 kB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.002e-05/0.3023, allocations: 12 kB / 411.8 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.171e-05/0.3023, allocations: 27.91 kB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.389e-05/0.3024, allocations: 59.67 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001932/0.3026, allocations: 130.3 kB / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3026, allocations: 0 / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3026, allocations: 0 / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.3026, allocations: 0 / 412 MB, free: 14.32 MB / 334.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.0005805/0.3032, allocations: 434.9 kB / 412.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.3032, allocations: 12.03 kB / 412.4 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.161e-05/0.3033, allocations: 50.67 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.07e-05/0.3034, allocations: 16.84 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002654/0.3036, allocations: 216.1 kB / 412.7 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.3037, allocations: 8.375 kB / 412.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.539e-05/0.3037, allocations: 20.27 kB / 412.7 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004636/0.3042, allocations: 234.7 kB / 412.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.3042, allocations: 0 / 412.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.3042, allocations: 4 kB / 412.9 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.3042, allocations: 4 kB / 412.9 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002494/0.3045, allocations: 83.88 kB / 413 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006167/0.3051, allocations: 0.5921 MB / 413.6 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003345/0.3055, allocations: 151.9 kB / 413.8 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001525/0.3056, allocations: 78.61 kB / 413.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.3056, allocations: 8 kB / 413.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.1e-05/0.3057, allocations: 38.5 kB / 413.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.353e-06/0.3057, allocations: 0 / 413.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004976/0.3062, allocations: 177.4 kB / 414.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.894e-05/0.3063, allocations: 114.9 kB / 414.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.3064, allocations: 140.5 kB / 414.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.3064, allocations: 25.7 kB / 414.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.444e-05/0.3065, allocations: 124 kB / 414.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.369e-05/0.3065, allocations: 27.78 kB / 414.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.802e-05/0.3065, allocations: 33.72 kB / 414.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.698e-05/0.3066, allocations: 322.8 kB / 414.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.3068, allocations: 39.97 kB / 414.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001653/0.3069, allocations: 144.6 kB / 415 MB, free: 10.92 MB / 334.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.0004537/0.3074, allocations: 286.6 kB / 415.3 MB, free: 10.57 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.229e-06/0.3074, allocations: 3.938 kB / 415.3 MB, free: 10.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003756/0.3078, allocations: 197.2 kB / 415.5 MB, free: 10.37 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.3078, allocations: 8 kB / 415.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.3078, allocations: 4.375 kB / 415.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.3079, allocations: 4 kB / 415.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001563/0.308, allocations: 51.91 kB / 415.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.308, allocations: 4 kB / 415.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001098/0.3082, allocations: 28.22 kB / 415.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.749e-05/0.3082, allocations: 12 kB / 415.6 MB, free: 10.26 MB / 334.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.0001061/0.3083, allocations: 137.7 kB / 415.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001599/0.3085, allocations: 93.56 kB / 415.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.858e-05/0.3085, allocations: 16.72 kB / 415.8 MB, free: 9.996 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.3085, allocations: 0 / 415.8 MB, free: 9.996 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.3085, allocations: 4 kB / 415.8 MB, free: 9.992 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3085, allocations: 0 / 415.8 MB, free: 9.992 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002487/0.3088, allocations: 209.4 kB / 416.1 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3088, allocations: 4 kB / 416.1 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002174/0.309, allocations: 51.95 kB / 416.1 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.309, allocations: 0 / 416.1 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.3091, allocations: 0 / 416.1 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.3091, allocations: 7.938 kB / 416.1 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3091, allocations: 0 / 416.1 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005255/0.3096, allocations: 390.6 kB / 416.5 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.318e-05/0.3097, allocations: 85.09 kB / 416.6 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.389e-05/0.3097, allocations: 4 kB / 416.6 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/0.3098, allocations: 11.98 kB / 416.6 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.457e-05/0.3099, allocations: 4.234 kB / 416.6 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.386e-06/0.3099, allocations: 4 kB / 416.6 MB, free: 9.152 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001242/0.31, allocations: 113.5 kB / 416.7 MB, free: 9.043 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.543e-06/0.31, allocations: 0 / 416.7 MB, free: 9.043 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003291/0.3104, allocations: 31.89 kB / 416.7 MB, free: 9.012 MB / 334.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.0008472/0.3112, allocations: 0.9232 MB / 417.7 MB, free: 8.059 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003648/0.3116, allocations: 120.8 kB / 417.8 MB, free: 7.941 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.3116, allocations: 3.938 kB / 417.8 MB, free: 7.938 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001062/0.3117, allocations: 31.98 kB / 417.8 MB, free: 7.906 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005162/0.3122, allocations: 75.83 kB / 417.9 MB, free: 7.832 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002488/0.3147, allocations: 2.077 MB / 420 MB, free: 5.574 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000288/0.3151, allocations: 0.7162 MB / 420.7 MB, free: 4.832 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.679e-05/0.3151, allocations: 13.08 kB / 420.7 MB, free: 4.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.27e-05/0.3152, allocations: 35.42 kB / 420.7 MB, free: 4.785 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3152, allocations: 0 / 420.7 MB, free: 4.785 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02204/0.3372, allocations: 3.002 MB / 423.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.11/8.447, allocations: 12.3 kB / 423.7 MB, free: 1.957 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_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