Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0014/0.0014, allocations: 107.5 kB / 20.43 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 190.3 kB / 23.7 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 51.91 kB / 370.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2912, allocations: 52.18 MB / 422.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.00517/0.2963, allocations: 1.976 MB / 424.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001483/0.2978, allocations: 482.7 kB / 425 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000157/0.298, allocations: 4 kB / 425 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001691/0.2981, allocations: 15.8 kB / 425 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000116/0.2983, allocations: 27.78 kB / 425 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004905/0.2988, allocations: 63.75 kB / 425.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003349/0.2991, allocations: 119.6 kB / 425.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002292/0.2993, allocations: 41.61 kB / 425.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001255/0.2994, allocations: 39.86 kB / 425.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001376/0.2996, allocations: 55.69 kB / 425.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.866e-05/0.2996, allocations: 12 kB / 425.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.208e-05/0.2997, allocations: 8 kB / 425.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.539e-05/0.2997, allocations: 23.92 kB / 425.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.483e-05/0.2998, allocations: 51.73 kB / 425.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003563/0.3002, allocations: 137.1 kB / 425.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.3002, allocations: 0 / 425.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.3002, allocations: 0 / 425.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.264e-05/0.3002, allocations: 0 / 425.6 MB, free: 11.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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0008886/0.3011, allocations: 353.8 kB / 425.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.091e-05/0.3012, allocations: 12.03 kB / 425.9 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.395e-05/0.3012, allocations: 38.75 kB / 426 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.169e-05/0.3013, allocations: 20.84 kB / 426 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003828/0.3017, allocations: 146.3 kB / 426.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.108e-05/0.3017, allocations: 12.36 kB / 426.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.792e-05/0.3017, allocations: 12.38 kB / 426.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007191/0.3024, allocations: 234.7 kB / 426.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.063e-05/0.3025, allocations: 7.953 kB / 426.4 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.957e-05/0.3025, allocations: 4 kB / 426.4 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.426e-05/0.3025, allocations: 8 kB / 426.4 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004211/0.3029, allocations: 83.88 kB / 426.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009341/0.3038, allocations: 0.5077 MB / 427 MB, free: 9.793 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004218/0.3043, allocations: 147.8 kB / 427.1 MB, free: 9.621 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002297/0.3045, allocations: 74.64 kB / 427.2 MB, free: 9.539 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.481e-05/0.3045, allocations: 4 kB / 427.2 MB, free: 9.535 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.832e-05/0.3046, allocations: 38.5 kB / 427.3 MB, free: 9.488 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 2.144e-06/0.3046, allocations: 3.938 kB / 427.3 MB, free: 9.484 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0006571/0.3052, allocations: 177.4 kB / 427.4 MB, free: 9.305 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.3054, allocations: 118.7 kB / 427.6 MB, free: 9.164 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001545/0.3055, allocations: 130 kB / 427.7 MB, free: 9.027 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.515e-05/0.3055, allocations: 33.7 kB / 427.7 MB, free: 8.988 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.3056, allocations: 116 kB / 427.8 MB, free: 8.871 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.808e-05/0.3057, allocations: 23.84 kB / 427.9 MB, free: 8.848 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.839e-05/0.3058, allocations: 37.7 kB / 427.9 MB, free: 8.805 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002009/0.306, allocations: 322.8 kB / 428.2 MB, free: 8.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001707/0.3061, allocations: 35.97 kB / 428.2 MB, free: 8.445 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002722/0.3064, allocations: 120.9 kB / 428.4 MB, free: 8.281 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004115/0.3068, allocations: 184.6 kB / 428.5 MB, free: 8.055 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.3068, allocations: 4 kB / 428.5 MB, free: 8.051 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000552/0.3074, allocations: 189.2 kB / 428.7 MB, free: 7.859 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.412e-05/0.3074, allocations: 8.438 kB / 428.7 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/0.3074, allocations: 11.94 kB / 428.7 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.763e-05/0.3075, allocations: 4 kB / 428.8 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002445/0.3077, allocations: 43.91 kB / 428.8 MB, free: 7.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.356e-05/0.3077, allocations: 4 kB / 428.8 MB, free: 7.789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001597/0.3079, allocations: 23.89 kB / 428.8 MB, free: 7.766 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.405e-05/0.3079, allocations: 11.98 kB / 428.8 MB, free: 7.754 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.0001617/0.3081, allocations: 137.7 kB / 429 MB, free: 7.609 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002202/0.3083, allocations: 81.89 kB / 429 MB, free: 7.523 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.845e-05/0.3083, allocations: 24.66 kB / 429.1 MB, free: 7.496 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.3084, allocations: 4 kB / 429.1 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.3084, allocations: 0 / 429.1 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.3084, allocations: 0 / 429.1 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000405/0.3088, allocations: 164.7 kB / 429.2 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3088, allocations: 0 / 429.2 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002338/0.309, allocations: 35.97 kB / 429.3 MB, free: 7.254 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.309, allocations: 0 / 429.3 MB, free: 7.254 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.017e-05/0.309, allocations: 7.938 kB / 429.3 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.309, allocations: 0 / 429.3 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.309, allocations: 3.938 kB / 429.3 MB, free: 7.242 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007449/0.3098, allocations: 379 kB / 429.7 MB, free: 6.855 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.271e-05/0.3098, allocations: 11.92 kB / 429.7 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.16e-05/0.3098, allocations: 15.86 kB / 429.7 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000198/0.31, allocations: 8 kB / 429.7 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.775e-05/0.3101, allocations: 7.984 kB / 429.7 MB, free: 6.812 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.177e-05/0.3101, allocations: 4 kB / 429.7 MB, free: 6.809 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.747e-05/0.3102, allocations: 99.27 kB / 429.8 MB, free: 6.711 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3102, allocations: 4.062 kB / 429.8 MB, free: 6.707 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005197/0.3107, allocations: 27.95 kB / 429.8 MB, free: 6.68 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.001184/0.3119, allocations: 0.9002 MB / 430.7 MB, free: 5.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004598/0.3124, allocations: 124.5 kB / 430.9 MB, free: 5.629 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3124, allocations: 0 / 430.9 MB, free: 5.629 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001337/0.3125, allocations: 31.91 kB / 430.9 MB, free: 5.598 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007744/0.3133, allocations: 48 kB / 430.9 MB, free: 5.551 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00341/0.3167, allocations: 2.025 MB / 433 MB, free: 3.355 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001534/0.3168, allocations: 101.6 kB / 433.1 MB, free: 3.238 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.501e-05/0.3169, allocations: 8.641 kB / 433.1 MB, free: 3.23 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.866e-05/0.317, allocations: 35.44 kB / 433.1 MB, free: 3.195 MB / 334.1 MB Notification: Performance of SimCode: time 7.82e-07/0.317, allocations: 0 / 433.1 MB, free: 3.195 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03912/0.3561, allocations: 3.32 MB / 436.4 MB, free: 56 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.4, allocations: 11.78 kB / 436.4 MB, free: 44 kB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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.000989903 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable PI.x in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.phi,load.w [Calling sys.exit(0), Time elapsed: 13.985209787264466]