Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 86.09 kB / 15.06 MB, free: 1.09 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.001161/0.001161, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.902/1.902, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3996/0.3996, allocations: 40.01 MB / 310.4 MB, free: 9.656 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006148/0.0006149, allocations: 12 kB / 378.8 MB, free: 12.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1306, allocations: 57.96 MB / 436.8 MB, free: 2.301 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0006264/0.1313, allocations: 210.1 kB / 437 MB, free: 2.098 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007825/0.1321, allocations: 288.9 kB / 437.3 MB, free: 1.816 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.752e-05/0.1321, allocations: 3.938 kB / 437.3 MB, free: 1.812 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.723e-05/0.1321, allocations: 0 / 437.3 MB, free: 1.812 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.324e-06/0.1322, allocations: 0 / 437.3 MB, free: 1.812 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:47:3-68:15:writable] Warning: Pure function ‘Modelica.Utilities.Streams.readFile‘ contains a call to impure function ‘Modelica.Utilities.Streams.countLines‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.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.0005711/0.1327, allocations: 71.86 kB / 437.3 MB, free: 1.742 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 3.885e-05/0.1328, allocations: 0 / 437.3 MB, free: 1.742 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.771e-05/0.1328, allocations: 3.984 kB / 437.4 MB, free: 1.738 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.688e-05/0.1329, allocations: 0 / 437.4 MB, free: 1.738 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.568e-05/0.1329, allocations: 3.984 kB / 437.4 MB, free: 1.734 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.861e-06/0.1329, allocations: 0 / 437.4 MB, free: 1.734 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002057/0.1331, allocations: 103.9 kB / 437.5 MB, free: 1.633 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.028e-05/0.1332, allocations: 7.938 kB / 437.5 MB, free: 1.625 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.86e-05/0.1332, allocations: 25.7 kB / 437.5 MB, free: 1.594 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001344/0.1333, allocations: 47.91 kB / 437.5 MB, free: 1.547 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.1334, allocations: 4 kB / 437.5 MB, free: 1.543 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1334, allocations: 0 / 437.5 MB, free: 1.543 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.734e-06/0.1334, allocations: 0 / 437.5 MB, free: 1.543 MB / 366.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.0003467/0.1337, allocations: 361.1 kB / 437.9 MB, free: 1.137 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.1338, allocations: 8.031 kB / 437.9 MB, free: 1.129 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.999e-05/0.1338, allocations: 0 / 437.9 MB, free: 1.129 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000101/0.1339, allocations: 171 kB / 438.1 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.417e-05/0.1339, allocations: 0 / 438.1 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.277e-05/0.134, allocations: 0 / 438.1 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001022/0.1341, allocations: 25.7 kB / 438.1 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.1341, allocations: 4 kB / 438.1 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.1341, allocations: 4 kB / 438.1 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.1341, allocations: 0 / 438.1 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.286e-05/0.1341, allocations: 7.922 kB / 438.1 MB, free: 0.875 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001543/0.1343, allocations: 153.6 kB / 438.3 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.985e-05/0.1343, allocations: 18.61 kB / 438.3 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.178e-05/0.1344, allocations: 4.859 kB / 438.3 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.572e-06/0.1344, allocations: 0 / 438.3 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.125e-05/0.1344, allocations: 64.31 kB / 438.3 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.1344, allocations: 0 / 438.3 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001937/0.1346, allocations: 79.22 kB / 438.4 MB, free: 484 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.801e-05/0.1347, allocations: 81.23 kB / 438.5 MB, free: 384 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.828e-05/0.1347, allocations: 93.8 kB / 438.6 MB, free: 280 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.152e-05/0.1348, allocations: 25.7 kB / 438.6 MB, free: 248 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.697e-05/0.1348, allocations: 80.14 kB / 438.7 MB, free: 164 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.119e-05/0.1348, allocations: 0 / 438.7 MB, free: 164 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.953e-06/0.1348, allocations: 0 / 438.7 MB, free: 164 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.135, allocations: 318.8 kB / 439 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.908e-06/0.135, allocations: 0 / 439 MB, free: 15.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.205e-06/0.135, allocations: 7.984 kB / 439 MB, free: 15.83 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.726e-05/0.135, allocations: 29.77 kB / 439 MB, free: 15.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1351, allocations: 4 kB / 439 MB, free: 15.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.348e-05/0.1351, allocations: 59.34 kB / 439.1 MB, free: 15.72 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.299e-05/0.1352, allocations: 33.7 kB / 439.1 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.1352, allocations: 7.922 kB / 439.1 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.1352, allocations: 0 / 439.1 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.655e-06/0.1352, allocations: 3.984 kB / 439.2 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.1352, allocations: 0 / 439.2 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.779e-05/0.1353, allocations: 0 / 439.2 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.124e-06/0.1353, allocations: 4.031 kB / 439.2 MB, free: 15.67 MB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.22e-05/0.1354, allocations: 139.5 kB / 439.3 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.498e-06/0.1354, allocations: 4 kB / 439.3 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.175e-05/0.1354, allocations: 3.125 kB / 439.3 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.1354, allocations: 0 / 439.3 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.1354, allocations: 4 kB / 439.3 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.564e-06/0.1354, allocations: 0 / 439.3 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001046/0.1356, allocations: 149.6 kB / 439.4 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1356, allocations: 0 / 439.4 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.1356, allocations: 4 kB / 439.5 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.726e-06/0.1356, allocations: 0 / 439.5 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.1356, allocations: 4 kB / 439.5 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.1356, allocations: 0 / 439.5 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1356, allocations: 0 / 439.5 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001264/0.1357, allocations: 90.77 kB / 439.5 MB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.215e-05/0.1358, allocations: 85.06 kB / 439.6 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.1358, allocations: 0 / 439.6 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.029e-05/0.1358, allocations: 4.031 kB / 439.6 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.365e-05/0.1358, allocations: 0 / 439.6 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.849e-06/0.1358, allocations: 4 kB / 439.6 MB, free: 15.08 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.781e-05/0.1359, allocations: 75.28 kB / 439.7 MB, free: 15 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1359, allocations: 0 / 439.7 MB, free: 15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002653/0.1362, allocations: 39.98 kB / 439.7 MB, free: 14.96 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005715/0.1367, allocations: 284 kB / 440 MB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001021/0.1369, allocations: 59.41 kB / 440.1 MB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1369, allocations: 0 / 440.1 MB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.087e-05/0.1369, allocations: 55.41 kB / 440.1 MB, free: 14.56 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001261/0.137, allocations: 0 / 440.1 MB, free: 14.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002026/0.1372, allocations: 86.62 kB / 440.2 MB, free: 14.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002664/0.1375, allocations: 0.6692 MB / 440.9 MB, free: 13.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.113e-06/0.1375, allocations: 128 / 440.9 MB, free: 13.75 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.287e-06/0.1376, allocations: 11.44 kB / 440.9 MB, free: 13.74 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1376, allocations: 0 / 440.9 MB, free: 13.74 MB / 382.1 MB Notification: Performance of Templates: time 0.003985/0.1415, allocations: 0.9212 MB / 441.8 MB, free: 12.82 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.pipe 2>&1) Environment - environmentSimulation: