Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.00134/0.00134, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 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.001488/0.001488, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 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 1.583/1.583, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] 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.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 47.92 kB / 373 MB, free: 10.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1107, allocations: 53.32 MB / 426.3 MB, free: 4.906 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.004093/0.1148, allocations: 2.086 MB / 428.4 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001112/0.1159, allocations: 0.5415 MB / 428.9 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.1161, allocations: 7.938 kB / 428.9 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001259/0.1162, allocations: 15.8 kB / 428.9 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.632e-05/0.1163, allocations: 31.72 kB / 429 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003013/0.1166, allocations: 59.5 kB / 429 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002111/0.1168, allocations: 127.5 kB / 429.1 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001615/0.1169, allocations: 45.8 kB / 429.2 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.216e-05/0.117, allocations: 55.73 kB / 429.2 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.435e-05/0.1171, allocations: 59.75 kB / 429.3 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.623e-05/0.1172, allocations: 8 kB / 429.3 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.305e-05/0.1172, allocations: 12 kB / 429.3 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.577e-05/0.1172, allocations: 27.86 kB / 429.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.313e-05/0.1173, allocations: 59.67 kB / 429.4 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002206/0.1175, allocations: 131.4 kB / 429.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1175, allocations: 0 / 429.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1175, allocations: 0 / 429.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.298e-06/0.1175, allocations: 0 / 429.5 MB, free: 1.629 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0007017/0.1182, allocations: 438.8 kB / 430 MB, free: 1.152 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.1183, allocations: 12.03 kB / 430 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.181e-05/0.1183, allocations: 46.73 kB / 430 MB, free: 1.086 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.182e-05/0.1184, allocations: 16.84 kB / 430 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003299/0.1187, allocations: 212.1 kB / 430.2 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.1187, allocations: 8.375 kB / 430.3 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.887e-05/0.1188, allocations: 12.38 kB / 430.3 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005535/0.1193, allocations: 238.7 kB / 430.5 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.1193, allocations: 3.938 kB / 430.5 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.908e-05/0.1193, allocations: 7.984 kB / 430.5 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.1194, allocations: 8 kB / 430.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000269/0.1196, allocations: 79.88 kB / 430.6 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2224/0.342, allocations: 0.5905 MB / 431.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006591/0.3427, allocations: 146.4 kB / 431.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002697/0.343, allocations: 74.81 kB / 431.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.006e-05/0.343, allocations: 2.531 kB / 431.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.585e-05/0.343, allocations: 35.25 kB / 431.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 3.667e-06/0.343, allocations: 1.156 kB / 431.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0008653/0.3439, allocations: 181.1 kB / 431.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.907e-05/0.344, allocations: 115.5 kB / 431.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001738/0.3442, allocations: 135 kB / 431.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.039e-05/0.3442, allocations: 29.89 kB / 431.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.717e-05/0.3443, allocations: 114.8 kB / 432 MB, free: 10.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.798e-05/0.3443, allocations: 29.31 kB / 432 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.989e-05/0.3444, allocations: 36.27 kB / 432.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.052e-05/0.3445, allocations: 326.3 kB / 432.4 MB, free: 9.973 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001778/0.3447, allocations: 35.62 kB / 432.4 MB, free: 9.973 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002362/0.3449, allocations: 145.5 kB / 432.6 MB, free: 9.848 MB / 350.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0005766/0.3455, allocations: 278.2 kB / 432.8 MB, free: 9.629 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.3455, allocations: 1.062 kB / 432.8 MB, free: 9.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005642/0.3461, allocations: 197 kB / 433 MB, free: 9.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.217e-05/0.3461, allocations: 11.69 kB / 433 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.3461, allocations: 3.438 kB / 433 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.915e-05/0.3461, allocations: 5.125 kB / 433 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000241/0.3464, allocations: 43.89 kB / 433.1 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.785e-05/0.3464, allocations: 8.875 kB / 433.1 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001697/0.3466, allocations: 23.12 kB / 433.1 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/0.3466, allocations: 11.72 kB / 433.1 MB, free: 9.586 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. 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 0.0001266/0.3467, allocations: 137.8 kB / 433.3 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002178/0.3469, allocations: 91.88 kB / 433.4 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.649e-05/0.347, allocations: 16.77 kB / 433.4 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.732e-06/0.347, allocations: 5.875 kB / 433.4 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.956e-06/0.347, allocations: 3.562 kB / 433.4 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.347, allocations: 1.125 kB / 433.4 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003362/0.3473, allocations: 216.1 kB / 433.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.3473, allocations: 1.094 kB / 433.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002946/0.3476, allocations: 40.11 kB / 433.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.3476, allocations: 1.625 kB / 433.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.046e-05/0.3477, allocations: 3.812 kB / 433.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.3477, allocations: 5.828 kB / 433.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.3477, allocations: 1.5 kB / 433.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007044/0.3484, allocations: 388.2 kB / 434 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.344e-05/0.3484, allocations: 90.92 kB / 434.1 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.162e-05/0.3485, allocations: 4.562 kB / 434.1 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000195/0.3486, allocations: 8.547 kB / 434.1 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.057e-05/0.3487, allocations: 3.375 kB / 434.1 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.285e-05/0.3487, allocations: 7.531 kB / 434.1 MB, free: 8.914 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.939e-05/0.3488, allocations: 104.5 kB / 434.2 MB, free: 8.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3488, allocations: 4 kB / 434.2 MB, free: 8.836 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005115/0.3493, allocations: 29.83 kB / 434.3 MB, free: 8.832 MB / 350.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.0009304/0.3503, allocations: 0.925 MB / 435.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005017/0.3508, allocations: 123.6 kB / 435.3 MB, free: 8.074 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.3508, allocations: 0.9375 kB / 435.3 MB, free: 8.074 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001336/0.3509, allocations: 27.69 kB / 435.3 MB, free: 8.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007725/0.3517, allocations: 62.58 kB / 435.4 MB, free: 8.062 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00296/0.3546, allocations: 2.096 MB / 437.5 MB, free: 6.414 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001894/0.3548, allocations: 0.7234 MB / 438.2 MB, free: 5.711 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.606e-05/0.3549, allocations: 9.906 kB / 438.2 MB, free: 5.711 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.469e-05/0.355, allocations: 34.38 kB / 438.3 MB, free: 5.703 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.355, allocations: 0 / 438.3 MB, free: 5.703 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03456/0.3895, allocations: 3.03 MB / 441.3 MB, free: 5.293 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.609/8.999, allocations: 4.922 kB / 441.3 MB, free: 5.289 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_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_ClockedWithDiscretizedContinuousController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_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: 11.804696649007383]