Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.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.001683/0.001683, 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.002094/0.002094, allocations: 203.3 kB / 20.74 MB, free: 2.316 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.528/1.528, 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2505/0.2505, allocations: 44.91 MB / 355.1 MB, free: 12.34 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.TestReadFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002677/0.002677, allocations: 67.89 kB / 499.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1473/0.15, allocations: 65.42 MB / 0.5517 GB, free: 10.18 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001539/0.1516, allocations: 496.9 kB / 0.5522 GB, free: 9.691 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001187/0.1527, allocations: 0.7819 MB / 0.553 GB, free: 8.906 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.218e-05/0.1528, allocations: 0 / 0.553 GB, free: 8.906 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.652e-05/0.1528, allocations: 0 / 0.553 GB, free: 8.906 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001631/0.153, allocations: 11.94 kB / 0.553 GB, free: 8.895 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:323:3-363:15:writable] Warning: Pure function 'ModelicaTest.Utilities.ReadFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0005885/0.1535, allocations: 59.42 kB / 0.553 GB, free: 8.844 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.14e-05/0.1536, allocations: 11.98 kB / 0.553 GB, free: 8.832 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.367e-05/0.1536, allocations: 3.984 kB / 0.553 GB, free: 8.828 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.662e-05/0.1536, allocations: 4 kB / 0.553 GB, free: 8.824 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.713e-05/0.1537, allocations: 0 / 0.553 GB, free: 8.824 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.575e-06/0.1537, allocations: 0 / 0.553 GB, free: 8.824 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001386/0.1539, allocations: 59.95 kB / 0.5531 GB, free: 8.766 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.574e-06/0.1539, allocations: 0 / 0.5531 GB, free: 8.766 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.896e-05/0.1539, allocations: 3.938 kB / 0.5531 GB, free: 8.762 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001404/0.154, allocations: 52.14 kB / 0.5532 GB, free: 8.711 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.154, allocations: 0 / 0.5532 GB, free: 8.711 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.154, allocations: 0 / 0.5532 GB, free: 8.711 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.154, allocations: 4 kB / 0.5532 GB, free: 8.707 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.0004048/0.1544, allocations: 365 kB / 0.5535 GB, free: 8.293 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.1545, allocations: 8.031 kB / 0.5535 GB, free: 8.285 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.23e-05/0.1545, allocations: 42.67 kB / 0.5536 GB, free: 8.234 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.332e-05/0.1545, allocations: 0.9375 kB / 0.5536 GB, free: 8.234 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001344/0.1547, allocations: 160.4 kB / 0.5537 GB, free: 8.039 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.568e-06/0.1547, allocations: 384 / 0.5537 GB, free: 8.039 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.542e-06/0.1547, allocations: 384 / 0.5537 GB, free: 8.039 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.405e-05/0.1548, allocations: 34.27 kB / 0.5537 GB, free: 8 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.1548, allocations: 3.938 kB / 0.5537 GB, free: 7.996 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.316e-06/0.1548, allocations: 3.984 kB / 0.5538 GB, free: 7.992 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.136e-06/0.1548, allocations: 0 / 0.5538 GB, free: 7.992 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.876e-05/0.1548, allocations: 7.984 kB / 0.5538 GB, free: 7.984 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001504/0.155, allocations: 149.6 kB / 0.5539 GB, free: 7.789 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.136e-05/0.155, allocations: 22.61 kB / 0.5539 GB, free: 7.758 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.398e-05/0.155, allocations: 4.859 kB / 0.5539 GB, free: 7.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.47e-06/0.155, allocations: 4 kB / 0.5539 GB, free: 7.746 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.623e-05/0.1551, allocations: 56.27 kB / 0.554 GB, free: 7.676 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.001e-06/0.1551, allocations: 0 / 0.554 GB, free: 7.676 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001677/0.1552, allocations: 75.27 kB / 0.5541 GB, free: 7.59 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.925e-05/0.1553, allocations: 81.11 kB / 0.5541 GB, free: 7.492 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.979e-05/0.1554, allocations: 89.86 kB / 0.5542 GB, free: 7.395 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.553e-05/0.1554, allocations: 25.7 kB / 0.5542 GB, free: 7.363 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.319e-05/0.1554, allocations: 84.39 kB / 0.5543 GB, free: 7.277 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.489e-05/0.1555, allocations: 3.984 kB / 0.5543 GB, free: 7.273 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.923e-05/0.1555, allocations: 13.72 kB / 0.5543 GB, free: 7.254 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.1556, allocations: 314.8 kB / 0.5546 GB, free: 6.938 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.105e-05/0.1556, allocations: 4 kB / 0.5546 GB, free: 6.934 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.765e-06/0.1556, allocations: 4 kB / 0.5547 GB, free: 6.93 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.391e-05/0.1557, allocations: 60.27 kB / 0.5547 GB, free: 6.855 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.1557, allocations: 0 / 0.5547 GB, free: 6.855 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.546e-05/0.1558, allocations: 67.39 kB / 0.5548 GB, free: 6.777 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.375e-05/0.1558, allocations: 41.64 kB / 0.5548 GB, free: 6.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.1558, allocations: 0 / 0.5548 GB, free: 6.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.1558, allocations: 0 / 0.5548 GB, free: 6.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.21e-07/0.1558, allocations: 0 / 0.5548 GB, free: 6.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.687e-06/0.1558, allocations: 0 / 0.5548 GB, free: 6.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.706e-05/0.1558, allocations: 4 kB / 0.5548 GB, free: 6.727 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.56e-06/0.1558, allocations: 0 / 0.5548 GB, free: 6.727 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.000103/0.1559, allocations: 137.8 kB / 0.5549 GB, free: 6.578 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.417e-05/0.156, allocations: 11.94 kB / 0.555 GB, free: 6.566 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.863e-06/0.156, allocations: 3.125 kB / 0.555 GB, free: 6.566 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.12e-07/0.156, allocations: 0 / 0.555 GB, free: 6.566 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.156, allocations: 0 / 0.555 GB, free: 6.566 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/0.156, allocations: 0 / 0.555 GB, free: 6.566 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001134/0.1561, allocations: 145.6 kB / 0.5551 GB, free: 6.375 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.1561, allocations: 7.984 kB / 0.5551 GB, free: 6.367 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.1561, allocations: 0 / 0.5551 GB, free: 6.367 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.1561, allocations: 3.938 kB / 0.5551 GB, free: 6.363 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.32e-06/0.1561, allocations: 3.938 kB / 0.5551 GB, free: 6.359 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.1561, allocations: 4 kB / 0.5551 GB, free: 6.355 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1561, allocations: 0 / 0.5551 GB, free: 6.355 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000109/0.1562, allocations: 96.5 kB / 0.5552 GB, free: 6.238 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.125e-05/0.1563, allocations: 81.06 kB / 0.5553 GB, free: 6.141 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.545e-05/0.1563, allocations: 7.938 kB / 0.5553 GB, free: 6.133 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.227e-05/0.1563, allocations: 4 kB / 0.5553 GB, free: 6.129 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.846e-06/0.1563, allocations: 0 / 0.5553 GB, free: 6.129 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.1563, allocations: 4.031 kB / 0.5553 GB, free: 6.125 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.988e-05/0.1563, allocations: 75.28 kB / 0.5554 GB, free: 6.051 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1563, allocations: 0 / 0.5554 GB, free: 6.051 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002078/0.1565, allocations: 19.94 kB / 0.5554 GB, free: 6.031 MB / 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.0007883/0.1573, allocations: 0.7204 MB / 0.5561 GB, free: 5.305 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001119/0.1574, allocations: 63.34 kB / 0.5562 GB, free: 5.23 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.1574, allocations: 0 / 0.5562 GB, free: 5.23 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.193e-05/0.1575, allocations: 55.41 kB / 0.5562 GB, free: 5.164 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001328/0.1576, allocations: 3.984 kB / 0.5562 GB, free: 5.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003127/0.1579, allocations: 118.7 kB / 0.5563 GB, free: 5.004 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.1582, allocations: 0.6729 MB / 0.557 GB, free: 4.305 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.366e-06/0.1583, allocations: 0 / 0.557 GB, free: 4.305 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.75e-05/0.1583, allocations: 7.438 kB / 0.557 GB, free: 4.297 MB / 414.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1583, allocations: 4 kB / 0.557 GB, free: 4.293 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02423/0.1825, allocations: 1.498 MB / 0.5585 GB, free: 2.867 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.381/8.563, allocations: 13.19 kB / 0.5585 GB, free: 2.859 MB / 414.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.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.640240909066051]