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.001449/0.001449, allocations: 118.2 kB / 17.78 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.001453/0.001453, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001757/0.001757, allocations: 67.89 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2746/0.2764, allocations: 50.55 MB / 408.7 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.004947/0.2814, allocations: 2.01 MB / 410.8 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001351/0.2828, allocations: 0.561 MB / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002044/0.283, allocations: 7.938 kB / 411.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001658/0.2832, allocations: 15.8 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002192/0.2834, allocations: 27.8 kB / 411.4 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004308/0.2839, allocations: 67.42 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002524/0.2841, allocations: 119.6 kB / 411.5 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002052/0.2843, allocations: 57.36 kB / 411.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001292/0.2845, allocations: 55.78 kB / 411.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001243/0.2846, allocations: 55.77 kB / 411.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.954e-05/0.2846, allocations: 11.94 kB / 411.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.655e-05/0.2847, allocations: 12 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.951e-05/0.2847, allocations: 23.92 kB / 411.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.142e-05/0.2848, allocations: 59.66 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002635/0.2851, allocations: 130.4 kB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2851, allocations: 0 / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2851, allocations: 0 / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.172e-05/0.2851, allocations: 0 / 411.9 MB, free: 14.36 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.0007823/0.2859, allocations: 434.9 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.286, allocations: 12.03 kB / 412.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.165e-05/0.286, allocations: 46.73 kB / 412.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.626e-05/0.2861, allocations: 12.84 kB / 412.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002868/0.2864, allocations: 212.1 kB / 412.6 MB, free: 13.56 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.152e-05/0.2864, allocations: 12.36 kB / 412.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.298e-05/0.2865, allocations: 16.31 kB / 412.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005848/0.2871, allocations: 247.2 kB / 412.9 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.775e-05/0.2871, allocations: 0 / 412.9 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/0.2871, allocations: 12 kB / 412.9 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.2871, allocations: 4 kB / 412.9 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002656/0.2874, allocations: 91.84 kB / 413 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00087/0.2883, allocations: 0.5921 MB / 413.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000401/0.2887, allocations: 143.9 kB / 413.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001707/0.2889, allocations: 74.64 kB / 413.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.02e-05/0.2889, allocations: 7.984 kB / 413.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/0.289, allocations: 38.56 kB / 413.9 MB, free: 12.19 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.353e-06/0.289, allocations: 0 / 413.9 MB, free: 12.19 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005663/0.2895, allocations: 181.4 kB / 414 MB, free: 12.01 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.2897, allocations: 118.9 kB / 414.2 MB, free: 11.87 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001399/0.2898, allocations: 130.2 kB / 414.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.492e-05/0.2899, allocations: 29.7 kB / 414.3 MB, free: 11.69 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.93e-05/0.29, allocations: 111.9 kB / 414.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.166e-05/0.29, allocations: 31.77 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.423e-05/0.2901, allocations: 37.7 kB / 414.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.2902, allocations: 322.8 kB / 414.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001166/0.2903, allocations: 35.98 kB / 414.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001954/0.2906, allocations: 132.7 kB / 415 MB, free: 10.97 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003317/0.2909, allocations: 201.5 kB / 415.2 MB, free: 10.72 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.2909, allocations: 3.938 kB / 415.2 MB, free: 10.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004037/0.2913, allocations: 197.5 kB / 415.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.2913, allocations: 8 kB / 415.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.2914, allocations: 4 kB / 415.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.2914, allocations: 4 kB / 415.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001546/0.2915, allocations: 44.28 kB / 415.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.341e-05/0.2916, allocations: 11.94 kB / 415.4 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000109/0.2917, allocations: 19.89 kB / 415.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.2917, allocations: 8 kB / 415.5 MB, free: 10.42 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.0001347/0.2918, allocations: 149.7 kB / 415.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001547/0.292, allocations: 81.64 kB / 415.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.22e-05/0.2921, allocations: 16.72 kB / 415.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.2921, allocations: 4 kB / 415.7 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.2921, allocations: 4 kB / 415.7 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.2921, allocations: 3.984 kB / 415.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002977/0.2924, allocations: 201.5 kB / 415.9 MB, free: 9.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.2924, allocations: 7.984 kB / 415.9 MB, free: 9.891 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001758/0.2926, allocations: 31.92 kB / 416 MB, free: 9.859 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.2926, allocations: 8 kB / 416 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.38e-05/0.2927, allocations: 4.234 kB / 416 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.2927, allocations: 4 kB / 416 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.2927, allocations: 0 / 416 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005864/0.2933, allocations: 387.4 kB / 416.4 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.01e-05/0.2934, allocations: 92.95 kB / 416.4 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.057e-05/0.2934, allocations: 4 kB / 416.4 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001376/0.2935, allocations: 11.98 kB / 416.5 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.2e-05/0.2936, allocations: 4 kB / 416.5 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.2936, allocations: 7.984 kB / 416.5 MB, free: 9.309 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.332e-05/0.2937, allocations: 102.5 kB / 416.6 MB, free: 9.211 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.685e-06/0.2937, allocations: 0 / 416.6 MB, free: 9.211 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003284/0.294, allocations: 32 kB / 416.6 MB, free: 9.18 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.0009048/0.295, allocations: 0.9194 MB / 417.5 MB, free: 8.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003486/0.2953, allocations: 115.8 kB / 417.6 MB, free: 8.117 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.2953, allocations: 0 / 417.6 MB, free: 8.117 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001056/0.2954, allocations: 32.84 kB / 417.7 MB, free: 8.086 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004923/0.2959, allocations: 64.36 kB / 417.7 MB, free: 8.023 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002702/0.2987, allocations: 2.056 MB / 419.8 MB, free: 5.793 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003976/0.2991, allocations: 0.7123 MB / 420.5 MB, free: 5.055 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.125e-05/0.2991, allocations: 13.08 kB / 420.5 MB, free: 5.043 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.514e-05/0.2992, allocations: 39.42 kB / 420.5 MB, free: 5.004 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2992, allocations: 0 / 420.5 MB, free: 5.004 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02785/0.3271, allocations: 2.784 MB / 423.3 MB, free: 2.371 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.391/8.718, allocations: 3.859 kB / 423.3 MB, free: 2.367 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.1.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