Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.002076/0.002076, allocations: 120.4 kB / 17.79 MB, free: 5.285 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.002293/0.002293, allocations: 199.3 kB / 20.74 MB, free: 2.344 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.581/1.581, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001507, allocations: 51.92 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1237, allocations: 53.32 MB / 426.3 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.004023/0.1277, allocations: 2.052 MB / 428.3 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001365/0.1291, allocations: 0.6154 MB / 429 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001789/0.1293, allocations: 7.938 kB / 429 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001621/0.1295, allocations: 19.8 kB / 429 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002433/0.1297, allocations: 27.72 kB / 429 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003643/0.1301, allocations: 75.25 kB / 429.1 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002522/0.1303, allocations: 131.5 kB / 429.2 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001675/0.1305, allocations: 45.8 kB / 429.3 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001234/0.1306, allocations: 51.73 kB / 429.3 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001191/0.1307, allocations: 63.69 kB / 429.4 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.162e-05/0.1308, allocations: 12 kB / 429.4 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.547e-05/0.1308, allocations: 12 kB / 429.4 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.359e-05/0.1309, allocations: 35.91 kB / 429.4 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.682e-05/0.1309, allocations: 63.61 kB / 429.5 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002941/0.1312, allocations: 147.2 kB / 429.6 MB, free: 1.453 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1312, allocations: 0 / 429.6 MB, free: 1.453 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1312, allocations: 0 / 429.6 MB, free: 1.453 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.254e-06/0.1313, allocations: 0 / 429.6 MB, free: 1.453 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.0008275/0.1321, allocations: 462.6 kB / 430.1 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.1321, allocations: 16.03 kB / 430.1 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.524e-05/0.1322, allocations: 46.73 kB / 430.1 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.034e-05/0.1322, allocations: 20.8 kB / 430.2 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003611/0.1326, allocations: 216.1 kB / 430.4 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.1326, allocations: 12.38 kB / 430.4 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.451e-05/0.1326, allocations: 12.38 kB / 430.4 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005916/0.1332, allocations: 255.2 kB / 430.6 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/0.1333, allocations: 4 kB / 430.7 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.941e-05/0.1333, allocations: 4 kB / 430.7 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.1333, allocations: 4 kB / 430.7 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002899/0.1336, allocations: 95.86 kB / 430.8 MB, free: 216 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008026/0.1344, allocations: 0.5883 MB / 431.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003992/0.1348, allocations: 143.8 kB / 431.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000178/0.1349, allocations: 78.62 kB / 431.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.049e-05/0.135, allocations: 3.984 kB / 431.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.135, allocations: 38.56 kB / 431.6 MB, free: 15.24 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.724e-06/0.135, allocations: 0 / 431.6 MB, free: 15.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006241/0.1356, allocations: 189.3 kB / 431.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.1357, allocations: 111.2 kB / 431.9 MB, free: 14.92 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001682/0.1359, allocations: 162.3 kB / 432.1 MB, free: 14.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.141e-05/0.1359, allocations: 33.64 kB / 432.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.175e-05/0.136, allocations: 112.5 kB / 432.2 MB, free: 14.6 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.366e-05/0.1361, allocations: 35.72 kB / 432.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.295e-05/0.1361, allocations: 37.7 kB / 432.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.1363, allocations: 322.8 kB / 432.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001248/0.1364, allocations: 35.97 kB / 432.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002055/0.1366, allocations: 133.7 kB / 432.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003338/0.137, allocations: 185.6 kB / 432.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.137, allocations: 7.938 kB / 432.9 MB, free: 13.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004067/0.1374, allocations: 197.6 kB / 433.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.1374, allocations: 8.031 kB / 433.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.1374, allocations: 8 kB / 433.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.1374, allocations: 4 kB / 433.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/0.1376, allocations: 51.91 kB / 433.2 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.1376, allocations: 4 kB / 433.2 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/0.1377, allocations: 19.89 kB / 433.2 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.654e-05/0.1377, allocations: 11.98 kB / 433.2 MB, free: 13.44 MB / 366.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.0001375/0.1379, allocations: 133.7 kB / 433.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001661/0.138, allocations: 97.53 kB / 433.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.57e-05/0.1381, allocations: 24.7 kB / 433.5 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.1381, allocations: 0 / 433.5 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.1381, allocations: 0 / 433.5 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.1381, allocations: 4 kB / 433.5 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003171/0.1384, allocations: 213.5 kB / 433.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1384, allocations: 0 / 433.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001969/0.1386, allocations: 39.91 kB / 433.7 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.626e-06/0.1386, allocations: 0 / 433.7 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.1387, allocations: 4 kB / 433.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.1387, allocations: 4 kB / 433.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1387, allocations: 0 / 433.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000631/0.1393, allocations: 391.8 kB / 434.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001108/0.1394, allocations: 101 kB / 434.2 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.858e-05/0.1394, allocations: 16.05 kB / 434.2 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001377/0.1396, allocations: 4 kB / 434.2 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.306e-05/0.1396, allocations: 12.08 kB / 434.3 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.088e-06/0.1396, allocations: 11.88 kB / 434.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001064/0.1397, allocations: 120.1 kB / 434.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1397, allocations: 0 / 434.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003368/0.1401, allocations: 27.94 kB / 434.4 MB, free: 12.16 MB / 366.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.001012/0.1411, allocations: 0.9232 MB / 435.3 MB, free: 11.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003552/0.1414, allocations: 123.7 kB / 435.5 MB, free: 11.08 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1414, allocations: 0 / 435.5 MB, free: 11.08 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.1415, allocations: 27.97 kB / 435.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005501/0.1421, allocations: 62.89 kB / 435.5 MB, free: 11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00286/0.145, allocations: 2.111 MB / 437.7 MB, free: 8.703 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004046/0.1454, allocations: 0.724 MB / 438.4 MB, free: 7.953 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.056e-05/0.1454, allocations: 13.42 kB / 438.4 MB, free: 7.941 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.841e-05/0.1455, allocations: 35.44 kB / 438.4 MB, free: 7.906 MB / 366.1 MB Notification: Performance of SimCode: time 9.12e-07/0.1455, allocations: 0 / 438.4 MB, free: 7.906 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03545/0.181, allocations: 2.987 MB / 441.4 MB, free: 5.109 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.573/8.754, allocations: 10.58 kB / 441.4 MB, free: 5.102 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.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.901601550998748]