Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.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.TestWriteFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001268/0.001268, 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.002015/0.002015, allocations: 193.3 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.817/1.817, allocations: 205.1 MB / 222.4 MB, free: 4.434 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.3879/0.3879, allocations: 39.93 MB / 309.7 MB, free: 9.551 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.00154/0.00154, allocations: 62.41 kB / 377.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1464/0.148, allocations: 56.89 MB / 434.5 MB, free: 3.688 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001905/0.1499, allocations: 486.2 kB / 435 MB, free: 3.215 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005563/0.1505, allocations: 211.4 kB / 435.2 MB, free: 3.008 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.175e-05/0.1505, allocations: 0 / 435.2 MB, free: 3.008 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.476e-05/0.1506, allocations: 4 kB / 435.2 MB, free: 3.004 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.16e-06/0.1506, allocations: 0 / 435.2 MB, free: 3.004 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/Utilities.mo:289:3-320:16:writable] Warning: Pure function 'ModelicaTest.Utilities.WriteFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0002923/0.1509, allocations: 47.83 kB / 435.2 MB, free: 2.957 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.887e-05/0.1509, allocations: 0 / 435.2 MB, free: 2.957 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.749e-05/0.151, allocations: 4 kB / 435.2 MB, free: 2.953 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.747e-05/0.151, allocations: 0 / 435.2 MB, free: 2.953 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.223e-05/0.1511, allocations: 0 / 435.2 MB, free: 2.953 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.322e-06/0.1511, allocations: 0 / 435.2 MB, free: 2.953 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001368/0.1512, allocations: 55.95 kB / 435.3 MB, free: 2.898 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.666e-06/0.1512, allocations: 3.984 kB / 435.3 MB, free: 2.895 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.985e-05/0.1512, allocations: 3.938 kB / 435.3 MB, free: 2.891 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001205/0.1514, allocations: 51.88 kB / 435.3 MB, free: 2.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1514, allocations: 0 / 435.3 MB, free: 2.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1514, allocations: 0 / 435.3 MB, free: 2.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.1514, allocations: 4 kB / 435.3 MB, free: 2.836 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.0004016/0.1518, allocations: 345.3 kB / 435.7 MB, free: 2.441 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001419/0.152, allocations: 15.89 kB / 435.7 MB, free: 2.426 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.762e-05/0.152, allocations: 0.9375 kB / 435.7 MB, free: 2.426 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.964e-05/0.1521, allocations: 160.4 kB / 435.9 MB, free: 2.23 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.113e-05/0.1521, allocations: 4.312 kB / 435.9 MB, free: 2.227 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.502e-06/0.1521, allocations: 4.375 kB / 435.9 MB, free: 2.223 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.381e-05/0.1522, allocations: 34.27 kB / 435.9 MB, free: 2.184 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.156e-06/0.1522, allocations: 192 / 435.9 MB, free: 2.184 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.1522, allocations: 3.938 kB / 435.9 MB, free: 2.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.1523, allocations: 0 / 435.9 MB, free: 2.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.424e-05/0.1523, allocations: 7.984 kB / 435.9 MB, free: 2.172 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001297/0.1524, allocations: 145.6 kB / 436.1 MB, free: 1.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001646/0.1526, allocations: 14.58 kB / 436.1 MB, free: 1.957 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.893e-05/0.1526, allocations: 12.95 kB / 436.1 MB, free: 1.941 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.975e-06/0.1526, allocations: 3.938 kB / 436.1 MB, free: 1.938 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.494e-05/0.1527, allocations: 64.27 kB / 436.1 MB, free: 1.859 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.021e-06/0.1527, allocations: 0 / 436.1 MB, free: 1.859 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001681/0.1529, allocations: 75.17 kB / 436.2 MB, free: 1.773 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.861e-05/0.1529, allocations: 77.11 kB / 436.3 MB, free: 1.68 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.979e-05/0.153, allocations: 89.86 kB / 436.4 MB, free: 1.582 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.282e-05/0.153, allocations: 33.83 kB / 436.4 MB, free: 1.543 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.193e-05/0.153, allocations: 80.14 kB / 436.5 MB, free: 1.461 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.537e-05/0.153, allocations: 1.609 kB / 436.5 MB, free: 1.461 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.555e-05/0.1531, allocations: 13.72 kB / 436.5 MB, free: 1.441 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.1532, allocations: 318.8 kB / 436.8 MB, free: 1.121 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.738e-06/0.1533, allocations: 0 / 436.8 MB, free: 1.121 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.97e-06/0.1533, allocations: 0 / 436.8 MB, free: 1.121 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.939e-05/0.1533, allocations: 64.33 kB / 436.9 MB, free: 1.043 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.1533, allocations: 0 / 436.9 MB, free: 1.043 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.614e-05/0.1534, allocations: 67.34 kB / 436.9 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.103e-05/0.1535, allocations: 33.69 kB / 437 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.1535, allocations: 0 / 437 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.1535, allocations: 3.938 kB / 437 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.1535, allocations: 0 / 437 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.158e-06/0.1535, allocations: 0 / 437 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.593e-05/0.1535, allocations: 4 kB / 437 MB, free: 0.918 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-06/0.1535, allocations: 0 / 437 MB, free: 0.918 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.849e-05/0.1536, allocations: 135.6 kB / 437.1 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.367e-06/0.1536, allocations: 4 kB / 437.1 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.225e-05/0.1537, allocations: 7.062 kB / 437.1 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.1537, allocations: 3.984 kB / 437.1 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.1537, allocations: 0 / 437.1 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.1537, allocations: 0 / 437.1 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.282e-05/0.1538, allocations: 145.7 kB / 437.3 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.02e-07/0.1538, allocations: 4 kB / 437.3 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.1538, allocations: 0 / 437.3 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.1538, allocations: 3.938 kB / 437.3 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.1538, allocations: 11.94 kB / 437.3 MB, free: 0.543 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.1538, allocations: 0 / 437.3 MB, free: 0.543 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.1538, allocations: 0 / 437.3 MB, free: 0.543 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001807/0.154, allocations: 98.7 kB / 437.4 MB, free: 432 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.276e-05/0.1541, allocations: 77.11 kB / 437.5 MB, free: 336 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.55e-05/0.1541, allocations: 7.922 kB / 437.5 MB, free: 328 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.219e-05/0.1541, allocations: 7.984 kB / 437.5 MB, free: 320 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.027e-05/0.1541, allocations: 4.031 kB / 437.5 MB, free: 316 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-06/0.1541, allocations: 0 / 437.5 MB, free: 316 kB / 366.1 MB Notification: Performance of sorting global known variables: time 4.671e-05/0.1542, allocations: 75.28 kB / 437.6 MB, free: 240 kB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1542, allocations: 0 / 437.6 MB, free: 240 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002318/0.1544, allocations: 16 kB / 437.6 MB, free: 224 kB / 366.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.0003755/0.1548, allocations: 197.1 kB / 437.8 MB, free: 28 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001015/0.1549, allocations: 63.41 kB / 437.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1549, allocations: 0 / 437.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.349e-05/0.1549, allocations: 63.33 kB / 437.9 MB, free: 15.88 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00014/0.1551, allocations: 128 / 437.9 MB, free: 15.88 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001884/0.1553, allocations: 92.92 kB / 438 MB, free: 15.76 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002297/0.1555, allocations: 0.669 MB / 438.7 MB, free: 15.07 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.77e-06/0.1555, allocations: 0 / 438.7 MB, free: 15.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.796e-06/0.1556, allocations: 11.44 kB / 438.7 MB, free: 15.05 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1556, allocations: 0 / 438.7 MB, free: 15.05 MB / 382.1 MB Notification: Performance of Templates: time 0.003023/0.1586, allocations: 0.5787 MB / 439.2 MB, free: 14.48 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1)