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.001067/0.001067, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009048/0.0009048, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9255/0.9255, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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.2501/0.2501, allocations: 34.25 MB / 294.9 MB, free: 0.7383 MB / 266.7 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 1.894e-06/1.894e-06, allocations: 0 / 442.1 MB, free: 1.711 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.38e-05/2.57e-05, allocations: 4.25 kB / 442.1 MB, free: 1.707 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001121/0.001147, allocations: 487.9 kB / 442.6 MB, free: 1.234 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008431/0.00199, allocations: 0.8766 MB / 443.5 MB, free: 364 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.445e-05/0.002014, allocations: 0 / 443.5 MB, free: 364 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.516e-05/0.00203, allocations: 3.938 kB / 443.5 MB, free: 360 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001991/0.002229, allocations: 7.938 kB / 443.5 MB, free: 352 kB / 410.7 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.0005192/0.002748, allocations: 55.05 kB / 443.6 MB, free: 300 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.265e-05/0.002801, allocations: 0 / 443.6 MB, free: 300 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.273e-05/0.002843, allocations: 11.94 kB / 443.6 MB, free: 288 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.085e-05/0.002874, allocations: 3.984 kB / 443.6 MB, free: 284 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.835e-05/0.002922, allocations: 4 kB / 443.6 MB, free: 280 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.085e-06/0.002931, allocations: 0 / 443.6 MB, free: 280 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.97e-05/0.00303, allocations: 55.88 kB / 443.6 MB, free: 224 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.814e-06/0.003038, allocations: 4 kB / 443.6 MB, free: 220 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.745e-05/0.003056, allocations: 0 / 443.6 MB, free: 220 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001463/0.003202, allocations: 55.86 kB / 443.7 MB, free: 164 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.003205, allocations: 3.984 kB / 443.7 MB, free: 160 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.003206, allocations: 0 / 443.7 MB, free: 160 kB / 410.7 MB Notification: Performance of Transformations before backend: time 3.536e-06/0.003209, allocations: 4 kB / 443.7 MB, free: 156 kB / 410.7 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.1652/0.1684, allocations: 276 kB / 444 MB, free: 44.45 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.1684, allocations: 12.14 kB / 444 MB, free: 44.45 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.35e-05/0.1684, allocations: 31.34 kB / 444 MB, free: 44.41 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.619e-05/0.1685, allocations: 5.312 kB / 444 MB, free: 44.41 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.53e-05/0.1685, allocations: 105.9 kB / 444.1 MB, free: 44.29 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.1685, allocations: 3.75 kB / 444.1 MB, free: 44.29 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.506e-06/0.1686, allocations: 3.25 kB / 444.1 MB, free: 44.29 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.442e-05/0.1686, allocations: 60.03 kB / 444.2 MB, free: 44.23 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.1686, allocations: 3.094 kB / 444.2 MB, free: 44.23 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.305e-06/0.1687, allocations: 0.9062 kB / 444.2 MB, free: 44.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-06/0.1687, allocations: 4.125 kB / 444.2 MB, free: 44.22 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.639e-05/0.1687, allocations: 29.39 kB / 444.2 MB, free: 44.19 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.681e-05/0.1688, allocations: 118.6 kB / 444.3 MB, free: 44.04 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.594e-05/0.1688, allocations: 48.31 kB / 444.4 MB, free: 43.98 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.457e-05/0.1688, allocations: 38.23 kB / 444.4 MB, free: 43.95 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.052e-06/0.1688, allocations: 0 / 444.4 MB, free: 43.95 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.266e-05/0.1688, allocations: 62.05 kB / 444.5 MB, free: 43.88 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.1688, allocations: 0 / 444.5 MB, free: 43.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.000147/0.169, allocations: 120.5 kB / 444.6 MB, free: 43.75 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.181e-05/0.169, allocations: 84.8 kB / 444.7 MB, free: 43.65 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.807e-05/0.1691, allocations: 94.42 kB / 444.8 MB, free: 43.55 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.408e-06/0.1691, allocations: 25.7 kB / 444.8 MB, free: 43.52 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.454e-06/0.1691, allocations: 80.14 kB / 444.9 MB, free: 43.44 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.54e-05/0.1691, allocations: 3.422 kB / 444.9 MB, free: 43.44 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.187e-05/0.1691, allocations: 17.12 kB / 444.9 MB, free: 43.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.968e-05/0.1691, allocations: 317.5 kB / 445.2 MB, free: 43.11 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.273e-05/0.1692, allocations: 25.7 kB / 445.2 MB, free: 43.08 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.207e-06/0.1692, allocations: 30.08 kB / 445.3 MB, free: 43.05 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.387e-05/0.1692, allocations: 63.5 kB / 445.3 MB, free: 42.98 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1692, allocations: 0 / 445.3 MB, free: 42.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.14e-05/0.1692, allocations: 89.23 kB / 445.4 MB, free: 42.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.1693, allocations: 31.61 kB / 445.4 MB, free: 42.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.1693, allocations: 3.281 kB / 445.5 MB, free: 42.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.1693, allocations: 3.906 kB / 445.5 MB, free: 42.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.212e-06/0.1693, allocations: 4.922 kB / 445.5 MB, free: 42.85 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.1693, allocations: 0 / 445.5 MB, free: 42.85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.862e-05/0.1693, allocations: 7.516 kB / 445.5 MB, free: 42.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-06/0.1693, allocations: 0 / 445.5 MB, free: 42.85 MB / 410.7 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 4.591e-05/0.1693, allocations: 136.7 kB / 445.6 MB, free: 42.71 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.869e-06/0.1694, allocations: 2.125 kB / 445.6 MB, free: 42.71 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.105e-05/0.1694, allocations: 3 kB / 445.6 MB, free: 42.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.614e-06/0.1694, allocations: 3.328 kB / 445.6 MB, free: 42.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.1694, allocations: 6.812 kB / 445.6 MB, free: 42.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.1694, allocations: 6.266 kB / 445.6 MB, free: 42.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.723e-05/0.1694, allocations: 114.1 kB / 445.7 MB, free: 42.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1694, allocations: 2.625 kB / 445.7 MB, free: 42.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.1694, allocations: 0 / 445.7 MB, free: 42.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.62e-07/0.1694, allocations: 3.094 kB / 445.7 MB, free: 42.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-06/0.1694, allocations: 1.375 kB / 445.7 MB, free: 42.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1694, allocations: 6.375 kB / 445.7 MB, free: 42.55 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1694, allocations: 6.812 kB / 445.8 MB, free: 42.54 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.321e-05/0.1695, allocations: 115.6 kB / 445.9 MB, free: 42.42 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.727e-06/0.1695, allocations: 3.719 kB / 445.9 MB, free: 42.42 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.548e-06/0.1695, allocations: 3.469 kB / 445.9 MB, free: 42.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.654e-06/0.1695, allocations: 0 / 445.9 MB, free: 42.42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.183e-05/0.1695, allocations: 6.812 kB / 445.9 MB, free: 42.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.943e-06/0.1695, allocations: 0 / 445.9 MB, free: 42.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.074e-05/0.1695, allocations: 76.03 kB / 446 MB, free: 42.34 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1695, allocations: 3.938 kB / 446 MB, free: 42.34 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001633/0.1697, allocations: 21.72 kB / 446 MB, free: 42.34 MB / 410.7 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.0003993/0.1701, allocations: 0.7365 MB / 446.7 MB, free: 41.69 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.818e-05/0.1702, allocations: 121.4 kB / 446.8 MB, free: 41.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1702, allocations: 0 / 446.8 MB, free: 41.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.316e-05/0.1702, allocations: 89.03 kB / 446.9 MB, free: 41.46 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.984e-05/0.1703, allocations: 7.375 kB / 446.9 MB, free: 41.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002304/0.1705, allocations: 150.7 kB / 447.1 MB, free: 41.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.694e-05/0.1705, allocations: 54.33 kB / 447.1 MB, free: 41.23 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 7.574e-06/0.1705, allocations: 6.219 kB / 447.1 MB, free: 41.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.533e-05/0.1706, allocations: 9.719 kB / 447.1 MB, free: 41.22 MB / 410.7 MB Notification: Performance of SimCode: time 7.92e-07/0.1706, allocations: 0 / 447.1 MB, free: 41.22 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01509/0.1857, allocations: 2.163 MB / 449.3 MB, free: 40.28 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.62/6.806, allocations: 0.5 kB / 449.3 MB, free: 40.28 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins/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: 8.751140533946455]