Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001335/0.001335, allocations: 124.5 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.001468/0.001468, allocations: 207.2 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.474/1.474, allocations: 230.6 MB / 254.1 MB, free: 15.06 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.2345/0.2345, allocations: 46.92 MB / 357.1 MB, free: 10.28 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.TestReadFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002121/0.002121, allocations: 67.88 kB / 0.4909 GB, free: 7.93 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.125, allocations: 65.99 MB / 0.5553 GB, free: 5.816 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.002074/0.1271, allocations: 496.9 kB / 0.5558 GB, free: 5.328 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001943/0.1291, allocations: 0.786 MB / 0.5566 GB, free: 4.539 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.828e-05/0.1291, allocations: 0 / 0.5566 GB, free: 4.539 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.053e-05/0.1291, allocations: 0 / 0.5566 GB, free: 4.539 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002419/0.1294, allocations: 8 kB / 0.5566 GB, free: 4.531 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:322:3-362: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.0009064/0.1303, allocations: 59.66 kB / 0.5567 GB, free: 4.477 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 7.988e-05/0.1303, allocations: 0 / 0.5567 GB, free: 4.477 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.176e-05/0.1304, allocations: 4 kB / 0.5567 GB, free: 4.473 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.716e-05/0.1304, allocations: 3.984 kB / 0.5567 GB, free: 4.469 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001226/0.1305, allocations: 8 kB / 0.5567 GB, free: 4.461 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.025e-05/0.1306, allocations: 0 / 0.5567 GB, free: 4.461 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001999/0.1308, allocations: 63.88 kB / 0.5567 GB, free: 4.398 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.109e-05/0.1308, allocations: 0 / 0.5567 GB, free: 4.398 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.598e-05/0.1308, allocations: 7.938 kB / 0.5567 GB, free: 4.391 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001664/0.131, allocations: 43.88 kB / 0.5568 GB, free: 4.348 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.131, allocations: 3.938 kB / 0.5568 GB, free: 4.344 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.131, allocations: 4 kB / 0.5568 GB, free: 4.34 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.131, allocations: 0 / 0.5568 GB, free: 4.34 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.0005045/0.1315, allocations: 361.1 kB / 0.5571 GB, free: 3.93 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/0.1315, allocations: 12.03 kB / 0.5571 GB, free: 3.918 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.094e-05/0.1316, allocations: 30.75 kB / 0.5572 GB, free: 3.879 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.77e-05/0.1316, allocations: 0.9375 kB / 0.5572 GB, free: 3.879 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001709/0.1318, allocations: 160.4 kB / 0.5573 GB, free: 3.684 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.1318, allocations: 384 / 0.5573 GB, free: 3.684 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.53e-05/0.1318, allocations: 8.312 kB / 0.5573 GB, free: 3.676 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.563e-05/0.1319, allocations: 38.19 kB / 0.5574 GB, free: 3.633 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.1319, allocations: 3.938 kB / 0.5574 GB, free: 3.629 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.865e-06/0.1319, allocations: 0 / 0.5574 GB, free: 3.629 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.406e-05/0.1319, allocations: 0 / 0.5574 GB, free: 3.629 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.741e-05/0.1319, allocations: 8 kB / 0.5574 GB, free: 3.621 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001856/0.1321, allocations: 141.7 kB / 0.5575 GB, free: 3.434 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.86e-05/0.1322, allocations: 18.61 kB / 0.5575 GB, free: 3.406 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.455e-05/0.1322, allocations: 12.84 kB / 0.5575 GB, free: 3.391 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.275e-06/0.1322, allocations: 0 / 0.5575 GB, free: 3.391 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.97e-05/0.1323, allocations: 64.2 kB / 0.5576 GB, free: 3.312 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.1323, allocations: 0 / 0.5576 GB, free: 3.312 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002151/0.1325, allocations: 67.41 kB / 0.5577 GB, free: 3.234 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.442e-05/0.1326, allocations: 81.09 kB / 0.5578 GB, free: 3.137 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.627e-05/0.1327, allocations: 89.86 kB / 0.5578 GB, free: 3.039 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/0.1327, allocations: 29.95 kB / 0.5579 GB, free: 3.004 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.261e-05/0.1327, allocations: 84.14 kB / 0.5579 GB, free: 2.918 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.132e-05/0.1327, allocations: 4 kB / 0.5579 GB, free: 2.914 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.32e-05/0.1328, allocations: 9.719 kB / 0.558 GB, free: 2.898 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.1329, allocations: 310.8 kB / 0.5583 GB, free: 2.586 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.395e-05/0.133, allocations: 4 kB / 0.5583 GB, free: 2.582 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.862e-06/0.133, allocations: 0 / 0.5583 GB, free: 2.582 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.346e-05/0.133, allocations: 72.25 kB / 0.5583 GB, free: 2.496 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.133, allocations: 0 / 0.5583 GB, free: 2.496 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.371e-05/0.1331, allocations: 63.41 kB / 0.5584 GB, free: 2.422 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.329e-05/0.1332, allocations: 33.64 kB / 0.5584 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.1332, allocations: 0 / 0.5584 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.1332, allocations: 0 / 0.5584 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.543e-06/0.1332, allocations: 0 / 0.5584 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.1332, allocations: 0 / 0.5584 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.12e-05/0.1332, allocations: 7.984 kB / 0.5584 GB, free: 2.375 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.093e-06/0.1332, allocations: 0 / 0.5584 GB, free: 2.375 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.0001272/0.1334, allocations: 137.8 kB / 0.5586 GB, free: 2.227 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.256e-05/0.1334, allocations: 11.88 kB / 0.5586 GB, free: 2.215 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.268e-06/0.1334, allocations: 3.125 kB / 0.5586 GB, free: 2.215 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1334, allocations: 0 / 0.5586 GB, free: 2.215 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.1334, allocations: 3.938 kB / 0.5586 GB, free: 2.211 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.1334, allocations: 0 / 0.5586 GB, free: 2.211 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001368/0.1335, allocations: 153.7 kB / 0.5587 GB, free: 2.012 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1335, allocations: 3.938 kB / 0.5587 GB, free: 2.008 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.31e-07/0.1335, allocations: 0 / 0.5587 GB, free: 2.008 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.1335, allocations: 3.938 kB / 0.5587 GB, free: 2.004 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.286e-06/0.1335, allocations: 8 kB / 0.5587 GB, free: 1.996 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1335, allocations: 0 / 0.5587 GB, free: 1.996 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1335, allocations: 0 / 0.5587 GB, free: 1.996 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001136/0.1337, allocations: 92.48 kB / 0.5588 GB, free: 1.883 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.263e-05/0.1337, allocations: 81.06 kB / 0.5589 GB, free: 1.785 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.873e-05/0.1337, allocations: 7.938 kB / 0.5589 GB, free: 1.777 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.278e-05/0.1337, allocations: 0 / 0.5589 GB, free: 1.777 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.65e-05/0.1338, allocations: 8.016 kB / 0.5589 GB, free: 1.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/0.1338, allocations: 0 / 0.5589 GB, free: 1.77 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.251e-05/0.1338, allocations: 83.27 kB / 0.559 GB, free: 1.688 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1338, allocations: 0 / 0.559 GB, free: 1.688 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002464/0.134, allocations: 15.94 kB / 0.559 GB, free: 1.672 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.000816/0.1349, allocations: 0.7157 MB / 0.5597 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001192/0.135, allocations: 63.39 kB / 0.5598 GB, free: 0.875 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.135, allocations: 0 / 0.5598 GB, free: 0.875 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.278e-05/0.135, allocations: 59.41 kB / 0.5598 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001276/0.1352, allocations: 0 / 0.5598 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003497/0.1355, allocations: 126.5 kB / 0.56 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003618/0.1359, allocations: 0.669 MB / 0.5606 GB, free: 15.95 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 9.948e-06/0.1359, allocations: 0 / 0.5606 GB, free: 15.95 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.808e-05/0.1359, allocations: 11.44 kB / 0.5606 GB, free: 15.93 MB / 430.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1359, allocations: 4.125 kB / 0.5606 GB, free: 15.93 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02629/0.1622, allocations: 1.499 MB / 0.5621 GB, free: 14.51 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.229/8.391, allocations: 3.938 kB / 0.5621 GB, free: 14.5 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.28345236601308]