Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001198/0.001198, allocations: 122.1 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001299/0.0013, allocations: 201.2 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.39/1.39, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.2758, allocations: 50.55 MB / 408.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002955/0.2788, allocations: 2.041 MB / 410.8 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009688/0.2798, allocations: 0.5999 MB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001111/0.28, allocations: 7.938 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.2801, allocations: 15.8 kB / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001694/0.2803, allocations: 31.72 kB / 411.4 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002715/0.2805, allocations: 75.78 kB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000184/0.2807, allocations: 123.6 kB / 411.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.2809, allocations: 61.84 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.571e-05/0.281, allocations: 51.78 kB / 411.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.021e-05/0.2811, allocations: 55.72 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.542e-05/0.2811, allocations: 8 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.898e-05/0.2811, allocations: 15.94 kB / 411.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.543e-05/0.2812, allocations: 39.83 kB / 411.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.845e-05/0.2813, allocations: 63.61 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001954/0.2815, allocations: 142.3 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.2815, allocations: 4 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.2815, allocations: 0 / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.2815, allocations: 0 / 412.1 MB, free: 14.2 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.000618/0.2821, allocations: 458.7 kB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.2821, allocations: 8.031 kB / 412.5 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.403e-05/0.2822, allocations: 54.67 kB / 412.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.967e-05/0.2822, allocations: 20.8 kB / 412.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002543/0.2825, allocations: 220.2 kB / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.2825, allocations: 16.31 kB / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.212e-05/0.2826, allocations: 16.31 kB / 412.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004859/0.2831, allocations: 255.2 kB / 413.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.2831, allocations: 4 kB / 413.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/0.2831, allocations: 4 kB / 413.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.2831, allocations: 4 kB / 413.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000257/0.2834, allocations: 87.88 kB / 413.2 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006086/0.284, allocations: 0.6038 MB / 413.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003268/0.2843, allocations: 147.7 kB / 413.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001568/0.2845, allocations: 78.77 kB / 414 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.457e-05/0.2845, allocations: 4 kB / 414 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.076e-05/0.2846, allocations: 38.55 kB / 414.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.383e-06/0.2846, allocations: 0 / 414.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005105/0.2851, allocations: 189.3 kB / 414.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.212e-05/0.2852, allocations: 110.8 kB / 414.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001243/0.2853, allocations: 162.2 kB / 414.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.2853, allocations: 29.7 kB / 414.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.3e-05/0.2854, allocations: 112.5 kB / 414.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.25e-05/0.2854, allocations: 27.91 kB / 414.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.136e-05/0.2855, allocations: 45.7 kB / 414.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.2856, allocations: 322.8 kB / 415 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.2857, allocations: 31.97 kB / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001617/0.2859, allocations: 149 kB / 415.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002745/0.2862, allocations: 185.5 kB / 415.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.2862, allocations: 3.938 kB / 415.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003562/0.2866, allocations: 197.2 kB / 415.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.2866, allocations: 8 kB / 415.6 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.2866, allocations: 4 kB / 415.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.2866, allocations: 4 kB / 415.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001559/0.2868, allocations: 52.75 kB / 415.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.2868, allocations: 8 kB / 415.7 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.2869, allocations: 20.11 kB / 415.7 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.296e-05/0.2869, allocations: 12 kB / 415.7 MB, free: 10.16 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 9.739e-05/0.287, allocations: 141.6 kB / 415.8 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.2872, allocations: 93.53 kB / 415.9 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.247e-05/0.2873, allocations: 24.69 kB / 415.9 MB, free: 9.887 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.2873, allocations: 0 / 415.9 MB, free: 9.887 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.2873, allocations: 4 kB / 415.9 MB, free: 9.883 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.2873, allocations: 4 kB / 416 MB, free: 9.879 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002603/0.2876, allocations: 217.5 kB / 416.2 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2876, allocations: 0 / 416.2 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000178/0.2878, allocations: 39.92 kB / 416.2 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.2878, allocations: 0 / 416.2 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.447e-05/0.2878, allocations: 11.92 kB / 416.2 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.2878, allocations: 0 / 416.2 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2878, allocations: 0 / 416.2 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005239/0.2883, allocations: 383.4 kB / 416.6 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.428e-05/0.2884, allocations: 105 kB / 416.7 MB, free: 9.051 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.454e-05/0.2884, allocations: 8 kB / 416.7 MB, free: 9.043 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.2886, allocations: 11.98 kB / 416.7 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.236e-05/0.2886, allocations: 8 kB / 416.7 MB, free: 9.023 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.967e-06/0.2886, allocations: 12 kB / 416.7 MB, free: 9.012 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.656e-05/0.2887, allocations: 111.2 kB / 416.8 MB, free: 8.902 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2887, allocations: 0 / 416.8 MB, free: 8.902 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003199/0.2891, allocations: 32 kB / 416.9 MB, free: 8.871 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.000752/0.2898, allocations: 0.9227 MB / 417.8 MB, free: 7.922 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003204/0.2902, allocations: 120.7 kB / 417.9 MB, free: 7.805 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2902, allocations: 4.062 kB / 417.9 MB, free: 7.801 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.779e-05/0.2903, allocations: 27.98 kB / 417.9 MB, free: 7.773 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004868/0.2908, allocations: 71.23 kB / 418 MB, free: 7.707 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002249/0.293, allocations: 2.116 MB / 420.1 MB, free: 5.41 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002751/0.2933, allocations: 0.7201 MB / 420.8 MB, free: 4.664 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.629e-05/0.2934, allocations: 9.422 kB / 420.9 MB, free: 4.656 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.561e-05/0.2934, allocations: 39.42 kB / 420.9 MB, free: 4.617 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2935, allocations: 0 / 420.9 MB, free: 4.617 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02052/0.314, allocations: 2.971 MB / 423.9 MB, free: 1.828 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.098/8.412, allocations: 17.94 kB / 423.9 MB, free: 1.824 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_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