Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001694/0.001694, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002114/0.002114, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2342/0.2342, allocations: 46.11 MB / 344.2 MB, free: 11.59 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002237/0.002237, allocations: 81.42 kB / 417.8 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1189, allocations: 62.45 MB / 480.2 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001741/0.1207, allocations: 479.7 kB / 480.7 MB, free: 4.688 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.1219, allocations: 0.7802 MB / 481.4 MB, free: 3.906 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.324e-05/0.122, allocations: 0 / 481.4 MB, free: 3.906 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.474e-05/0.122, allocations: 7.875 kB / 481.5 MB, free: 3.898 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001473/0.1222, allocations: 12 kB / 481.5 MB, free: 3.887 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.0006032/0.1228, allocations: 56.97 kB / 481.5 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.896e-05/0.1228, allocations: 4 kB / 481.5 MB, free: 3.832 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.659e-05/0.1229, allocations: 3.984 kB / 481.5 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.554e-05/0.1229, allocations: 4 kB / 481.5 MB, free: 3.824 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001044/0.123, allocations: 11.61 kB / 481.5 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.534e-06/0.123, allocations: 0 / 481.5 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001561/0.1232, allocations: 51.95 kB / 481.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.843e-06/0.1232, allocations: 0 / 481.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.098e-05/0.1232, allocations: 3.938 kB / 481.6 MB, free: 3.762 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001338/0.1234, allocations: 51.88 kB / 481.7 MB, free: 3.711 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1234, allocations: 4 kB / 481.7 MB, free: 3.707 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1234, allocations: 0 / 481.7 MB, free: 3.707 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.369e-06/0.1234, allocations: 0 / 481.7 MB, free: 3.707 MB / 350.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.0003967/0.1238, allocations: 353.3 kB / 482 MB, free: 3.305 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.1239, allocations: 12.03 kB / 482 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.607e-05/0.1239, allocations: 30.75 kB / 482 MB, free: 3.254 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.37e-05/0.1239, allocations: 0.9375 kB / 482 MB, free: 3.254 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001364/0.1241, allocations: 160.4 kB / 482.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.25e-05/0.1241, allocations: 4.375 kB / 482.2 MB, free: 3.055 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.321e-06/0.1241, allocations: 4.375 kB / 482.2 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.112e-05/0.1242, allocations: 30.25 kB / 482.2 MB, free: 3.016 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.1242, allocations: 3.938 kB / 482.2 MB, free: 3.012 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-06/0.1242, allocations: 4 kB / 482.2 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.1242, allocations: 0 / 482.2 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.803e-05/0.1242, allocations: 3.938 kB / 482.2 MB, free: 3.004 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001548/0.1244, allocations: 145.7 kB / 482.4 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.097e-05/0.1245, allocations: 18.61 kB / 482.4 MB, free: 2.785 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.723e-05/0.1245, allocations: 12.84 kB / 482.4 MB, free: 2.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.977e-06/0.1245, allocations: 0 / 482.4 MB, free: 2.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.51e-05/0.1246, allocations: 64.27 kB / 482.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.1246, allocations: 0 / 482.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001719/0.1247, allocations: 75.27 kB / 482.6 MB, free: 2.605 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.913e-05/0.1248, allocations: 81.09 kB / 482.6 MB, free: 2.508 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.42e-05/0.1249, allocations: 93.98 kB / 482.7 MB, free: 2.406 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.1249, allocations: 29.7 kB / 482.8 MB, free: 2.371 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.185e-05/0.125, allocations: 80.14 kB / 482.8 MB, free: 2.289 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.631e-05/0.125, allocations: 3.906 kB / 482.8 MB, free: 2.285 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.056e-05/0.125, allocations: 13.72 kB / 482.9 MB, free: 2.266 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.1252, allocations: 314.8 kB / 483.2 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.196e-05/0.1252, allocations: 4 kB / 483.2 MB, free: 1.945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.552e-06/0.1252, allocations: 0 / 483.2 MB, free: 1.945 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.251e-05/0.1253, allocations: 72.38 kB / 483.2 MB, free: 1.859 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.1253, allocations: 0 / 483.2 MB, free: 1.859 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.422e-05/0.1254, allocations: 67.34 kB / 483.3 MB, free: 1.781 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.111e-05/0.1254, allocations: 33.64 kB / 483.3 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.1254, allocations: 0 / 483.3 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.1254, allocations: 4 kB / 483.3 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.123e-06/0.1255, allocations: 0 / 483.3 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.1255, allocations: 0 / 483.3 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.929e-05/0.1255, allocations: 4.266 kB / 483.3 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.1255, allocations: 0 / 483.3 MB, free: 1.734 MB / 350.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.0001021/0.1256, allocations: 139.6 kB / 483.5 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.085e-05/0.1256, allocations: 3.938 kB / 483.5 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.636e-06/0.1256, allocations: 3.125 kB / 483.5 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.1256, allocations: 0 / 483.5 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1256, allocations: 0 / 483.5 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1257, allocations: 3.984 kB / 483.5 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001445/0.1258, allocations: 157.6 kB / 483.6 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1258, allocations: 0 / 483.6 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.41e-07/0.1258, allocations: 0 / 483.6 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.1258, allocations: 7.938 kB / 483.7 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.1258, allocations: 0 / 483.7 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.1258, allocations: 4 kB / 483.7 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.1259, allocations: 0 / 483.7 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000109/0.126, allocations: 94.77 kB / 483.7 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.816e-05/0.126, allocations: 81.05 kB / 483.8 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/0.126, allocations: 3.938 kB / 483.8 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.101e-05/0.1261, allocations: 32 / 483.8 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.001e-05/0.1261, allocations: 4 kB / 483.8 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-06/0.1261, allocations: 4 kB / 483.8 MB, free: 1.133 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.766e-05/0.1261, allocations: 79.27 kB / 483.9 MB, free: 1.055 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1261, allocations: 0 / 483.9 MB, free: 1.055 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002192/0.1264, allocations: 16 kB / 483.9 MB, free: 1.039 MB / 350.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.000759/0.1271, allocations: 0.7292 MB / 484.7 MB, free: 304 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.779e-05/0.1272, allocations: 59.39 kB / 484.7 MB, free: 232 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1272, allocations: 0 / 484.7 MB, free: 232 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.371e-05/0.1273, allocations: 55.41 kB / 484.8 MB, free: 164 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001321/0.1274, allocations: 7.938 kB / 484.8 MB, free: 156 kB / 350.1 MB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Resources/Data/ReadStreamTestFile.txt") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003734/0.1278, allocations: 114.6 kB / 484.9 MB, free: 0 / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003385/0.1282, allocations: 0.673 MB / 485.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.895e-06/0.1282, allocations: 4 kB / 485.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.934e-05/0.1282, allocations: 7.438 kB / 485.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1282, allocations: 3.938 kB / 485.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6487/0.7769, allocations: 1.461 MB / 487 MB, free: 13.9 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.906/8.683, allocations: 8.781 kB / 487.1 MB, free: 13.89 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe 2>&1)