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.0008887/0.0008886, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.007885/0.007885, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.895/1.895, allocations: 205.4 MB / 222.4 MB, free: 5.555 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.3819/0.3819, allocations: 39.99 MB / 310.7 MB, free: 9.863 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.0009969/0.0009969, allocations: 12 kB / 379.4 MB, free: 12.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.1431, allocations: 57.95 MB / 437.4 MB, free: 2.211 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.000644/0.1438, allocations: 222.1 kB / 437.6 MB, free: 1.996 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005957/0.1444, allocations: 201.1 kB / 437.8 MB, free: 1.801 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.351e-05/0.1444, allocations: 0 / 437.8 MB, free: 1.801 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.673e-05/0.1445, allocations: 0 / 437.8 MB, free: 1.801 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.921e-06/0.1445, allocations: 0 / 437.8 MB, free: 1.801 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.0003011/0.1448, allocations: 35.91 kB / 437.8 MB, free: 1.766 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.697e-05/0.1448, allocations: 7.938 kB / 437.8 MB, free: 1.758 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.49e-05/0.1449, allocations: 3.984 kB / 437.9 MB, free: 1.754 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.451e-05/0.1449, allocations: 7.938 kB / 437.9 MB, free: 1.746 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.023e-05/0.145, allocations: 0 / 437.9 MB, free: 1.746 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.045e-06/0.145, allocations: 0 / 437.9 MB, free: 1.746 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001517/0.1451, allocations: 55.95 kB / 437.9 MB, free: 1.691 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.317e-06/0.1452, allocations: 0 / 437.9 MB, free: 1.691 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.747e-05/0.1452, allocations: 25.7 kB / 437.9 MB, free: 1.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001292/0.1453, allocations: 51.86 kB / 438 MB, free: 1.609 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1454, allocations: 0 / 438 MB, free: 1.609 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1454, allocations: 0 / 438 MB, free: 1.609 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.688e-06/0.1454, allocations: 0 / 438 MB, free: 1.609 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.0004259/0.1458, allocations: 345.3 kB / 438.3 MB, free: 1.215 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.1459, allocations: 8.031 kB / 438.3 MB, free: 1.207 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.012e-05/0.1459, allocations: 0.9375 kB / 438.3 MB, free: 1.207 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001134/0.146, allocations: 164.4 kB / 438.5 MB, free: 1.008 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.1461, allocations: 8.359 kB / 438.5 MB, free: 1 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.001e-05/0.1461, allocations: 384 / 438.5 MB, free: 1 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001109/0.1462, allocations: 30.27 kB / 438.5 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.1462, allocations: 4.125 kB / 438.5 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.1462, allocations: 7.938 kB / 438.5 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.1462, allocations: 0 / 438.5 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.358e-05/0.1463, allocations: 3.984 kB / 438.6 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001494/0.1464, allocations: 145.7 kB / 438.7 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.986e-05/0.1465, allocations: 18.61 kB / 438.7 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.358e-05/0.1465, allocations: 4.859 kB / 438.7 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.018e-05/0.1465, allocations: 0 / 438.7 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.835e-05/0.1466, allocations: 68.27 kB / 438.8 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.1466, allocations: 0 / 438.8 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001803/0.1468, allocations: 71.17 kB / 438.9 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.156e-05/0.1468, allocations: 85.23 kB / 438.9 MB, free: 468 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.455e-05/0.1469, allocations: 89.86 kB / 439 MB, free: 368 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.166e-05/0.1469, allocations: 25.7 kB / 439 MB, free: 336 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.887e-05/0.147, allocations: 80.14 kB / 439.1 MB, free: 252 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.476e-05/0.147, allocations: 4 kB / 439.1 MB, free: 248 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.363e-05/0.147, allocations: 9.719 kB / 439.1 MB, free: 232 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.1472, allocations: 314.8 kB / 439.4 MB, free: 15.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.016e-05/0.1472, allocations: 4 kB / 439.5 MB, free: 15.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.702e-06/0.1472, allocations: 4 kB / 439.5 MB, free: 15.9 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.008e-05/0.1472, allocations: 64.2 kB / 439.5 MB, free: 15.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.1473, allocations: 0 / 439.5 MB, free: 15.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.596e-05/0.1473, allocations: 63.41 kB / 439.6 MB, free: 15.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.766e-05/0.1474, allocations: 37.62 kB / 439.6 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.1474, allocations: 4 kB / 439.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.1474, allocations: 3.938 kB / 439.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.022e-06/0.1474, allocations: 0 / 439.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.1474, allocations: 0 / 439.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.185e-05/0.1475, allocations: 8.094 kB / 439.6 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-06/0.1475, allocations: 0 / 439.6 MB, free: 15.69 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001023/0.1476, allocations: 131.5 kB / 439.8 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.23e-05/0.1476, allocations: 4 kB / 439.8 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.353e-05/0.1476, allocations: 7.062 kB / 439.8 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.1476, allocations: 0 / 439.8 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1477, allocations: 0 / 439.8 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.1477, allocations: 3.984 kB / 439.8 MB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.227e-05/0.1478, allocations: 141.7 kB / 439.9 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.1478, allocations: 8 kB / 439.9 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.72e-07/0.1478, allocations: 0 / 439.9 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.1478, allocations: 0 / 439.9 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.722e-05/0.1478, allocations: 3.938 kB / 439.9 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.61e-07/0.1478, allocations: 3.938 kB / 439.9 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1478, allocations: 0 / 439.9 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.693e-05/0.1479, allocations: 94.83 kB / 440 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.178e-05/0.148, allocations: 81.05 kB / 440.1 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.422e-05/0.148, allocations: 7.969 kB / 440.1 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.264e-05/0.148, allocations: 4 kB / 440.1 MB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.994e-05/0.148, allocations: 3.984 kB / 440.1 MB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/0.148, allocations: 0 / 440.1 MB, free: 15.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.65e-05/0.1481, allocations: 75.28 kB / 440.2 MB, free: 15.02 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1481, allocations: 0 / 440.2 MB, free: 15.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002432/0.1483, allocations: 16 kB / 440.2 MB, free: 15.01 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.000436/0.1488, allocations: 205.2 kB / 440.4 MB, free: 14.81 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.849e-05/0.1489, allocations: 67.34 kB / 440.5 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1489, allocations: 0 / 440.5 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.289e-05/0.1489, allocations: 59.47 kB / 440.5 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001338/0.1491, allocations: 7.922 kB / 440.5 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000207/0.1493, allocations: 74.77 kB / 440.6 MB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002451/0.1495, allocations: 0.6692 MB / 441.3 MB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.261e-06/0.1496, allocations: 0 / 441.3 MB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.092e-05/0.1496, allocations: 7.438 kB / 441.3 MB, free: 13.85 MB / 382.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1496, allocations: 0 / 441.3 MB, free: 13.85 MB / 382.1 MB Notification: Performance of Templates: time 0.003223/0.1528, allocations: 0.5749 MB / 441.9 MB, free: 13.28 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: