Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_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 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.TestReadFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 108 kB / 15.6 MB, free: 132 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.001484/0.001484, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.766/1.766, allocations: 205.1 MB / 222.4 MB, free: 4.559 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.4277/0.4277, allocations: 39.95 MB / 309.7 MB, free: 9.309 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.001524/0.001525, allocations: 63.91 kB / 377.6 MB, free: 12.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1461/0.1476, allocations: 56.89 MB / 434.5 MB, free: 3.68 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001947/0.1497, allocations: 486.9 kB / 435 MB, free: 3.203 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001291/0.151, allocations: 0.7814 MB / 435.7 MB, free: 2.418 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.554e-05/0.1511, allocations: 0 / 435.7 MB, free: 2.418 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.097e-05/0.1511, allocations: 0 / 435.7 MB, free: 2.418 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002091/0.1513, allocations: 8 kB / 435.8 MB, free: 2.41 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.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.0006757/0.152, allocations: 51.83 kB / 435.8 MB, free: 2.359 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 6.967e-05/0.1521, allocations: 4 kB / 435.8 MB, free: 2.355 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.715e-05/0.1521, allocations: 3.984 kB / 435.8 MB, free: 2.352 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.253e-05/0.1521, allocations: 3.984 kB / 435.8 MB, free: 2.348 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.652e-05/0.1522, allocations: 8 kB / 435.8 MB, free: 2.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.074e-05/0.1522, allocations: 0 / 435.8 MB, free: 2.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001294/0.1524, allocations: 59.83 kB / 435.9 MB, free: 2.281 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.887e-06/0.1524, allocations: 0 / 435.9 MB, free: 2.281 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.516e-05/0.1524, allocations: 4 kB / 435.9 MB, free: 2.277 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000172/0.1526, allocations: 43.94 kB / 435.9 MB, free: 2.234 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.1526, allocations: 4 kB / 435.9 MB, free: 2.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1526, allocations: 0 / 435.9 MB, free: 2.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.141e-06/0.1526, allocations: 4 kB / 435.9 MB, free: 2.227 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.000388/0.153, allocations: 349.2 kB / 436.3 MB, free: 1.828 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.1531, allocations: 19.83 kB / 436.3 MB, free: 1.809 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.018e-05/0.1531, allocations: 4.938 kB / 436.3 MB, free: 1.805 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001284/0.1533, allocations: 160.4 kB / 436.5 MB, free: 1.609 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.1533, allocations: 384 / 436.5 MB, free: 1.609 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.02e-05/0.1533, allocations: 4.375 kB / 436.5 MB, free: 1.605 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001213/0.1534, allocations: 38.19 kB / 436.5 MB, free: 1.562 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.1534, allocations: 192 / 436.5 MB, free: 1.562 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/0.1534, allocations: 11.86 kB / 436.5 MB, free: 1.551 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.1535, allocations: 0 / 436.5 MB, free: 1.551 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.888e-05/0.1535, allocations: 4 kB / 436.5 MB, free: 1.547 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001487/0.1536, allocations: 141.7 kB / 436.7 MB, free: 1.359 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.406e-05/0.1537, allocations: 22.61 kB / 436.7 MB, free: 1.328 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.68e-05/0.1537, allocations: 6.469 kB / 436.7 MB, free: 1.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.528e-06/0.1537, allocations: 4 kB / 436.7 MB, free: 1.316 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.381e-05/0.1538, allocations: 60.25 kB / 436.7 MB, free: 1.242 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.133e-06/0.1538, allocations: 8 kB / 436.8 MB, free: 1.234 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001748/0.154, allocations: 63.34 kB / 436.8 MB, free: 1.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.61e-05/0.154, allocations: 77.11 kB / 436.9 MB, free: 1.066 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.982e-05/0.1541, allocations: 97.84 kB / 437 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.234e-05/0.1541, allocations: 25.95 kB / 437 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.949e-05/0.1542, allocations: 84.14 kB / 437.1 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.815e-05/0.1542, allocations: 4 kB / 437.1 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.54e-05/0.1542, allocations: 9.719 kB / 437.1 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.1544, allocations: 310.8 kB / 437.4 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.166e-05/0.1544, allocations: 4 kB / 437.4 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.282e-06/0.1544, allocations: 0 / 437.4 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.491e-05/0.1544, allocations: 68.2 kB / 437.5 MB, free: 436 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.1545, allocations: 4.062 kB / 437.5 MB, free: 432 kB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.055e-05/0.1545, allocations: 63.39 kB / 437.5 MB, free: 356 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.231e-05/0.1546, allocations: 29.7 kB / 437.6 MB, free: 320 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.1546, allocations: 3.938 kB / 437.6 MB, free: 316 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.1546, allocations: 0 / 437.6 MB, free: 316 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.1546, allocations: 0 / 437.6 MB, free: 316 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.1546, allocations: 4 kB / 437.6 MB, free: 312 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.431e-05/0.1546, allocations: 0 / 437.6 MB, free: 312 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.888e-06/0.1547, allocations: 3.984 kB / 437.6 MB, free: 308 kB / 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 8.608e-05/0.1547, allocations: 151.5 kB / 437.7 MB, free: 140 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.878e-06/0.1548, allocations: 4 kB / 437.7 MB, free: 136 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.176e-05/0.1548, allocations: 7.062 kB / 437.7 MB, free: 128 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.1548, allocations: 0 / 437.7 MB, free: 128 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.1548, allocations: 0 / 437.7 MB, free: 128 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.1548, allocations: 0 / 437.7 MB, free: 128 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001328/0.1549, allocations: 150 kB / 437.9 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.1549, allocations: 3.984 kB / 437.9 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.985e-06/0.155, allocations: 3.938 kB / 437.9 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.155, allocations: 0 / 437.9 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.235e-06/0.155, allocations: 7.938 kB / 437.9 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.155, allocations: 0 / 437.9 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.155, allocations: 0 / 437.9 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000104/0.1551, allocations: 94.77 kB / 438 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.666e-05/0.1551, allocations: 85.02 kB / 438.1 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.462e-05/0.1552, allocations: 3.938 kB / 438.1 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.197e-06/0.1552, allocations: 0 / 438.1 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.209e-05/0.1552, allocations: 32 / 438.1 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.434e-06/0.1552, allocations: 4 kB / 438.1 MB, free: 15.69 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.517e-05/0.1553, allocations: 83.28 kB / 438.2 MB, free: 15.61 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1553, allocations: 0 / 438.2 MB, free: 15.61 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002441/0.1555, allocations: 19.98 kB / 438.2 MB, free: 15.59 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.0003666/0.1559, allocations: 197.3 kB / 438.4 MB, free: 15.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001051/0.156, allocations: 59.34 kB / 438.4 MB, free: 15.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.156, allocations: 0 / 438.4 MB, free: 15.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.821e-05/0.156, allocations: 63.39 kB / 438.5 MB, free: 15.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001366/0.1562, allocations: 0 / 438.5 MB, free: 15.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001985/0.1564, allocations: 85.05 kB / 438.6 MB, free: 15.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002446/0.1567, allocations: 0.6768 MB / 439.3 MB, free: 14.44 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.391e-06/0.1567, allocations: 3.938 kB / 439.3 MB, free: 14.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.959e-05/0.1567, allocations: 7.438 kB / 439.3 MB, free: 14.43 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1567, allocations: 0 / 439.3 MB, free: 14.43 MB / 382.1 MB Notification: Performance of Templates: time 0.00287/0.1596, allocations: 0.6364 MB / 439.9 MB, free: 13.79 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestReadFile.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_3.2.2_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Utilities.TestReadFile.pipe 2>&1)