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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+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 ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004144/0.004144, allocations: 182.7 kB / 7.458 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.445/1.445, allocations: 194.2 MB / 202.1 MB, free: 8.707 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001839/0.001839, allocations: 114.1 kB / 247.1 MB, free: 6.352 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2089/0.2089, allocations: 39.94 MB / 331.9 MB, free: 4.891 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.815e-06/8.256e-06, allocations: 0 / 392.8 MB, free: 75.89 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1097, allocations: 54.87 MB / 447.6 MB, free: 20.99 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3688/0.4786, allocations: 78.81 MB / 0.5141 GB, free: 10.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001849/0.4788, allocations: 61.11 kB / 0.5142 GB, free: 10.09 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.003799/0.4826, allocations: 1.116 MB / 0.5153 GB, free: 10.05 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.553e-06/0.4826, allocations: 1.156 kB / 0.5153 GB, free: 10.05 MB / 346.7 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.0002622/0.4829, allocations: 346.1 kB / 0.5156 GB, free: 9.668 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/0.483, allocations: 8.281 kB / 0.5156 GB, free: 9.668 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.426e-05/0.483, allocations: 10.72 kB / 0.5156 GB, free: 9.664 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.008e-05/0.4831, allocations: 159.6 kB / 0.5158 GB, free: 9.469 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.594e-05/0.4831, allocations: 0.5625 kB / 0.5158 GB, free: 9.469 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.247e-05/0.4831, allocations: 1.562 kB / 0.5158 GB, free: 9.469 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.783e-05/0.4832, allocations: 1.75 kB / 0.5158 GB, free: 9.469 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.77e-05/0.4833, allocations: 32.19 kB / 0.5158 GB, free: 9.438 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.4833, allocations: 0 / 0.5158 GB, free: 9.438 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.4833, allocations: 0.6562 kB / 0.5158 GB, free: 9.438 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.4833, allocations: 5.562 kB / 0.5158 GB, free: 9.434 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001027/0.4834, allocations: 131.2 kB / 0.5159 GB, free: 9.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.141e-05/0.4835, allocations: 24.03 kB / 0.516 GB, free: 9.242 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.703e-05/0.4835, allocations: 4.859 kB / 0.516 GB, free: 9.234 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.042e-05/0.4835, allocations: 5.672 kB / 0.516 GB, free: 9.23 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.4836, allocations: 60.06 kB / 0.516 GB, free: 9.16 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.4836, allocations: 1.312 kB / 0.516 GB, free: 9.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002045/0.4838, allocations: 36.56 kB / 0.5161 GB, free: 9.125 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.94e-05/0.4838, allocations: 79.09 kB / 0.5161 GB, free: 9.031 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.553e-05/0.4839, allocations: 85 kB / 0.5162 GB, free: 8.941 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.386e-06/0.4839, allocations: 25.7 kB / 0.5162 GB, free: 8.91 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.377e-05/0.4839, allocations: 80.14 kB / 0.5163 GB, free: 8.828 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.916e-05/0.4839, allocations: 4.891 kB / 0.5163 GB, free: 8.828 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.816e-06/0.4839, allocations: 0 / 0.5163 GB, free: 8.828 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.105e-05/0.484, allocations: 319.4 kB / 0.5166 GB, free: 8.512 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.067e-06/0.484, allocations: 4.828 kB / 0.5166 GB, free: 8.508 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.075e-06/0.484, allocations: 5.25 kB / 0.5166 GB, free: 8.504 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.781e-05/0.4841, allocations: 4.203 kB / 0.5166 GB, free: 8.504 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.4841, allocations: 0 / 0.5166 GB, free: 8.504 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.309e-05/0.4841, allocations: 33.67 kB / 0.5167 GB, free: 8.473 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.4842, allocations: 3.969 kB / 0.5167 GB, free: 8.473 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.4842, allocations: 2.406 kB / 0.5167 GB, free: 8.473 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.4842, allocations: 3.938 kB / 0.5167 GB, free: 8.469 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.192e-06/0.4842, allocations: 0 / 0.5167 GB, free: 8.469 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.4842, allocations: 4.844 kB / 0.5167 GB, free: 8.465 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.175e-05/0.4842, allocations: 1.312 kB / 0.5167 GB, free: 8.465 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.243e-06/0.4842, allocations: 0 / 0.5167 GB, free: 8.465 MB / 346.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.508e-05/0.4843, allocations: 136.6 kB / 0.5168 GB, free: 8.324 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.564e-06/0.4843, allocations: 0.5156 kB / 0.5168 GB, free: 8.324 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.423e-05/0.4843, allocations: 8.922 kB / 0.5168 GB, free: 8.316 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.51e-07/0.4844, allocations: 0 / 0.5168 GB, free: 8.316 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.4844, allocations: 1.375 kB / 0.5168 GB, free: 8.316 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.4844, allocations: 0.7031 kB / 0.5168 GB, free: 8.316 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.623e-05/0.4844, allocations: 129 kB / 0.5169 GB, free: 8.156 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.4844, allocations: 3.906 kB / 0.517 GB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.364e-06/0.4844, allocations: 4.609 kB / 0.517 GB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.92e-07/0.4845, allocations: 1.438 kB / 0.517 GB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-06/0.4845, allocations: 0 / 0.517 GB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.4845, allocations: 6.062 kB / 0.517 GB, free: 8.145 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.4845, allocations: 0 / 0.517 GB, free: 8.145 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.664e-05/0.4846, allocations: 59.48 kB / 0.517 GB, free: 8.082 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.028e-05/0.4846, allocations: 85.66 kB / 0.5171 GB, free: 7.98 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.491e-05/0.4846, allocations: 1.969 kB / 0.5171 GB, free: 7.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.265e-06/0.4846, allocations: 3.938 kB / 0.5171 GB, free: 7.977 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.637e-05/0.4847, allocations: 1.438 kB / 0.5171 GB, free: 7.977 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-06/0.4847, allocations: 1.938 kB / 0.5171 GB, free: 7.977 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.338e-05/0.4847, allocations: 75.28 kB / 0.5172 GB, free: 7.902 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002288/0.4849, allocations: 19.83 kB / 0.5172 GB, free: 7.898 MB / 346.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003866/0.4853, allocations: 187.6 kB / 0.5174 GB, free: 7.781 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.524e-05/0.4854, allocations: 33.61 kB / 0.5174 GB, free: 7.746 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.4854, allocations: 4.062 kB / 0.5174 GB, free: 7.742 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.978e-05/0.4854, allocations: 29.05 kB / 0.5174 GB, free: 7.711 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.708e-05/0.4855, allocations: 4.5 kB / 0.5174 GB, free: 7.711 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001391/0.4857, allocations: 40.81 kB / 0.5175 GB, free: 7.652 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.4858, allocations: 0.6821 MB / 0.5182 GB, free: 6.949 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4858, allocations: 3.938 kB / 0.5182 GB, free: 6.945 MB / 346.7 MB Notification: Performance of Templates: time 0.002953/0.4888, allocations: 0.574 MB / 0.5187 GB, free: 6.844 MB / 346.7 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)