Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001779/0.001779, allocations: 174 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9299/0.9299, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.727e-05/1.857e-05, allocations: 2.281 kB / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002278/0.002296, allocations: 1.993 MB / 326.5 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007193/0.003015, allocations: 0.5103 MB / 327 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.327e-05/0.003109, allocations: 4 kB / 327.1 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.763e-05/0.003206, allocations: 15.8 kB / 327.1 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.142e-05/0.003268, allocations: 35.66 kB / 327.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002541/0.003522, allocations: 51.81 kB / 327.2 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001374/0.003659, allocations: 123.5 kB / 327.3 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.003789, allocations: 56.58 kB / 327.3 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.81e-05/0.003877, allocations: 63.88 kB / 327.4 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.047e-05/0.003938, allocations: 43.89 kB / 327.4 MB, free: 13.06 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.502e-05/0.003963, allocations: 8 kB / 327.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.381e-05/0.003977, allocations: 12 kB / 327.5 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.497e-05/0.004002, allocations: 27.84 kB / 327.5 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.978e-05/0.004041, allocations: 39.91 kB / 327.5 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000156/0.004197, allocations: 131.5 kB / 327.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.683e-06/0.004199, allocations: 0 / 327.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.0042, allocations: 0 / 327.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.038e-06/0.004204, allocations: 0 / 327.6 MB, free: 12.84 MB / 298.7 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.0004238/0.004628, allocations: 353.8 kB / 328 MB, free: 12.47 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.004659, allocations: 8.031 kB / 328 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.368e-05/0.004693, allocations: 42.75 kB / 328 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.988e-05/0.004723, allocations: 20.83 kB / 328.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002064/0.004929, allocations: 145.6 kB / 328.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.004941, allocations: 8.375 kB / 328.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.519e-05/0.004966, allocations: 16.33 kB / 328.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003423/0.005308, allocations: 235.2 kB / 328.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.00532, allocations: 192 / 328.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.005333, allocations: 12.12 kB / 328.5 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.005338, allocations: 0 / 328.5 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001451/0.005484, allocations: 87.81 kB / 328.6 MB, free: 11.85 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004631/0.005947, allocations: 0.5155 MB / 329.1 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001736/0.00612, allocations: 143.9 kB / 329.2 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.472e-05/0.006205, allocations: 66.64 kB / 329.3 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/0.006225, allocations: 7.984 kB / 329.3 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.014e-05/0.006245, allocations: 38.56 kB / 329.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.242e-06/0.006246, allocations: 0 / 329.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.000339/0.006585, allocations: 173.5 kB / 329.5 MB, free: 10.8 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.406e-05/0.006639, allocations: 122.7 kB / 329.6 MB, free: 10.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.838e-05/0.006708, allocations: 126.1 kB / 329.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.213e-05/0.00672, allocations: 29.69 kB / 329.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.705e-05/0.006767, allocations: 112.1 kB / 329.9 MB, free: 10.37 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.08e-05/0.006788, allocations: 23.78 kB / 329.9 MB, free: 10.35 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.338e-05/0.006821, allocations: 29.7 kB / 329.9 MB, free: 10.31 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.033e-05/0.006891, allocations: 322.8 kB / 330.2 MB, free: 9.988 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.375e-05/0.006945, allocations: 27.97 kB / 330.3 MB, free: 9.961 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.109e-05/0.007016, allocations: 78.88 kB / 330.3 MB, free: 9.859 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001278/0.007144, allocations: 114.7 kB / 330.5 MB, free: 9.723 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.007146, allocations: 0 / 330.5 MB, free: 9.723 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001615/0.007307, allocations: 137.4 kB / 330.6 MB, free: 9.582 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.007319, allocations: 8 kB / 330.6 MB, free: 9.574 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.007324, allocations: 0 / 330.6 MB, free: 9.574 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.007337, allocations: 4 kB / 330.6 MB, free: 9.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.459e-05/0.007421, allocations: 23.98 kB / 330.6 MB, free: 9.547 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.007428, allocations: 8.156 kB / 330.6 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.403e-05/0.007472, allocations: 23.94 kB / 330.7 MB, free: 9.516 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-06/0.007478, allocations: 4.375 kB / 330.7 MB, free: 9.512 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (12): * Single equations (assignments): 12 * 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 6.603e-05/0.007544, allocations: 125.7 kB / 330.8 MB, free: 9.379 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.145e-05/0.007626, allocations: 85.52 kB / 330.9 MB, free: 9.289 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.736e-05/0.007653, allocations: 20.77 kB / 330.9 MB, free: 9.273 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.007656, allocations: 4 kB / 330.9 MB, free: 9.27 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.007662, allocations: 7.938 kB / 330.9 MB, free: 9.262 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.007665, allocations: 0 / 330.9 MB, free: 9.262 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001724/0.007837, allocations: 168.7 kB / 331.1 MB, free: 9.055 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.007839, allocations: 4 kB / 331.1 MB, free: 9.051 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.836e-05/0.007927, allocations: 31.98 kB / 331.1 MB, free: 9.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.00793, allocations: 0 / 331.1 MB, free: 9.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.007941, allocations: 8 kB / 331.1 MB, free: 9.012 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.007943, allocations: 3.984 kB / 331.1 MB, free: 9.008 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.007946, allocations: 7.922 kB / 331.1 MB, free: 9 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003556/0.008301, allocations: 367.2 kB / 331.5 MB, free: 8.625 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.336e-05/0.008315, allocations: 15.94 kB / 331.5 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.504e-05/0.00833, allocations: 12 kB / 331.5 MB, free: 8.598 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.763e-05/0.008397, allocations: 7.984 kB / 331.5 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.126e-05/0.008429, allocations: 15.88 kB / 331.5 MB, free: 8.574 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.051e-06/0.008435, allocations: 3.984 kB / 331.5 MB, free: 8.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.649e-05/0.008471, allocations: 102.1 kB / 331.6 MB, free: 8.473 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008471, allocations: 0 / 331.6 MB, free: 8.473 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001924/0.008664, allocations: 20 kB / 331.7 MB, free: 8.453 MB / 298.7 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.0004457/0.009109, allocations: 0.8999 MB / 332.6 MB, free: 7.52 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001648/0.009274, allocations: 100.2 kB / 332.7 MB, free: 7.422 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.213e-06/0.009275, allocations: 0 / 332.7 MB, free: 7.422 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.004e-05/0.009325, allocations: 31.91 kB / 332.7 MB, free: 7.391 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/0.009663, allocations: 54.02 kB / 332.7 MB, free: 7.34 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.01096, allocations: 1.811 MB / 334.5 MB, free: 5.391 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.156e-05/0.01103, allocations: 105.3 kB / 334.7 MB, free: 5.27 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.872e-05/0.01106, allocations: 4.5 kB / 334.7 MB, free: 5.266 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.46e-05/0.01112, allocations: 36.48 kB / 334.7 MB, free: 5.23 MB / 298.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01112, allocations: 0 / 334.7 MB, free: 5.23 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01555/0.02667, allocations: 3.38 MB / 338.1 MB, free: 2.039 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.99/7.017, allocations: 11.86 kB / 338.1 MB, free: 2.027 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.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: 8.886370326392353]