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.001419/0.001419, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001784/0.001784, allocations: 192.7 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.782/1.782, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.432/0.432, allocations: 39.94 MB / 309.7 MB, free: 9.285 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.001473/0.001474, allocations: 75.89 kB / 377.6 MB, free: 12.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1425, allocations: 56.87 MB / 434.5 MB, free: 3.688 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.00176/0.1444, allocations: 494.5 kB / 435 MB, free: 3.207 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006688/0.145, allocations: 295.1 kB / 435.3 MB, free: 2.918 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.796e-05/0.1451, allocations: 0 / 435.3 MB, free: 2.918 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.115e-05/0.1451, allocations: 0 / 435.3 MB, free: 2.918 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.949e-06/0.1451, allocations: 4 kB / 435.3 MB, free: 2.914 MB / 366.1 MB [/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.0008054/0.1459, allocations: 99.69 kB / 435.4 MB, free: 2.816 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.003e-05/0.146, allocations: 0 / 435.4 MB, free: 2.816 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.099e-05/0.146, allocations: 4 kB / 435.4 MB, free: 2.812 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.699e-05/0.146, allocations: 0 / 435.4 MB, free: 2.812 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.068e-05/0.1461, allocations: 0 / 435.4 MB, free: 2.812 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.372e-06/0.1461, allocations: 0 / 435.4 MB, free: 2.812 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001648/0.1462, allocations: 99.91 kB / 435.5 MB, free: 2.715 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.013e-06/0.1463, allocations: 4 kB / 435.5 MB, free: 2.711 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.149e-05/0.1463, allocations: 7.922 kB / 435.5 MB, free: 2.703 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001587/0.1464, allocations: 83.81 kB / 435.5 MB, free: 2.621 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1465, allocations: 8 kB / 435.6 MB, free: 2.613 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1465, allocations: 0 / 435.6 MB, free: 2.613 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.1465, allocations: 0 / 435.6 MB, free: 2.613 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.0003316/0.1468, allocations: 360.9 kB / 435.9 MB, free: 2.207 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.1469, allocations: 15.88 kB / 435.9 MB, free: 2.191 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.856e-05/0.1469, allocations: 0.9375 kB / 435.9 MB, free: 2.191 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.577e-05/0.147, allocations: 164.4 kB / 436.1 MB, free: 1.992 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.807e-06/0.147, allocations: 4.312 kB / 436.1 MB, free: 1.988 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.272e-05/0.147, allocations: 8.312 kB / 436.1 MB, free: 1.98 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.31e-05/0.1471, allocations: 35.88 kB / 436.1 MB, free: 1.941 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.1471, allocations: 192 / 436.1 MB, free: 1.941 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.1471, allocations: 3.938 kB / 436.1 MB, free: 1.938 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.1472, allocations: 0 / 436.1 MB, free: 1.938 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.034e-05/0.1472, allocations: 4 kB / 436.1 MB, free: 1.934 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001347/0.1473, allocations: 153.6 kB / 436.3 MB, free: 1.734 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.488e-05/0.1474, allocations: 18.61 kB / 436.3 MB, free: 1.707 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.335e-05/0.1474, allocations: 4.859 kB / 436.3 MB, free: 1.699 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.404e-06/0.1474, allocations: 4 kB / 436.3 MB, free: 1.695 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.876e-05/0.1474, allocations: 60.27 kB / 436.4 MB, free: 1.621 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.51e-07/0.1474, allocations: 0 / 436.4 MB, free: 1.621 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.000167/0.1476, allocations: 75.23 kB / 436.4 MB, free: 1.535 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.674e-05/0.1477, allocations: 77.11 kB / 436.5 MB, free: 1.441 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.01e-05/0.1477, allocations: 93.86 kB / 436.6 MB, free: 1.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.142e-05/0.1477, allocations: 25.7 kB / 436.6 MB, free: 1.309 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.939e-05/0.1478, allocations: 84.27 kB / 436.7 MB, free: 1.223 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.785e-05/0.1478, allocations: 0 / 436.7 MB, free: 1.223 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.671e-05/0.1478, allocations: 13.72 kB / 436.7 MB, free: 1.203 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.1479, allocations: 314.8 kB / 437 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.058e-05/0.1479, allocations: 3.984 kB / 437 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.819e-06/0.148, allocations: 0 / 437 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.64e-05/0.148, allocations: 60.27 kB / 437.1 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.148, allocations: 0 / 437.1 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.707e-05/0.1481, allocations: 71.41 kB / 437.2 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.321e-05/0.1481, allocations: 33.69 kB / 437.2 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.1481, allocations: 0 / 437.2 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.1482, allocations: 3.938 kB / 437.2 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.1482, allocations: 0 / 437.2 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.1482, allocations: 4 kB / 437.2 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.425e-05/0.1482, allocations: 0 / 437.2 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.1482, allocations: 0 / 437.2 MB, free: 0.6797 MB / 366.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 7.919e-05/0.1483, allocations: 135.6 kB / 437.3 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.394e-06/0.1483, allocations: 4 kB / 437.4 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.239e-05/0.1483, allocations: 7.062 kB / 437.4 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.1483, allocations: 3.938 kB / 437.4 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.1483, allocations: 0 / 437.4 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.1483, allocations: 0 / 437.4 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.042e-05/0.1484, allocations: 149.7 kB / 437.5 MB, free: 328 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.1484, allocations: 0 / 437.5 MB, free: 328 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1484, allocations: 0 / 437.5 MB, free: 328 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-06/0.1485, allocations: 0 / 437.5 MB, free: 328 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.1485, allocations: 7.875 kB / 437.5 MB, free: 320 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.1485, allocations: 4 kB / 437.5 MB, free: 316 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.82e-07/0.1485, allocations: 0 / 437.5 MB, free: 316 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.949e-05/0.1486, allocations: 98.77 kB / 437.6 MB, free: 192 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.075e-05/0.1486, allocations: 77.11 kB / 437.7 MB, free: 96 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.355e-05/0.1486, allocations: 3.938 kB / 437.7 MB, free: 92 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.136e-06/0.1486, allocations: 4 kB / 437.7 MB, free: 88 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.746e-05/0.1487, allocations: 3.984 kB / 437.7 MB, free: 84 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-06/0.1487, allocations: 8.031 kB / 437.7 MB, free: 76 kB / 366.1 MB Notification: Performance of sorting global known variables: time 4.14e-05/0.1487, allocations: 79.28 kB / 437.8 MB, free: 16 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1487, allocations: 0 / 437.8 MB, free: 16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002395/0.149, allocations: 32 kB / 437.8 MB, free: 15.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 (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.0004712/0.1495, allocations: 269.2 kB / 438.1 MB, free: 15.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.29e-05/0.1496, allocations: 59.41 kB / 438.1 MB, free: 15.63 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1496, allocations: 4.062 kB / 438.1 MB, free: 15.63 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.623e-05/0.1496, allocations: 55.34 kB / 438.2 MB, free: 15.56 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001252/0.1497, allocations: 11.98 kB / 438.2 MB, free: 15.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001697/0.1499, allocations: 84.86 kB / 438.3 MB, free: 15.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002701/0.1502, allocations: 0.669 MB / 439 MB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.542e-06/0.1502, allocations: 0 / 439 MB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.159e-05/0.1502, allocations: 7.438 kB / 439 MB, free: 14.74 MB / 382.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1502, allocations: 4 kB / 439 MB, free: 14.73 MB / 382.1 MB Notification: Performance of Templates: time 0.004063/0.1543, allocations: 0.9804 MB / 440 MB, free: 13.75 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.makefile (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)