Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001931/0.001931, allocations: 118.2 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002664/0.002664, allocations: 202 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2835, allocations: 50.55 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003575/0.2871, allocations: 2.018 MB / 410.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001038/0.2881, allocations: 0.5649 MB / 411.3 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001025/0.2883, allocations: 0 / 411.3 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.2884, allocations: 19.8 kB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000147/0.2886, allocations: 27.73 kB / 411.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002314/0.2888, allocations: 51.88 kB / 411.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001866/0.289, allocations: 123.6 kB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.2891, allocations: 65.34 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.967e-05/0.2892, allocations: 51.73 kB / 411.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.33e-05/0.2893, allocations: 55.75 kB / 411.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.534e-05/0.2894, allocations: 12 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.949e-05/0.2894, allocations: 12 kB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.286e-05/0.2894, allocations: 31.86 kB / 411.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.849e-05/0.2895, allocations: 55.73 kB / 411.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002066/0.2897, allocations: 122.4 kB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.2897, allocations: 3.938 kB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.2897, allocations: 4 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.2897, allocations: 0 / 411.9 MB, free: 14.34 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006098/0.2903, allocations: 434.9 kB / 412.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.2904, allocations: 8.031 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.231e-05/0.2904, allocations: 50.73 kB / 412.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.075e-05/0.2905, allocations: 16.84 kB / 412.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002734/0.2908, allocations: 220 kB / 412.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.2908, allocations: 8.375 kB / 412.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.575e-05/0.2908, allocations: 12.38 kB / 412.7 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005118/0.2913, allocations: 251.2 kB / 412.9 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.2914, allocations: 0 / 412.9 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.787e-05/0.2914, allocations: 4 kB / 412.9 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.2914, allocations: 4 kB / 412.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002741/0.2917, allocations: 91.86 kB / 413 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006673/0.2924, allocations: 0.5844 MB / 413.6 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003531/0.2927, allocations: 151.9 kB / 413.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001922/0.2929, allocations: 78.58 kB / 413.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.681e-05/0.293, allocations: 7.984 kB / 413.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.384e-05/0.293, allocations: 34.56 kB / 413.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.302e-06/0.293, allocations: 0 / 413.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005494/0.2936, allocations: 185.4 kB / 414 MB, free: 11.99 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.92e-05/0.2936, allocations: 110.8 kB / 414.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.2938, allocations: 137.3 kB / 414.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.2938, allocations: 25.7 kB / 414.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.538e-05/0.2939, allocations: 116 kB / 414.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.969e-05/0.2939, allocations: 27.84 kB / 414.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.068e-05/0.2939, allocations: 37.64 kB / 414.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.2941, allocations: 326.8 kB / 414.8 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.2942, allocations: 31.97 kB / 414.8 MB, free: 11.13 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001846/0.2944, allocations: 137.1 kB / 415 MB, free: 10.95 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002901/0.2947, allocations: 197.4 kB / 415.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.2947, allocations: 3.938 kB / 415.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.00038/0.2951, allocations: 197.2 kB / 415.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.2951, allocations: 4 kB / 415.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.2951, allocations: 4.375 kB / 415.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.2951, allocations: 8.469 kB / 415.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001591/0.2953, allocations: 52.14 kB / 415.4 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.2953, allocations: 4 kB / 415.4 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.2954, allocations: 19.83 kB / 415.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.955e-05/0.2955, allocations: 19.98 kB / 415.5 MB, free: 10.4 MB / 334.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.0001266/0.2956, allocations: 137.6 kB / 415.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001608/0.2958, allocations: 89.56 kB / 415.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.704e-05/0.2959, allocations: 16.72 kB / 415.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.2959, allocations: 8 kB / 415.7 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.2959, allocations: 4 kB / 415.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.2959, allocations: 3.984 kB / 415.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002769/0.2962, allocations: 205.5 kB / 415.9 MB, free: 9.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2962, allocations: 0 / 415.9 MB, free: 9.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001889/0.2964, allocations: 39.92 kB / 416 MB, free: 9.832 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.2964, allocations: 0 / 416 MB, free: 9.832 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.2964, allocations: 4 kB / 416 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2964, allocations: 0 / 416 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.2964, allocations: 4 kB / 416 MB, free: 9.824 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005881/0.297, allocations: 379.4 kB / 416.3 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.667e-05/0.2971, allocations: 96.92 kB / 416.4 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.42e-05/0.2971, allocations: 4 kB / 416.4 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.2973, allocations: 16.05 kB / 416.5 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.222e-05/0.2973, allocations: 7.984 kB / 416.5 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.134e-06/0.2973, allocations: 0 / 416.5 MB, free: 9.293 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.677e-05/0.2974, allocations: 103.3 kB / 416.6 MB, free: 9.191 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2974, allocations: 0 / 416.6 MB, free: 9.191 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003351/0.2978, allocations: 24 kB / 416.6 MB, free: 9.168 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.00083/0.2986, allocations: 0.9187 MB / 417.5 MB, free: 8.223 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003684/0.299, allocations: 124.4 kB / 417.6 MB, free: 8.102 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.299, allocations: 0 / 417.6 MB, free: 8.102 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001035/0.2991, allocations: 27.97 kB / 417.7 MB, free: 8.074 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000529/0.2996, allocations: 67.89 kB / 417.7 MB, free: 8.008 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002257/0.3019, allocations: 2.064 MB / 419.8 MB, free: 5.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.3022, allocations: 0.7084 MB / 420.5 MB, free: 5.035 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.436e-05/0.3023, allocations: 9.094 kB / 420.5 MB, free: 5.027 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.59e-05/0.3024, allocations: 43.42 kB / 420.5 MB, free: 4.984 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3024, allocations: 0 / 420.5 MB, free: 4.984 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01983/0.3222, allocations: 2.789 MB / 423.3 MB, free: 2.344 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.944/8.266, allocations: 14.31 kB / 423.4 MB, free: 2.332 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_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