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.001554/0.001555, allocations: 117.2 kB / 17.78 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001918/0.001918, allocations: 200.6 kB / 18.73 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 55.91 kB / 358.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2912, allocations: 50.54 MB / 408.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003597/0.2948, allocations: 1.999 MB / 410.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001044/0.2959, allocations: 0.5376 MB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.296, allocations: 7.938 kB / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001203/0.2962, allocations: 11.86 kB / 411.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.36e-05/0.2963, allocations: 31.72 kB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003256/0.2966, allocations: 63.8 kB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001687/0.2968, allocations: 123.6 kB / 411.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001605/0.297, allocations: 53.41 kB / 411.5 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.123e-05/0.297, allocations: 51.73 kB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.257e-05/0.2971, allocations: 59.75 kB / 411.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.613e-05/0.2972, allocations: 12 kB / 411.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.807e-05/0.2972, allocations: 8 kB / 411.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.064e-05/0.2972, allocations: 23.92 kB / 411.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.665e-05/0.2973, allocations: 55.67 kB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002154/0.2975, allocations: 126.5 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.2975, allocations: 0 / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2975, allocations: 3.938 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.2976, allocations: 0 / 411.9 MB, free: 14.38 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.0005927/0.2981, allocations: 434.9 kB / 412.3 MB, free: 13.9 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.2982, allocations: 8.031 kB / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.309e-05/0.2982, allocations: 46.73 kB / 412.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.727e-05/0.2983, allocations: 16.84 kB / 412.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000266/0.2986, allocations: 207.6 kB / 412.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.606e-05/0.2986, allocations: 8.375 kB / 412.6 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.902e-05/0.2986, allocations: 16.33 kB / 412.6 MB, free: 13.56 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004985/0.2991, allocations: 242.7 kB / 412.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.715e-05/0.2992, allocations: 11.86 kB / 412.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.527e-05/0.2992, allocations: 4 kB / 412.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.2992, allocations: 8 kB / 412.9 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002542/0.2995, allocations: 83.88 kB / 412.9 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006836/0.3001, allocations: 0.5883 MB / 413.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002955/0.3005, allocations: 147.9 kB / 413.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001656/0.3006, allocations: 90.56 kB / 413.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.638e-05/0.3007, allocations: 0 / 413.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.207e-05/0.3007, allocations: 38.56 kB / 413.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.042e-06/0.3007, allocations: 0 / 413.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005215/0.3012, allocations: 177.5 kB / 414 MB, free: 12.04 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.043e-05/0.3013, allocations: 114.8 kB / 414.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.3014, allocations: 122.1 kB / 414.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.3015, allocations: 29.7 kB / 414.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.797e-05/0.3015, allocations: 115.8 kB / 414.4 MB, free: 11.62 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.44e-05/0.3016, allocations: 27.78 kB / 414.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.134e-05/0.3016, allocations: 38.08 kB / 414.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.3017, allocations: 322.8 kB / 414.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.3019, allocations: 40 kB / 414.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001594/0.302, allocations: 131 kB / 414.9 MB, free: 11.01 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000279/0.3023, allocations: 184.6 kB / 415.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.3023, allocations: 0 / 415.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003558/0.3027, allocations: 189.6 kB / 415.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.3027, allocations: 12 kB / 415.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.3027, allocations: 7.938 kB / 415.3 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.3027, allocations: 4 kB / 415.3 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001732/0.3029, allocations: 39.92 kB / 415.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.613e-05/0.3029, allocations: 11.92 kB / 415.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/0.3031, allocations: 19.89 kB / 415.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/0.3031, allocations: 8 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.000102/0.3032, allocations: 141.7 kB / 415.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001413/0.3033, allocations: 81.58 kB / 415.6 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.242e-05/0.3034, allocations: 20.66 kB / 415.6 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.3034, allocations: 0 / 415.6 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.3034, allocations: 0 / 415.6 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.3034, allocations: 4 kB / 415.6 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002572/0.3037, allocations: 205.5 kB / 415.8 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.3037, allocations: 0 / 415.8 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001965/0.3039, allocations: 39.91 kB / 415.8 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.3039, allocations: 4 kB / 415.9 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.3039, allocations: 7.938 kB / 415.9 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.3039, allocations: 4 kB / 415.9 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3039, allocations: 0 / 415.9 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004978/0.3044, allocations: 367.5 kB / 416.2 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.333e-05/0.3045, allocations: 93.02 kB / 416.3 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.571e-05/0.3045, allocations: 15.92 kB / 416.3 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.3047, allocations: 4 kB / 416.3 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.183e-05/0.3047, allocations: 11.98 kB / 416.3 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.767e-06/0.3047, allocations: 8 kB / 416.4 MB, free: 9.395 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.502e-05/0.3048, allocations: 95.27 kB / 416.4 MB, free: 9.301 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3048, allocations: 0 / 416.4 MB, free: 9.301 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003221/0.3051, allocations: 28 kB / 416.5 MB, free: 9.273 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.0007281/0.3059, allocations: 0.9158 MB / 417.4 MB, free: 8.328 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003228/0.3062, allocations: 111.8 kB / 417.5 MB, free: 8.219 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3062, allocations: 0 / 417.5 MB, free: 8.219 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001014/0.3063, allocations: 36.05 kB / 417.5 MB, free: 8.184 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004889/0.3068, allocations: 55.64 kB / 417.6 MB, free: 8.137 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002234/0.3091, allocations: 2.035 MB / 419.6 MB, free: 5.938 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002752/0.3094, allocations: 0.7084 MB / 420.3 MB, free: 5.203 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.872e-05/0.3094, allocations: 12.64 kB / 420.3 MB, free: 5.191 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.768e-05/0.3095, allocations: 35.44 kB / 420.4 MB, free: 5.156 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3095, allocations: 0 / 420.4 MB, free: 5.156 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02199/0.3315, allocations: 2.74 MB / 423.1 MB, free: 2.594 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.917/8.248, allocations: 8.5 kB / 423.1 MB, free: 2.586 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.0.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