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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 106.4 kB / 17.77 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 187.9 kB / 18.71 MB, free: 4.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 222.9 MB / 242.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2069/0.2069, allocations: 44.18 MB / 336.8 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 71.88 kB / 470 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3333/0.3346, allocations: 60.82 MB / 0.5184 GB, free: 3.117 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001536/0.3362, allocations: 496.6 kB / 0.5189 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001042/0.3372, allocations: 0.7774 MB / 0.5196 GB, free: 2.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.301e-05/0.3373, allocations: 4 kB / 0.5196 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.5e-05/0.3373, allocations: 0 / 0.5196 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00016/0.3375, allocations: 14.98 kB / 0.5196 GB, free: 2.254 MB / 382.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.0005747/0.3381, allocations: 51.8 kB / 0.5197 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.034e-05/0.3382, allocations: 9.797 kB / 0.5197 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.557e-05/0.3382, allocations: 1.438 kB / 0.5197 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.842e-05/0.3382, allocations: 5.328 kB / 0.5197 GB, free: 2.227 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.744e-05/0.3383, allocations: 3.156 kB / 0.5197 GB, free: 2.227 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.494e-06/0.3383, allocations: 0 / 0.5197 GB, free: 2.227 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000119/0.3384, allocations: 57.73 kB / 0.5198 GB, free: 2.207 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.582e-06/0.3385, allocations: 0 / 0.5198 GB, free: 2.207 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.744e-05/0.3385, allocations: 5.062 kB / 0.5198 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001208/0.3386, allocations: 51.67 kB / 0.5198 GB, free: 2.184 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.329e-06/0.3386, allocations: 0 / 0.5198 GB, free: 2.184 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3386, allocations: 1.344 kB / 0.5198 GB, free: 2.184 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.3386, allocations: 0 / 0.5198 GB, free: 2.184 MB / 382.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.000262/0.3389, allocations: 352.7 kB / 0.5202 GB, free: 1.793 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.3389, allocations: 9.438 kB / 0.5202 GB, free: 1.793 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.357e-05/0.339, allocations: 35.55 kB / 0.5202 GB, free: 1.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.512e-05/0.339, allocations: 2.312 kB / 0.5202 GB, free: 1.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.239e-05/0.3391, allocations: 165.8 kB / 0.5204 GB, free: 1.551 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.039e-05/0.3391, allocations: 5.688 kB / 0.5204 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.843e-06/0.3391, allocations: 1.688 kB / 0.5204 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.2e-05/0.3392, allocations: 33.98 kB / 0.5204 GB, free: 1.512 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.3392, allocations: 4.594 kB / 0.5204 GB, free: 1.508 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.785e-06/0.3392, allocations: 0 / 0.5204 GB, free: 1.508 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.3392, allocations: 0 / 0.5204 GB, free: 1.508 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.447e-05/0.3392, allocations: 1.984 kB / 0.5204 GB, free: 1.508 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.031e-05/0.3393, allocations: 149.2 kB / 0.5206 GB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.19e-05/0.3394, allocations: 25.38 kB / 0.5206 GB, free: 1.285 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.313e-05/0.3394, allocations: 6.625 kB / 0.5206 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.018e-06/0.3394, allocations: 0 / 0.5206 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.3394, allocations: 59.11 kB / 0.5206 GB, free: 1.207 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.41e-07/0.3394, allocations: 3.938 kB / 0.5206 GB, free: 1.203 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001455/0.3396, allocations: 71.06 kB / 0.5207 GB, free: 1.133 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.636e-05/0.3396, allocations: 85.23 kB / 0.5208 GB, free: 1.031 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.333e-05/0.3397, allocations: 96.48 kB / 0.5209 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.213e-06/0.3397, allocations: 26.67 kB / 0.5209 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.191e-05/0.3397, allocations: 80.14 kB / 0.521 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.574e-05/0.3397, allocations: 3.156 kB / 0.521 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.404e-05/0.3397, allocations: 12.59 kB / 0.521 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.146e-05/0.3398, allocations: 312.8 kB / 0.5213 GB, free: 500 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.002e-05/0.3398, allocations: 5.281 kB / 0.5213 GB, free: 496 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.901e-06/0.3398, allocations: 5.906 kB / 0.5213 GB, free: 492 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.848e-05/0.3399, allocations: 60.31 kB / 0.5214 GB, free: 420 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3399, allocations: 0 / 0.5214 GB, free: 420 kB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.368e-05/0.3399, allocations: 69.56 kB / 0.5214 GB, free: 348 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.34, allocations: 37.83 kB / 0.5215 GB, free: 312 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.34, allocations: 0 / 0.5215 GB, free: 312 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.34, allocations: 1.438 kB / 0.5215 GB, free: 312 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-07/0.34, allocations: 0 / 0.5215 GB, free: 312 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.34, allocations: 0.7969 kB / 0.5215 GB, free: 312 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.57e-05/0.34, allocations: 5.531 kB / 0.5215 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-06/0.34, allocations: 0 / 0.5215 GB, free: 308 kB / 382.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 4.871e-05/0.3401, allocations: 139.5 kB / 0.5216 GB, free: 156 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.02e-05/0.3401, allocations: 6.047 kB / 0.5216 GB, free: 152 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.907e-06/0.3401, allocations: 7.078 kB / 0.5216 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.3401, allocations: 1.797 kB / 0.5216 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3401, allocations: 3.984 kB / 0.5216 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.3401, allocations: 0 / 0.5216 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.649e-05/0.3402, allocations: 147.1 kB / 0.5218 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3402, allocations: 4 kB / 0.5218 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.082e-06/0.3402, allocations: 0.5625 kB / 0.5218 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.3402, allocations: 5.312 kB / 0.5218 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.3403, allocations: 0.6094 kB / 0.5218 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.3403, allocations: 0 / 0.5218 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3403, allocations: 1.438 kB / 0.5218 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.914e-05/0.3404, allocations: 93.11 kB / 0.5219 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.618e-05/0.3404, allocations: 82.83 kB / 0.5219 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.583e-05/0.3405, allocations: 13.66 kB / 0.522 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.099e-05/0.3405, allocations: 0 / 0.522 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.118e-05/0.3405, allocations: 2.125 kB / 0.522 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.51e-06/0.3405, allocations: 5 kB / 0.522 GB, free: 15.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.006e-05/0.3405, allocations: 76.44 kB / 0.522 GB, free: 15.65 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3405, allocations: 0 / 0.522 GB, free: 15.65 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002298/0.3408, allocations: 19.66 kB / 0.5221 GB, free: 15.65 MB / 398.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.0006137/0.3414, allocations: 0.7158 MB / 0.5228 GB, free: 14.98 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.047e-05/0.3415, allocations: 66.27 kB / 0.5228 GB, free: 14.91 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3415, allocations: 1.156 kB / 0.5228 GB, free: 14.91 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.148e-05/0.3415, allocations: 54.39 kB / 0.5229 GB, free: 14.85 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001285/0.3417, allocations: 2.984 kB / 0.5229 GB, free: 14.85 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002976/0.342, allocations: 120.4 kB / 0.523 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002435/0.3422, allocations: 0.6746 MB / 0.5236 GB, free: 14.01 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.726e-06/0.3422, allocations: 1.859 kB / 0.5237 GB, free: 14.01 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.939e-05/0.3423, allocations: 8.531 kB / 0.5237 GB, free: 14 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3423, allocations: 0 / 0.5237 GB, free: 14 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02177/0.3641, allocations: 1.487 MB / 0.5251 GB, free: 13.56 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.627/7.991, allocations: 11.59 kB / 0.5251 GB, free: 13.55 MB / 398.1 MB (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) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat","/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) Reference file matches