Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.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.TestStreams,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001768/0.001769, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001996/0.001997, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.64/1.64, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.2306/0.2306, allocations: 46.11 MB / 344.2 MB, free: 11.54 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.002476/0.002476, allocations: 86.92 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.131, allocations: 62.45 MB / 480.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001892/0.133, allocations: 479.8 kB / 480.7 MB, free: 4.652 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008369/0.1338, allocations: 297.8 kB / 481 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.82e-05/0.1339, allocations: 0 / 481 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.506e-05/0.1339, allocations: 0 / 481 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.879e-06/0.1339, allocations: 0 / 481 MB, free: 4.363 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:221:3-287:14:writable] Warning: Pure function 'ModelicaTest.Utilities.Streams' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001002/0.1349, allocations: 102.6 kB / 481.1 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.471e-05/0.135, allocations: 4 kB / 481.1 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.547e-05/0.135, allocations: 7.984 kB / 481.1 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.846e-05/0.1351, allocations: 4 kB / 481.1 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.394e-05/0.1351, allocations: 0 / 481.1 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.933e-06/0.1351, allocations: 0 / 481.1 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002467/0.1354, allocations: 103.9 kB / 481.2 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.003e-05/0.1354, allocations: 4 kB / 481.2 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.098e-05/0.1354, allocations: 0 / 481.2 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002112/0.1356, allocations: 75.88 kB / 481.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.504e-05/0.1357, allocations: 4 kB / 481.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1357, allocations: 3.938 kB / 481.3 MB, free: 4.062 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.1357, allocations: 0 / 481.3 MB, free: 4.062 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.0004388/0.1361, allocations: 369.2 kB / 481.6 MB, free: 3.645 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.1362, allocations: 8.031 kB / 481.6 MB, free: 3.637 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.216e-05/0.1362, allocations: 30.75 kB / 481.7 MB, free: 3.598 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.948e-05/0.1362, allocations: 0.9375 kB / 481.7 MB, free: 3.598 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000137/0.1364, allocations: 160.4 kB / 481.8 MB, free: 3.402 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.084e-05/0.1364, allocations: 384 / 481.8 MB, free: 3.402 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.776e-06/0.1364, allocations: 4.375 kB / 481.8 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001035/0.1365, allocations: 34.23 kB / 481.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.1365, allocations: 3.938 kB / 481.9 MB, free: 3.355 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-06/0.1366, allocations: 0 / 481.9 MB, free: 3.355 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1366, allocations: 8 kB / 481.9 MB, free: 3.348 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.995e-05/0.1366, allocations: 4 kB / 481.9 MB, free: 3.344 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001717/0.1368, allocations: 141.7 kB / 482 MB, free: 3.156 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.547e-05/0.1368, allocations: 22.55 kB / 482 MB, free: 3.125 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.963e-05/0.1369, allocations: 12.78 kB / 482 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.396e-06/0.1369, allocations: 0 / 482 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.927e-05/0.137, allocations: 64.27 kB / 482.1 MB, free: 3.031 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.137, allocations: 0 / 482.1 MB, free: 3.031 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001958/0.1372, allocations: 67.34 kB / 482.2 MB, free: 2.953 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.315e-05/0.1373, allocations: 81.11 kB / 482.3 MB, free: 2.855 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.457e-05/0.1373, allocations: 93.84 kB / 482.3 MB, free: 2.754 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.847e-05/0.1373, allocations: 25.7 kB / 482.4 MB, free: 2.723 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.797e-05/0.1374, allocations: 80.14 kB / 482.5 MB, free: 2.641 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.971e-05/0.1374, allocations: 3.938 kB / 482.5 MB, free: 2.637 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.49e-05/0.1375, allocations: 17.84 kB / 482.5 MB, free: 2.613 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.1376, allocations: 314.8 kB / 482.8 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.035e-05/0.1376, allocations: 0 / 482.8 MB, free: 2.297 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.7e-06/0.1376, allocations: 0 / 482.8 MB, free: 2.297 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.24e-05/0.1377, allocations: 60.27 kB / 482.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1377, allocations: 0 / 482.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001107/0.1378, allocations: 71.33 kB / 482.9 MB, free: 2.141 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.237e-05/0.1379, allocations: 29.7 kB / 482.9 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.1379, allocations: 8.031 kB / 482.9 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.1379, allocations: 4 kB / 482.9 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.202e-06/0.1379, allocations: 0 / 482.9 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.1379, allocations: 0 / 482.9 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.603e-05/0.138, allocations: 0 / 482.9 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.768e-06/0.138, allocations: 4 kB / 483 MB, free: 2.09 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.0001133/0.1381, allocations: 139.5 kB / 483.1 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.388e-06/0.1381, allocations: 0 / 483.1 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.771e-05/0.1381, allocations: 11.05 kB / 483.1 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.1381, allocations: 4 kB / 483.1 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.1381, allocations: 0 / 483.1 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.1382, allocations: 0 / 483.1 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001307/0.1383, allocations: 149.7 kB / 483.3 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.1383, allocations: 0 / 483.3 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.82e-07/0.1383, allocations: 0 / 483.3 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.1383, allocations: 0 / 483.3 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.948e-06/0.1383, allocations: 3.938 kB / 483.3 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.1383, allocations: 0 / 483.3 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1383, allocations: 0 / 483.3 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001296/0.1385, allocations: 102.8 kB / 483.4 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.338e-05/0.1385, allocations: 81.39 kB / 483.4 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.756e-05/0.1386, allocations: 7.938 kB / 483.4 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.059e-05/0.1386, allocations: 0 / 483.4 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.151e-05/0.1386, allocations: 0 / 483.4 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.596e-06/0.1386, allocations: 3.938 kB / 483.4 MB, free: 1.492 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.552e-05/0.1386, allocations: 75.28 kB / 483.5 MB, free: 1.418 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.285e-06/0.1387, allocations: 0 / 483.5 MB, free: 1.418 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002707/0.1389, allocations: 39.95 kB / 483.6 MB, free: 1.379 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.001043/0.14, allocations: 0.8055 MB / 484.4 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001043/0.1401, allocations: 63.33 kB / 484.4 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1401, allocations: 0 / 484.4 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.363e-05/0.1402, allocations: 59.41 kB / 484.5 MB, free: 452 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001259/0.1403, allocations: 0 / 484.5 MB, free: 452 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000317/0.1406, allocations: 122.8 kB / 484.6 MB, free: 288 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003287/0.141, allocations: 0.6729 MB / 485.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.502e-06/0.141, allocations: 0 / 485.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.4e-05/0.141, allocations: 7.438 kB / 485.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.141, allocations: 0 / 485.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02457/0.1656, allocations: 1.792 MB / 487.1 MB, free: 13.85 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.848/8.014, allocations: 9.078 kB / 487.1 MB, free: 13.84 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe 2>&1)