Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001467/0.001467, allocations: 120.1 kB / 17.78 MB, free: 5.23 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.001426/0.001426, allocations: 198.8 kB / 20.73 MB, free: 2.289 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.541/1.541, allocations: 225.6 MB / 249.1 MB, free: 3.602 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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 51.92 kB / 365.6 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1241, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.00407/0.1281, allocations: 2.036 MB / 419.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001244/0.1294, allocations: 0.5726 MB / 420.4 MB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001536/0.1295, allocations: 7.938 kB / 420.4 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001534/0.1297, allocations: 15.8 kB / 420.4 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002211/0.1299, allocations: 35.72 kB / 420.4 MB, free: 9.941 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003736/0.1303, allocations: 67.8 kB / 420.5 MB, free: 9.875 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002419/0.1305, allocations: 135.5 kB / 420.6 MB, free: 9.742 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001744/0.1307, allocations: 37.88 kB / 420.7 MB, free: 9.703 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001009/0.1308, allocations: 55.84 kB / 420.7 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001125/0.1309, allocations: 67.62 kB / 420.8 MB, free: 9.582 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.358e-05/0.1309, allocations: 8 kB / 420.8 MB, free: 9.574 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.824e-05/0.131, allocations: 12 kB / 420.8 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.654e-05/0.131, allocations: 31.86 kB / 420.8 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.374e-05/0.1311, allocations: 63.61 kB / 420.9 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000302/0.1314, allocations: 147.3 kB / 421 MB, free: 9.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.1314, allocations: 0 / 421 MB, free: 9.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.516e-06/0.1314, allocations: 0 / 421 MB, free: 9.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.295e-06/0.1315, allocations: 0 / 421 MB, free: 9.324 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0008524/0.1323, allocations: 470.7 kB / 421.5 MB, free: 8.816 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.1323, allocations: 15.91 kB / 421.5 MB, free: 8.801 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.836e-05/0.1324, allocations: 50.73 kB / 421.6 MB, free: 8.742 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.748e-05/0.1325, allocations: 20.84 kB / 421.6 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003882/0.1328, allocations: 216.1 kB / 421.8 MB, free: 8.473 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.1329, allocations: 8.375 kB / 421.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.625e-05/0.1329, allocations: 20.38 kB / 421.8 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005997/0.1335, allocations: 265.9 kB / 422.1 MB, free: 8.164 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/0.1335, allocations: 4 kB / 422.1 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.525e-05/0.1335, allocations: 8 kB / 422.1 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.1336, allocations: 4 kB / 422.1 MB, free: 8.148 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002755/0.1338, allocations: 79.88 kB / 422.2 MB, free: 8.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008042/0.1346, allocations: 0.6 MB / 422.8 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003781/0.135, allocations: 135.7 kB / 422.9 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001756/0.1352, allocations: 78.75 kB / 423 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.538e-05/0.1352, allocations: 4 kB / 423 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.607e-05/0.1353, allocations: 38.55 kB / 423 MB, free: 7.098 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 3.877e-06/0.1353, allocations: 7.984 kB / 423 MB, free: 7.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005865/0.1358, allocations: 181.4 kB / 423.2 MB, free: 6.906 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.268e-05/0.1359, allocations: 114.9 kB / 423.3 MB, free: 6.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000165/0.1361, allocations: 162.8 kB / 423.5 MB, free: 6.602 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.1361, allocations: 25.7 kB / 423.5 MB, free: 6.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001441/0.1363, allocations: 112.5 kB / 423.6 MB, free: 6.457 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.616e-05/0.1363, allocations: 27.78 kB / 423.7 MB, free: 6.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.773e-05/0.1364, allocations: 41.66 kB / 423.7 MB, free: 6.383 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.1366, allocations: 322.8 kB / 424 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001317/0.1367, allocations: 43.91 kB / 424 MB, free: 6.016 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002256/0.1369, allocations: 133.7 kB / 424.2 MB, free: 5.836 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003565/0.1373, allocations: 189.5 kB / 424.4 MB, free: 5.602 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/0.1373, allocations: 3.938 kB / 424.4 MB, free: 5.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004041/0.1377, allocations: 193.4 kB / 424.6 MB, free: 5.402 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.1377, allocations: 11.94 kB / 424.6 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.1377, allocations: 4 kB / 424.6 MB, free: 5.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.565e-05/0.1377, allocations: 4 kB / 424.6 MB, free: 5.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000162/0.1379, allocations: 43.91 kB / 424.6 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.1379, allocations: 8.375 kB / 424.6 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000109/0.138, allocations: 23.88 kB / 424.7 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.832e-05/0.138, allocations: 8.25 kB / 424.7 MB, free: 5.301 MB / 350.1 MB 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.0001376/0.1382, allocations: 141.7 kB / 424.8 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001633/0.1383, allocations: 93.47 kB / 424.9 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.776e-05/0.1384, allocations: 20.7 kB / 424.9 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.1385, allocations: 4 kB / 424.9 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.1385, allocations: 0 / 424.9 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.1385, allocations: 4 kB / 424.9 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003277/0.1388, allocations: 221.4 kB / 425.1 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.1388, allocations: 0 / 425.1 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001806/0.139, allocations: 39.92 kB / 425.2 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.139, allocations: 0 / 425.2 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.675e-05/0.139, allocations: 15.98 kB / 425.2 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.139, allocations: 0 / 425.2 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.139, allocations: 0 / 425.2 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000596/0.1396, allocations: 383.4 kB / 425.6 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.1397, allocations: 105 kB / 425.7 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.563e-05/0.1397, allocations: 4 kB / 425.7 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001391/0.1399, allocations: 11.98 kB / 425.7 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.123e-05/0.1399, allocations: 3.938 kB / 425.7 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.408e-06/0.1399, allocations: 4 kB / 425.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001041/0.14, allocations: 119.2 kB / 425.8 MB, free: 4.047 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.14, allocations: 0 / 425.8 MB, free: 4.047 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003218/0.1403, allocations: 32 kB / 425.8 MB, free: 4.016 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.0009117/0.1413, allocations: 0.9263 MB / 426.8 MB, free: 3.062 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003663/0.1416, allocations: 119.7 kB / 426.9 MB, free: 2.945 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1416, allocations: 0 / 426.9 MB, free: 2.945 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001007/0.1417, allocations: 29.34 kB / 426.9 MB, free: 2.918 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005212/0.1423, allocations: 67.8 kB / 427 MB, free: 2.855 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002833/0.1451, allocations: 2.111 MB / 429.1 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004121/0.1455, allocations: 0.7238 MB / 429.8 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.82e-05/0.1455, allocations: 13.42 kB / 429.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.875e-05/0.1456, allocations: 39.42 kB / 429.9 MB, free: 15.76 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1456, allocations: 0 / 429.9 MB, free: 15.76 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02987/0.1755, allocations: 3.01 MB / 432.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.651/8.826, allocations: 7.75 kB / 432.9 MB, free: 12.93 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_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_ExactlyClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_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.60947019327432]