Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001309/0.001309, allocations: 117.6 kB / 17.79 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001359/0.001359, allocations: 200.7 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00205/0.00205, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2693/0.2714, allocations: 50.55 MB / 408.7 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003903/0.2753, allocations: 2.011 MB / 410.8 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001172/0.2765, allocations: 0.5376 MB / 411.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001465/0.2767, allocations: 4 kB / 411.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001226/0.2768, allocations: 19.8 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.301e-05/0.2769, allocations: 19.8 kB / 411.3 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003221/0.2773, allocations: 55.88 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001708/0.2774, allocations: 119.6 kB / 411.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.2776, allocations: 57.41 kB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9e-05/0.2777, allocations: 51.72 kB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.938e-05/0.2778, allocations: 51.78 kB / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.815e-05/0.2778, allocations: 8 kB / 411.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.255e-05/0.2779, allocations: 12 kB / 411.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.773e-05/0.2779, allocations: 31.89 kB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.293e-05/0.278, allocations: 59.67 kB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002105/0.2782, allocations: 118.5 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.2782, allocations: 3.984 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.2782, allocations: 0 / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.752e-06/0.2782, allocations: 7.938 kB / 411.9 MB, free: 14.37 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006452/0.2789, allocations: 423 kB / 412.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.2789, allocations: 8.031 kB / 412.3 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.836e-05/0.279, allocations: 50.72 kB / 412.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.909e-05/0.279, allocations: 16.84 kB / 412.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003104/0.2794, allocations: 212.1 kB / 412.6 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.625e-05/0.2794, allocations: 8.375 kB / 412.6 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.45e-05/0.2794, allocations: 16.33 kB / 412.6 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005155/0.2799, allocations: 246.7 kB / 412.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.28, allocations: 0 / 412.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.732e-05/0.28, allocations: 8 kB / 412.9 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.28, allocations: 0 / 412.9 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002551/0.2803, allocations: 87.88 kB / 413 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006957/0.281, allocations: 0.5883 MB / 413.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002987/0.2813, allocations: 155.8 kB / 413.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001576/0.2814, allocations: 70.64 kB / 413.8 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.829e-05/0.2815, allocations: 4 kB / 413.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.332e-05/0.2815, allocations: 38.55 kB / 413.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.232e-06/0.2815, allocations: 4 kB / 413.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005361/0.2821, allocations: 173.4 kB / 414 MB, free: 12.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.023e-05/0.2822, allocations: 114.8 kB / 414.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.2823, allocations: 130.1 kB / 414.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.271e-05/0.2823, allocations: 29.7 kB / 414.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.69e-05/0.2824, allocations: 120 kB / 414.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.367e-05/0.2825, allocations: 31.77 kB / 414.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.306e-05/0.2825, allocations: 33.72 kB / 414.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.2827, allocations: 318.8 kB / 414.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001189/0.2828, allocations: 35.97 kB / 414.8 MB, free: 11.19 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001797/0.283, allocations: 131.1 kB / 414.9 MB, free: 11.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000296/0.2833, allocations: 176.7 kB / 415.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.2833, allocations: 7.938 kB / 415.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000366/0.2837, allocations: 189.2 kB / 415.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.2837, allocations: 6.969 kB / 415.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/0.2837, allocations: 7.938 kB / 415.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.2837, allocations: 4 kB / 415.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001728/0.2839, allocations: 40.41 kB / 415.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.241e-05/0.2839, allocations: 11.94 kB / 415.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001105/0.2841, allocations: 31.88 kB / 415.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.436e-05/0.2841, allocations: 8.234 kB / 415.4 MB, free: 10.49 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001183/0.2842, allocations: 133.7 kB / 415.5 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001497/0.2844, allocations: 81.89 kB / 415.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.929e-05/0.2844, allocations: 24.64 kB / 415.6 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.2844, allocations: 4 kB / 415.6 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.2844, allocations: 3.938 kB / 415.6 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.2844, allocations: 7.984 kB / 415.6 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002808/0.2847, allocations: 197.6 kB / 415.8 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.2847, allocations: 0 / 415.8 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001708/0.2849, allocations: 39.97 kB / 415.9 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.2849, allocations: 0 / 415.9 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.619e-05/0.2849, allocations: 7.938 kB / 415.9 MB, free: 9.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2849, allocations: 0 / 415.9 MB, free: 9.93 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.285, allocations: 0 / 415.9 MB, free: 9.93 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000541/0.2855, allocations: 375.5 kB / 416.2 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.797e-05/0.2856, allocations: 92.98 kB / 416.3 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.385e-05/0.2856, allocations: 7.938 kB / 416.3 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001483/0.2858, allocations: 15.98 kB / 416.3 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.865e-05/0.2858, allocations: 4 kB / 416.4 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.844e-06/0.2858, allocations: 8.062 kB / 416.4 MB, free: 9.398 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.657e-05/0.2859, allocations: 98.64 kB / 416.5 MB, free: 9.305 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2859, allocations: 0 / 416.5 MB, free: 9.305 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003126/0.2862, allocations: 28 kB / 416.5 MB, free: 9.277 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 (14): * Single equations (assignments): 14 * 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.0008663/0.2871, allocations: 0.9151 MB / 417.4 MB, free: 8.336 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003253/0.2874, allocations: 112.5 kB / 417.5 MB, free: 8.227 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2874, allocations: 4.125 kB / 417.5 MB, free: 8.223 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.563e-05/0.2875, allocations: 31.91 kB / 417.5 MB, free: 8.191 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004878/0.288, allocations: 48.02 kB / 417.6 MB, free: 8.145 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002483/0.2905, allocations: 2.033 MB / 419.6 MB, free: 5.941 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003551/0.2909, allocations: 0.7162 MB / 420.3 MB, free: 5.199 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.561e-05/0.291, allocations: 8.641 kB / 420.3 MB, free: 5.191 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.705e-05/0.291, allocations: 39.42 kB / 420.4 MB, free: 5.152 MB / 334.1 MB Notification: Performance of SimCode: time 6.91e-07/0.291, allocations: 0 / 420.4 MB, free: 5.152 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02702/0.3181, allocations: 2.747 MB / 423.1 MB, free: 2.586 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.433/8.751, allocations: 4.422 kB / 423.1 MB, free: 2.582 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_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_ClockedWithDiscreteTextbookController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_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