Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.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.001308/0.001308, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.001404/0.001404, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.593/1.593, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2401/0.2401, allocations: 46.92 MB / 357.1 MB, free: 10.32 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00255/0.00255, allocations: 63.91 kB / 0.4909 GB, free: 7.996 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1418, allocations: 65.99 MB / 0.5553 GB, free: 5.879 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001661/0.1435, allocations: 495.4 kB / 0.5558 GB, free: 5.395 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002146/0.1456, allocations: 1.267 MB / 0.5571 GB, free: 4.121 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.393e-05/0.1456, allocations: 0 / 0.5571 GB, free: 4.121 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.741e-05/0.1456, allocations: 7.938 kB / 0.5571 GB, free: 4.113 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001789/0.1458, allocations: 19.97 kB / 0.5571 GB, free: 4.094 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:455:3-487:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001188/0.147, allocations: 237 kB / 0.5573 GB, free: 3.863 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.079e-05/0.1471, allocations: 15.92 kB / 0.5573 GB, free: 3.848 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.716e-05/0.1471, allocations: 0 / 0.5573 GB, free: 3.848 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.807e-05/0.1471, allocations: 0 / 0.5573 GB, free: 3.848 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.784e-05/0.1472, allocations: 15.92 kB / 0.5573 GB, free: 3.832 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.714e-06/0.1472, allocations: 0 / 0.5573 GB, free: 3.832 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004153/0.1514, allocations: 0.6928 MB / 0.558 GB, free: 3.266 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.042e-05/0.1514, allocations: 0 / 0.558 GB, free: 3.266 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.31e-05/0.1514, allocations: 4 kB / 0.558 GB, free: 3.262 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003168/0.1517, allocations: 187.5 kB / 0.5582 GB, free: 3.078 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.1517, allocations: 7.938 kB / 0.5582 GB, free: 3.07 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1517, allocations: 4 kB / 0.5582 GB, free: 3.066 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.1517, allocations: 0 / 0.5582 GB, free: 3.066 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004968/0.1522, allocations: 388.8 kB / 0.5586 GB, free: 2.633 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.1523, allocations: 8.031 kB / 0.5586 GB, free: 2.625 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.56e-05/0.1523, allocations: 34.69 kB / 0.5586 GB, free: 2.582 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.457e-05/0.1523, allocations: 4.938 kB / 0.5586 GB, free: 2.578 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001378/0.1525, allocations: 160.4 kB / 0.5588 GB, free: 2.383 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.1525, allocations: 384 / 0.5588 GB, free: 2.383 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.414e-06/0.1525, allocations: 384 / 0.5588 GB, free: 2.383 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.674e-05/0.1526, allocations: 41.62 kB / 0.5588 GB, free: 2.336 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.527e-06/0.1526, allocations: 4 kB / 0.5588 GB, free: 2.332 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.404e-06/0.1526, allocations: 0 / 0.5588 GB, free: 2.332 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.596e-06/0.1526, allocations: 0 / 0.5588 GB, free: 2.332 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.864e-05/0.1526, allocations: 7.938 kB / 0.5588 GB, free: 2.324 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001608/0.1528, allocations: 145.7 kB / 0.559 GB, free: 2.133 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.673e-05/0.1528, allocations: 22.59 kB / 0.559 GB, free: 2.102 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.685e-05/0.1529, allocations: 4.859 kB / 0.559 GB, free: 2.094 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.227e-06/0.1529, allocations: 7.938 kB / 0.559 GB, free: 2.086 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.781e-05/0.1529, allocations: 56.27 kB / 0.5591 GB, free: 2.016 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1529, allocations: 0 / 0.5591 GB, free: 2.016 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001839/0.1531, allocations: 71.41 kB / 0.5591 GB, free: 1.934 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.273e-05/0.1532, allocations: 81.09 kB / 0.5592 GB, free: 1.836 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.352e-05/0.1533, allocations: 93.86 kB / 0.5593 GB, free: 1.734 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.392e-05/0.1533, allocations: 25.95 kB / 0.5593 GB, free: 1.703 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.753e-05/0.1533, allocations: 84.14 kB / 0.5594 GB, free: 1.617 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.327e-05/0.1533, allocations: 0 / 0.5594 GB, free: 1.617 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.216e-05/0.1534, allocations: 17.72 kB / 0.5594 GB, free: 1.594 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.1535, allocations: 310.8 kB / 0.5597 GB, free: 1.281 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.106e-05/0.1535, allocations: 3.984 kB / 0.5597 GB, free: 1.277 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.995e-06/0.1535, allocations: 4 kB / 0.5597 GB, free: 1.273 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.962e-05/0.1536, allocations: 56.27 kB / 0.5598 GB, free: 1.203 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1536, allocations: 8.062 kB / 0.5598 GB, free: 1.195 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.544e-05/0.1537, allocations: 75.23 kB / 0.5598 GB, free: 1.109 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.139e-05/0.1537, allocations: 29.7 kB / 0.5599 GB, free: 1.074 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.1537, allocations: 3.984 kB / 0.5599 GB, free: 1.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.1537, allocations: 0 / 0.5599 GB, free: 1.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.01e-07/0.1537, allocations: 0 / 0.5599 GB, free: 1.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.648e-06/0.1537, allocations: 0 / 0.5599 GB, free: 1.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.097e-05/0.1537, allocations: 4 kB / 0.5599 GB, free: 1.066 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.453e-06/0.1537, allocations: 0 / 0.5599 GB, free: 1.066 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.000107/0.1538, allocations: 141.7 kB / 0.56 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.609e-05/0.1539, allocations: 11.88 kB / 0.56 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.967e-06/0.1539, allocations: 3.125 kB / 0.56 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.1539, allocations: 0 / 0.56 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1539, allocations: 0 / 0.56 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-06/0.1539, allocations: 0 / 0.56 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000121/0.154, allocations: 153.7 kB / 0.5602 GB, free: 0.7031 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.154, allocations: 3.938 kB / 0.5602 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.51e-07/0.154, allocations: 0 / 0.5602 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.154, allocations: 0 / 0.5602 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.182e-06/0.154, allocations: 4 kB / 0.5602 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.154, allocations: 0 / 0.5602 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.154, allocations: 0 / 0.5602 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000121/0.1541, allocations: 98.77 kB / 0.5603 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.19e-05/0.1542, allocations: 81.05 kB / 0.5604 GB, free: 488 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/0.1542, allocations: 3.984 kB / 0.5604 GB, free: 484 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.351e-05/0.1542, allocations: 4 kB / 0.5604 GB, free: 480 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.779e-05/0.1542, allocations: 3.984 kB / 0.5604 GB, free: 476 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-06/0.1542, allocations: 8.031 kB / 0.5604 GB, free: 468 kB / 414.1 MB Notification: Performance of sorting global known variables: time 3.921e-05/0.1543, allocations: 75.28 kB / 0.5604 GB, free: 392 kB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1543, allocations: 0 / 0.5604 GB, free: 392 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003141/0.1546, allocations: 63.86 kB / 0.5605 GB, free: 328 kB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.001149/0.1557, allocations: 0.8633 MB / 0.5614 GB, free: 15.49 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001032/0.1558, allocations: 59.41 kB / 0.5614 GB, free: 15.42 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1558, allocations: 0 / 0.5614 GB, free: 15.42 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.765e-05/0.1559, allocations: 55.41 kB / 0.5615 GB, free: 15.35 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001284/0.156, allocations: 3.938 kB / 0.5615 GB, free: 15.35 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003666/0.1564, allocations: 138.5 kB / 0.5616 GB, free: 15.17 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000347/0.1567, allocations: 0.6729 MB / 0.5623 GB, free: 14.47 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.137e-05/0.1567, allocations: 0 / 0.5623 GB, free: 14.47 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.931e-05/0.1568, allocations: 15.55 kB / 0.5623 GB, free: 14.46 MB / 430.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1568, allocations: 0 / 0.5623 GB, free: 14.46 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02742/0.1842, allocations: 2.534 MB / 0.5647 GB, free: 12 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.252/8.436, allocations: 14.73 kB / 0.5648 GB, free: 11.98 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.574180706011248]