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.001226/0.001226, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001555/0.001555, allocations: 187.8 kB / 16.25 MB, free: 6.621 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.686/1.686, allocations: 205.1 MB / 222.1 MB, free: 4.707 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.3635/0.3635, allocations: 39.92 MB / 309.4 MB, free: 9.004 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.001395/0.001396, allocations: 67.91 kB / 377.1 MB, free: 12.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1455/0.1469, allocations: 56.89 MB / 434 MB, free: 3.734 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001961/0.149, allocations: 0.5441 MB / 434.5 MB, free: 3.188 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005331/0.1495, allocations: 213 kB / 434.7 MB, free: 2.98 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.752e-05/0.1495, allocations: 0 / 434.7 MB, free: 2.98 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.775e-05/0.1496, allocations: 0 / 434.7 MB, free: 2.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.619e-06/0.1496, allocations: 0 / 434.7 MB, free: 2.98 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.0003159/0.1499, allocations: 39.91 kB / 434.8 MB, free: 2.941 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 6.297e-05/0.15, allocations: 0 / 434.8 MB, free: 2.941 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.006e-05/0.15, allocations: 0 / 434.8 MB, free: 2.941 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.923e-05/0.15, allocations: 0 / 434.8 MB, free: 2.941 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.293e-05/0.1501, allocations: 4 kB / 434.8 MB, free: 2.938 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.314e-06/0.1501, allocations: 4 kB / 434.8 MB, free: 2.934 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001323/0.1502, allocations: 55.88 kB / 434.8 MB, free: 2.879 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.217e-06/0.1502, allocations: 0 / 434.8 MB, free: 2.879 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.614e-05/0.1503, allocations: 7.938 kB / 434.8 MB, free: 2.871 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001226/0.1504, allocations: 43.94 kB / 434.9 MB, free: 2.828 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1504, allocations: 0 / 434.9 MB, free: 2.828 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1504, allocations: 0 / 434.9 MB, free: 2.828 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.1504, allocations: 0 / 434.9 MB, free: 2.828 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.0003903/0.1508, allocations: 349.3 kB / 435.2 MB, free: 2.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.1509, allocations: 11.89 kB / 435.2 MB, free: 2.418 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.641e-05/0.1509, allocations: 4.938 kB / 435.2 MB, free: 2.414 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001206/0.1511, allocations: 164.4 kB / 435.4 MB, free: 2.215 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.023e-05/0.1511, allocations: 384 / 435.4 MB, free: 2.215 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.106e-05/0.1511, allocations: 384 / 435.4 MB, free: 2.215 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.535e-05/0.1512, allocations: 30.27 kB / 435.4 MB, free: 2.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.1512, allocations: 192 / 435.4 MB, free: 2.18 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.1512, allocations: 3.938 kB / 435.4 MB, free: 2.176 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.1512, allocations: 0 / 435.4 MB, free: 2.176 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.479e-05/0.1513, allocations: 7.922 kB / 435.5 MB, free: 2.168 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001414/0.1514, allocations: 153.6 kB / 435.6 MB, free: 1.969 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.737e-05/0.1515, allocations: 18.61 kB / 435.6 MB, free: 1.941 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.655e-05/0.1515, allocations: 8.797 kB / 435.6 MB, free: 1.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.724e-06/0.1515, allocations: 0 / 435.6 MB, free: 1.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.043e-05/0.1516, allocations: 60.33 kB / 435.7 MB, free: 1.855 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.1516, allocations: 0 / 435.7 MB, free: 1.855 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002217/0.1518, allocations: 83.28 kB / 435.8 MB, free: 1.762 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.722e-05/0.1519, allocations: 81.11 kB / 435.8 MB, free: 1.664 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.537e-05/0.1519, allocations: 89.86 kB / 435.9 MB, free: 1.566 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.941e-05/0.152, allocations: 25.7 kB / 436 MB, free: 1.535 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.564e-05/0.152, allocations: 80.14 kB / 436 MB, free: 1.453 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.674e-05/0.152, allocations: 0 / 436 MB, free: 1.453 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.514e-05/0.1521, allocations: 13.72 kB / 436.1 MB, free: 1.434 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.1522, allocations: 314.8 kB / 436.4 MB, free: 1.117 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.374e-05/0.1523, allocations: 4 kB / 436.4 MB, free: 1.113 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.945e-06/0.1523, allocations: 8 kB / 436.4 MB, free: 1.105 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.903e-05/0.1523, allocations: 56.27 kB / 436.4 MB, free: 1.035 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1523, allocations: 0 / 436.4 MB, free: 1.035 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.908e-05/0.1524, allocations: 63.34 kB / 436.5 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.074e-05/0.1525, allocations: 37.69 kB / 436.5 MB, free: 0.918 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.1525, allocations: 0 / 436.5 MB, free: 0.918 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/0.1525, allocations: 3.938 kB / 436.5 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-07/0.1525, allocations: 0 / 436.5 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.1525, allocations: 4.094 kB / 436.5 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.943e-05/0.1526, allocations: 4 kB / 436.5 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.847e-06/0.1526, allocations: 0 / 436.5 MB, free: 0.9062 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 0.0001184/0.1527, allocations: 139.5 kB / 436.7 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.624e-06/0.1527, allocations: 0 / 436.7 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.513e-05/0.1527, allocations: 7.062 kB / 436.7 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.1527, allocations: 3.984 kB / 436.7 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.1528, allocations: 4 kB / 436.7 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.431e-06/0.1528, allocations: 3.984 kB / 436.7 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001156/0.1529, allocations: 145.7 kB / 436.8 MB, free: 0.543 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.1529, allocations: 0 / 436.8 MB, free: 0.543 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.9e-07/0.1529, allocations: 0 / 436.8 MB, free: 0.543 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.1529, allocations: 0 / 436.8 MB, free: 0.543 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.1529, allocations: 11.88 kB / 436.8 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.1529, allocations: 0 / 436.8 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1529, allocations: 3.984 kB / 436.8 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001125/0.1531, allocations: 86.78 kB / 436.9 MB, free: 428 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.288e-05/0.1531, allocations: 85.14 kB / 437 MB, free: 324 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.789e-05/0.1531, allocations: 7.922 kB / 437 MB, free: 316 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.336e-06/0.1531, allocations: 0 / 437 MB, free: 316 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.81e-05/0.1532, allocations: 0 / 437 MB, free: 316 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-06/0.1532, allocations: 3.938 kB / 437 MB, free: 312 kB / 366.1 MB Notification: Performance of sorting global known variables: time 4.141e-05/0.1532, allocations: 79.28 kB / 437.1 MB, free: 232 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1532, allocations: 0 / 437.1 MB, free: 232 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002364/0.1535, allocations: 20 kB / 437.1 MB, free: 212 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.0004697/0.1539, allocations: 204.9 kB / 437.3 MB, free: 12 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001406/0.1541, allocations: 59.34 kB / 437.4 MB, free: 15.94 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.1541, allocations: 4.062 kB / 437.4 MB, free: 15.94 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.109e-05/0.1542, allocations: 63.39 kB / 437.4 MB, free: 15.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001481/0.1543, allocations: 7.938 kB / 437.5 MB, free: 15.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002445/0.1546, allocations: 80.92 kB / 437.5 MB, free: 15.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.1549, allocations: 0.6729 MB / 438.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.626e-06/0.1549, allocations: 0 / 438.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.328e-05/0.155, allocations: 7.438 kB / 438.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.155, allocations: 0 / 438.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of Templates: time 0.00336/0.1583, allocations: 0.5788 MB / 438.8 MB, free: 14.47 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)