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.008303/0.008303, allocations: 102.2 kB / 15.73 MB, free: 6.039 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.001456/0.001456, allocations: 192.1 kB / 16.67 MB, free: 5.961 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.804/1.804, allocations: 205.1 MB / 222.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2161/0.2161, allocations: 39.97 MB / 309.9 MB, free: 4.008 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.001564/0.001564, allocations: 70 kB / 435.7 MB, free: 11.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.131, allocations: 56.88 MB / 492.6 MB, free: 2.801 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001518/0.1325, allocations: 497 kB / 493.1 MB, free: 2.316 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005057/0.1331, allocations: 207.8 kB / 493.3 MB, free: 2.113 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.175e-05/0.1331, allocations: 0 / 493.3 MB, free: 2.113 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.595e-05/0.1331, allocations: 0 / 493.3 MB, free: 2.113 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.971e-06/0.1331, allocations: 4 kB / 493.3 MB, free: 2.109 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.0003114/0.1335, allocations: 47.81 kB / 493.4 MB, free: 2.062 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.751e-05/0.1335, allocations: 0 / 493.4 MB, free: 2.062 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.063e-05/0.1336, allocations: 0 / 493.4 MB, free: 2.062 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.553e-05/0.1336, allocations: 0 / 493.4 MB, free: 2.062 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.251e-05/0.1336, allocations: 4 kB / 493.4 MB, free: 2.059 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.27e-06/0.1336, allocations: 0 / 493.4 MB, free: 2.059 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001274/0.1338, allocations: 51.89 kB / 493.4 MB, free: 2.008 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.594e-06/0.1338, allocations: 0 / 493.4 MB, free: 2.008 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.164e-05/0.1338, allocations: 7.984 kB / 493.4 MB, free: 2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001139/0.1339, allocations: 47.88 kB / 493.5 MB, free: 1.953 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1339, allocations: 4 kB / 493.5 MB, free: 1.949 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1339, allocations: 0 / 493.5 MB, free: 1.949 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.1339, allocations: 0 / 493.5 MB, free: 1.949 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.0003271/0.1343, allocations: 357.2 kB / 493.8 MB, free: 1.543 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.1343, allocations: 11.89 kB / 493.8 MB, free: 1.531 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.264e-05/0.1344, allocations: 4.875 kB / 493.8 MB, free: 1.527 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.722e-05/0.1345, allocations: 164.4 kB / 494 MB, free: 1.328 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.133e-06/0.1345, allocations: 384 / 494 MB, free: 1.328 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.638e-06/0.1345, allocations: 384 / 494 MB, free: 1.328 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.236e-05/0.1346, allocations: 38.25 kB / 494 MB, free: 1.285 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.282e-06/0.1346, allocations: 192 / 494 MB, free: 1.285 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.147e-06/0.1346, allocations: 3.938 kB / 494 MB, free: 1.281 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.157e-06/0.1346, allocations: 0 / 494 MB, free: 1.281 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.742e-05/0.1346, allocations: 3.938 kB / 494.1 MB, free: 1.277 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001261/0.1348, allocations: 145.7 kB / 494.2 MB, free: 1.086 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.581e-05/0.1348, allocations: 18.61 kB / 494.2 MB, free: 1.059 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.325e-05/0.1348, allocations: 4.859 kB / 494.2 MB, free: 1.051 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.717e-06/0.1348, allocations: 4 kB / 494.2 MB, free: 1.047 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.105e-05/0.1349, allocations: 64.31 kB / 494.3 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.1349, allocations: 0 / 494.3 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001683/0.135, allocations: 71.28 kB / 494.4 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.199e-05/0.1351, allocations: 77.11 kB / 494.4 MB, free: 0.793 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.433e-05/0.1351, allocations: 89.86 kB / 494.5 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.303e-05/0.1352, allocations: 25.7 kB / 494.5 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.689e-05/0.1352, allocations: 88.2 kB / 494.6 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.777e-05/0.1353, allocations: 0 / 494.6 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.806e-05/0.1353, allocations: 17.7 kB / 494.6 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.1354, allocations: 310.8 kB / 494.9 MB, free: 244 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.211e-05/0.1354, allocations: 4 kB / 495 MB, free: 240 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.372e-06/0.1354, allocations: 4 kB / 495 MB, free: 236 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.584e-05/0.1355, allocations: 56.27 kB / 495 MB, free: 164 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.1355, allocations: 0 / 495 MB, free: 164 kB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.454e-05/0.1356, allocations: 75.38 kB / 495.1 MB, free: 76 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.082e-05/0.1356, allocations: 33.7 kB / 495.1 MB, free: 36 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.1356, allocations: 0 / 495.1 MB, free: 36 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.1356, allocations: 3.938 kB / 495.1 MB, free: 32 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.172e-06/0.1356, allocations: 0 / 495.1 MB, free: 32 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.1357, allocations: 0 / 495.1 MB, free: 32 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.588e-05/0.1357, allocations: 3.938 kB / 495.1 MB, free: 28 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.1357, allocations: 0 / 495.1 MB, free: 28 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 9.694e-05/0.1358, allocations: 147.4 kB / 495.3 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.849e-06/0.1358, allocations: 8.016 kB / 495.3 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.281e-05/0.1358, allocations: 11.06 kB / 495.3 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-06/0.1358, allocations: 0 / 495.3 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.1358, allocations: 4 kB / 495.3 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.1358, allocations: 0 / 495.3 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.989e-05/0.1359, allocations: 141.7 kB / 495.4 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.1359, allocations: 3.938 kB / 495.4 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.6e-07/0.1359, allocations: 0 / 495.4 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.136, allocations: 0 / 495.4 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.136, allocations: 11.92 kB / 495.4 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.136, allocations: 4 kB / 495.4 MB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.136, allocations: 0 / 495.4 MB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.981e-05/0.1361, allocations: 86.78 kB / 495.5 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.946e-05/0.1361, allocations: 85.09 kB / 495.6 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.355e-05/0.1361, allocations: 3.938 kB / 495.6 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.746e-06/0.1362, allocations: 0 / 495.6 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.083e-05/0.1362, allocations: 0 / 495.6 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.429e-06/0.1362, allocations: 3.984 kB / 495.6 MB, free: 15.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.611e-05/0.1362, allocations: 83.31 kB / 495.7 MB, free: 15.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1362, allocations: 3.938 kB / 495.7 MB, free: 15.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002207/0.1364, allocations: 20 kB / 495.7 MB, free: 15.31 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.0003481/0.1368, allocations: 194.4 kB / 495.9 MB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.664e-05/0.1369, allocations: 59.39 kB / 496 MB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1369, allocations: 3.938 kB / 496 MB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.507e-05/0.1369, allocations: 59.41 kB / 496 MB, free: 14.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001238/0.1371, allocations: 7.281 kB / 496 MB, free: 14.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001699/0.1372, allocations: 88.95 kB / 496.1 MB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002101/0.1375, allocations: 0.6729 MB / 496.8 MB, free: 14.16 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.019e-06/0.1375, allocations: 0 / 496.8 MB, free: 14.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.057e-06/0.1375, allocations: 7.438 kB / 496.8 MB, free: 14.16 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1375, allocations: 0 / 496.8 MB, free: 14.16 MB / 382.1 MB Notification: Performance of Templates: time 0.002972/0.1405, allocations: 0.5865 MB / 497.4 MB, free: 13.57 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)