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.001688/0.001688, allocations: 124.1 kB / 17.79 MB, free: 5.25 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.001938/0.001938, allocations: 198.8 kB / 20.73 MB, free: 2.309 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.58/1.58, allocations: 225.6 MB / 249.1 MB, free: 3.617 MB / 190.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.001515/0.001515, allocations: 43.92 kB / 365.6 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1247, allocations: 52.15 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003454/0.1282, allocations: 2.011 MB / 419.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009291/0.1291, allocations: 0.4986 MB / 420.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000108/0.1292, allocations: 7.938 kB / 420.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001312/0.1294, allocations: 15.8 kB / 420.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.143e-05/0.1294, allocations: 27.72 kB / 420.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003271/0.1298, allocations: 55.88 kB / 420.4 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001972/0.13, allocations: 127.5 kB / 420.5 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001586/0.1301, allocations: 41.42 kB / 420.5 MB, free: 9.828 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.814e-05/0.1302, allocations: 47.84 kB / 420.6 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.602e-05/0.1303, allocations: 55.72 kB / 420.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.396e-05/0.1303, allocations: 12 kB / 420.7 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.314e-05/0.1304, allocations: 15.94 kB / 420.7 MB, free: 9.699 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.587e-05/0.1304, allocations: 27.91 kB / 420.7 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.068e-05/0.1305, allocations: 55.72 kB / 420.8 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002339/0.1307, allocations: 123.4 kB / 420.9 MB, free: 9.496 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.1307, allocations: 0 / 420.9 MB, free: 9.496 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1307, allocations: 0 / 420.9 MB, free: 9.496 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.1307, allocations: 0 / 420.9 MB, free: 9.496 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006953/0.1314, allocations: 434.9 kB / 421.3 MB, free: 9.023 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.1315, allocations: 15.89 kB / 421.3 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.021e-05/0.1315, allocations: 42.73 kB / 421.4 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.885e-05/0.1316, allocations: 12.84 kB / 421.4 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003149/0.1319, allocations: 212.1 kB / 421.6 MB, free: 8.699 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.754e-05/0.1319, allocations: 8.375 kB / 421.6 MB, free: 8.691 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.415e-05/0.1319, allocations: 12.38 kB / 421.6 MB, free: 8.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005338/0.1325, allocations: 250.7 kB / 421.8 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.775e-05/0.1325, allocations: 3.953 kB / 421.8 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.1325, allocations: 4 kB / 421.9 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.1325, allocations: 8 kB / 421.9 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002808/0.1328, allocations: 91.88 kB / 422 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006984/0.1335, allocations: 0.5843 MB / 422.5 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002886/0.1338, allocations: 135.9 kB / 422.7 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001685/0.1339, allocations: 70.64 kB / 422.7 MB, free: 7.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.43e-05/0.134, allocations: 7.922 kB / 422.7 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.362e-05/0.134, allocations: 38.55 kB / 422.8 MB, free: 7.355 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.302e-06/0.134, allocations: 0 / 422.8 MB, free: 7.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005614/0.1345, allocations: 185.4 kB / 423 MB, free: 7.168 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.471e-05/0.1346, allocations: 114.8 kB / 423.1 MB, free: 7.031 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.1347, allocations: 127.1 kB / 423.2 MB, free: 6.895 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.084e-05/0.1348, allocations: 29.7 kB / 423.2 MB, free: 6.859 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.064e-05/0.1348, allocations: 116.1 kB / 423.3 MB, free: 6.742 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.011e-05/0.1349, allocations: 27.78 kB / 423.4 MB, free: 6.715 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.254e-05/0.1349, allocations: 29.72 kB / 423.4 MB, free: 6.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.1351, allocations: 322.8 kB / 423.7 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.1352, allocations: 39.97 kB / 423.8 MB, free: 6.316 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001894/0.1354, allocations: 142.8 kB / 423.9 MB, free: 6.133 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003126/0.1357, allocations: 176.7 kB / 424.1 MB, free: 5.914 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.1357, allocations: 0 / 424.1 MB, free: 5.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003808/0.1361, allocations: 181.6 kB / 424.2 MB, free: 5.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.1361, allocations: 12.09 kB / 424.3 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.1361, allocations: 7.938 kB / 424.3 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.1361, allocations: 4 kB / 424.3 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001791/0.1363, allocations: 43.91 kB / 424.3 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.1363, allocations: 4 kB / 424.3 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/0.1364, allocations: 27.88 kB / 424.3 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.395e-05/0.1364, allocations: 8 kB / 424.3 MB, free: 5.625 MB / 350.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.0001173/0.1366, allocations: 133.7 kB / 424.5 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001477/0.1367, allocations: 85.53 kB / 424.6 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.49e-05/0.1368, allocations: 20.66 kB / 424.6 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.1368, allocations: 0 / 424.6 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.1368, allocations: 4 kB / 424.6 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.1368, allocations: 240 / 424.6 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002858/0.1371, allocations: 197.6 kB / 424.8 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1371, allocations: 0 / 424.8 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001828/0.1372, allocations: 48.36 kB / 424.8 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.1372, allocations: 0 / 424.8 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/0.1373, allocations: 7.938 kB / 424.8 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1373, allocations: 4 kB / 424.8 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1373, allocations: 0 / 424.8 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005977/0.1379, allocations: 375.4 kB / 425.2 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.431e-05/0.1379, allocations: 97.08 kB / 425.3 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.877e-05/0.138, allocations: 11.94 kB / 425.3 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001341/0.1381, allocations: 4 kB / 425.3 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.753e-05/0.1381, allocations: 11.98 kB / 425.3 MB, free: 4.535 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-06/0.1381, allocations: 4 kB / 425.3 MB, free: 4.531 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.768e-05/0.1382, allocations: 97.66 kB / 425.4 MB, free: 4.438 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1382, allocations: 0 / 425.4 MB, free: 4.438 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003229/0.1386, allocations: 27.95 kB / 425.5 MB, free: 4.41 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 (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.0009586/0.1395, allocations: 0.9126 MB / 426.4 MB, free: 3.473 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003526/0.1399, allocations: 119.8 kB / 426.5 MB, free: 3.355 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1399, allocations: 0 / 426.5 MB, free: 3.355 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001043/0.14, allocations: 31.91 kB / 426.5 MB, free: 3.324 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005042/0.1405, allocations: 52.88 kB / 426.6 MB, free: 3.273 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002672/0.1432, allocations: 2.027 MB / 428.6 MB, free: 1.074 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003728/0.1435, allocations: 0.72 MB / 429.3 MB, free: 336 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.666e-05/0.1436, allocations: 8.641 kB / 429.3 MB, free: 328 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.256e-05/0.1436, allocations: 43.42 kB / 429.4 MB, free: 284 kB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1436, allocations: 0 / 429.4 MB, free: 284 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02708/0.1707, allocations: 2.759 MB / 432.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.928/9.099, allocations: 9.984 kB / 432.1 MB, free: 13.7 MB / 366.1 MB " [Timeout remaining time 651] (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: 11.922010604292154]