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.001064/0.001064, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.001433/0.001433, allocations: 170.3 kB / 23.95 MB, free: 0.6094 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.8881/0.8881, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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.2169/0.2169, allocations: 32.78 MB / 293.5 MB, free: 1.211 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 3.938 kB / 439.5 MB, free: 4.285 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.171e-05/1.336e-05, allocations: 2.281 kB / 439.5 MB, free: 4.281 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.000919/0.0009324, allocations: 498.9 kB / 440 MB, free: 3.797 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008742/0.001807, allocations: 0.8727 MB / 440.9 MB, free: 2.922 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.496e-05/0.001831, allocations: 0 / 440.9 MB, free: 2.922 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.806e-05/0.00185, allocations: 0 / 440.9 MB, free: 2.922 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000233/0.002083, allocations: 19.86 kB / 440.9 MB, free: 2.902 MB / 410.7 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.0005745/0.002657, allocations: 52.28 kB / 441 MB, free: 2.855 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 8.272e-05/0.00274, allocations: 0 / 441 MB, free: 2.855 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.491e-05/0.002795, allocations: 7.984 kB / 441 MB, free: 2.848 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.43e-05/0.002839, allocations: 4 kB / 441 MB, free: 2.844 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.382e-05/0.002903, allocations: 4 kB / 441 MB, free: 2.84 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.409e-05/0.002917, allocations: 0 / 441 MB, free: 2.84 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001445/0.003061, allocations: 59.81 kB / 441.1 MB, free: 2.781 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.131e-05/0.003073, allocations: 0 / 441.1 MB, free: 2.781 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.185e-05/0.003105, allocations: 4 kB / 441.1 MB, free: 2.777 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001863/0.003291, allocations: 59.8 kB / 441.1 MB, free: 2.719 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.003293, allocations: 0 / 441.1 MB, free: 2.719 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.003295, allocations: 0 / 441.1 MB, free: 2.719 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.0033, allocations: 0 / 441.1 MB, free: 2.719 MB / 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.0004142/0.003714, allocations: 284 kB / 441.4 MB, free: 2.402 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.647e-05/0.003771, allocations: 12.03 kB / 441.4 MB, free: 2.391 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.5e-05/0.003806, allocations: 30.75 kB / 441.4 MB, free: 2.352 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.446e-05/0.00384, allocations: 0.9375 kB / 441.4 MB, free: 2.352 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.829e-05/0.003939, allocations: 105.8 kB / 441.5 MB, free: 2.223 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.003952, allocations: 384 / 441.5 MB, free: 2.223 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.254e-05/0.003964, allocations: 384 / 441.5 MB, free: 2.223 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001265/0.004091, allocations: 59.95 kB / 441.6 MB, free: 2.152 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.004103, allocations: 192 / 441.6 MB, free: 2.152 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.004117, allocations: 384 / 441.6 MB, free: 2.152 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.004126, allocations: 8.062 kB / 441.6 MB, free: 2.145 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.234e-05/0.004158, allocations: 37.64 kB / 441.6 MB, free: 2.102 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001427/0.004301, allocations: 120.8 kB / 441.8 MB, free: 1.941 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.886e-05/0.00436, allocations: 44.31 kB / 441.8 MB, free: 1.883 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.117e-05/0.004381, allocations: 30.56 kB / 441.8 MB, free: 1.844 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.354e-06/0.004388, allocations: 0 / 441.8 MB, free: 1.844 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.864e-05/0.004427, allocations: 64.33 kB / 441.9 MB, free: 1.766 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 6.42e-07/0.004428, allocations: 0 / 441.9 MB, free: 1.766 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002008/0.004629, allocations: 122.7 kB / 442 MB, free: 1.621 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.815e-05/0.004677, allocations: 81.05 kB / 442.1 MB, free: 1.523 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.965e-05/0.004736, allocations: 102 kB / 442.2 MB, free: 1.414 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.154e-05/0.004748, allocations: 25.7 kB / 442.2 MB, free: 1.383 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.612e-05/0.004774, allocations: 88.06 kB / 442.3 MB, free: 1.293 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.761e-05/0.004792, allocations: 0 / 442.3 MB, free: 1.293 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.809e-05/0.00482, allocations: 13.72 kB / 442.3 MB, free: 1.273 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.004933, allocations: 314.8 kB / 442.6 MB, free: 0.957 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.235e-05/0.004956, allocations: 25.7 kB / 442.6 MB, free: 0.9258 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.716e-05/0.004973, allocations: 29.7 kB / 442.7 MB, free: 0.8906 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.84e-05/0.005021, allocations: 64.27 kB / 442.7 MB, free: 0.8125 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.005024, allocations: 0 / 442.7 MB, free: 0.8125 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.726e-05/0.005091, allocations: 97.22 kB / 442.8 MB, free: 0.6992 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.072e-05/0.005122, allocations: 29.7 kB / 442.9 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.005126, allocations: 0 / 442.9 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.005139, allocations: 0 / 442.9 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.57e-06/0.005145, allocations: 11.94 kB / 442.9 MB, free: 0.6523 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.00515, allocations: 0 / 442.9 MB, free: 0.6523 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.498e-05/0.005165, allocations: 3.938 kB / 442.9 MB, free: 0.6484 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.57e-06/0.005171, allocations: 0 / 442.9 MB, free: 0.6484 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 6.544e-05/0.005236, allocations: 144.2 kB / 443 MB, free: 0.4922 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.847e-06/0.00524, allocations: 0 / 443 MB, free: 0.4922 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.337e-06/0.005249, allocations: 7.031 kB / 443 MB, free: 492 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.005251, allocations: 0 / 443 MB, free: 492 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.005255, allocations: 3.938 kB / 443 MB, free: 488 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-06/0.005257, allocations: 0 / 443 MB, free: 488 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.33e-05/0.00531, allocations: 116.8 kB / 443.1 MB, free: 328 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.005311, allocations: 0 / 443.1 MB, free: 328 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.005312, allocations: 0 / 443.1 MB, free: 328 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.005313, allocations: 3.984 kB / 443.2 MB, free: 324 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.683e-06/0.00532, allocations: 4 kB / 443.2 MB, free: 320 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.7e-07/0.00532, allocations: 0 / 443.2 MB, free: 320 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.005322, allocations: 3.938 kB / 443.2 MB, free: 316 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.741e-05/0.005389, allocations: 124.5 kB / 443.3 MB, free: 160 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.436e-06/0.005393, allocations: 7.891 kB / 443.3 MB, free: 152 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.276e-06/0.005401, allocations: 0 / 443.3 MB, free: 152 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.062e-06/0.005407, allocations: 4 kB / 443.3 MB, free: 148 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.164e-05/0.005419, allocations: 3.938 kB / 443.3 MB, free: 144 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-06/0.00542, allocations: 0 / 443.3 MB, free: 144 kB / 410.7 MB Notification: Performance of sorting global known variables: time 2.226e-05/0.005442, allocations: 79.28 kB / 443.4 MB, free: 64 kB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005442, allocations: 7.938 kB / 443.4 MB, free: 56 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001397/0.005582, allocations: 15.94 kB / 443.4 MB, free: 40 kB / 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.1615/0.1671, allocations: 0.744 MB / 444.1 MB, free: 45.38 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.613e-05/0.1672, allocations: 115.1 kB / 444.3 MB, free: 45.25 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.1672, allocations: 0 / 444.3 MB, free: 45.25 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.214e-05/0.1672, allocations: 85.14 kB / 444.3 MB, free: 45.16 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.721e-05/0.1673, allocations: 6.594 kB / 444.3 MB, free: 45.16 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002196/0.1675, allocations: 147.7 kB / 444.5 MB, free: 45 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.141e-05/0.1676, allocations: 55.95 kB / 444.5 MB, free: 44.93 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 6.783e-06/0.1676, allocations: 2.5 kB / 444.5 MB, free: 44.93 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.597e-05/0.1676, allocations: 11.5 kB / 444.6 MB, free: 44.93 MB / 410.7 MB Notification: Performance of SimCode: time 5.41e-07/0.1676, allocations: 0 / 444.6 MB, free: 44.93 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01386/0.1815, allocations: 2.168 MB / 446.7 MB, free: 44.03 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.777/6.958, allocations: 9.969 kB / 446.7 MB, free: 44.03 MB / 410.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins/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: 8.804874496534467]