Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.VariablesTypes.ComplexCalculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation") translateModel(HanserModelica.VariablesTypes.ComplexCalculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 106.4 kB / 16.41 MB, free: 6.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 222.9 MB / 240.1 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001527/0.001527, allocations: 188.5 kB / 290.4 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03352/0.03352, allocations: 8.793 MB / 349.3 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 83.81 kB / 464.6 MB, free: 13.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1305, allocations: 51.56 MB / 0.504 GB, free: 9.535 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.003124/0.1337, allocations: 1.384 MB / 0.5054 GB, free: 8.141 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001802/0.1355, allocations: 0.8643 MB / 0.5062 GB, free: 7.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.735e-05/0.1356, allocations: 4 kB / 0.5062 GB, free: 7.266 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004085/0.1361, allocations: 91.61 kB / 0.5063 GB, free: 7.176 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001026/0.1362, allocations: 11.92 kB / 0.5063 GB, free: 7.164 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009724/0.1372, allocations: 442 kB / 0.5068 GB, free: 6.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001901/0.1374, allocations: 47.72 kB / 0.5068 GB, free: 6.684 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.608e-05/0.1374, allocations: 4 kB / 0.5068 GB, free: 6.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.711e-05/0.1375, allocations: 12 kB / 0.5068 GB, free: 6.668 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.542e-05/0.1376, allocations: 15.92 kB / 0.5068 GB, free: 6.652 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.325e-05/0.1376, allocations: 3.938 kB / 0.5068 GB, free: 6.648 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003332/0.138, allocations: 119.9 kB / 0.507 GB, free: 6.531 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.562e-05/0.138, allocations: 3.938 kB / 0.507 GB, free: 6.527 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.82e-05/0.138, allocations: 7.938 kB / 0.507 GB, free: 6.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003057/0.1383, allocations: 127.7 kB / 0.5071 GB, free: 6.395 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.1384, allocations: 7.938 kB / 0.5071 GB, free: 6.387 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1384, allocations: 3.938 kB / 0.5071 GB, free: 6.383 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.712e-06/0.1384, allocations: 0 / 0.5071 GB, free: 6.383 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000974/0.1394, allocations: 423.3 kB / 0.5075 GB, free: 5.922 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.1394, allocations: 8.031 kB / 0.5075 GB, free: 5.914 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.245e-05/0.1395, allocations: 8.844 kB / 0.5075 GB, free: 5.906 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000145/0.1396, allocations: 164.3 kB / 0.5077 GB, free: 5.707 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.495e-05/0.1396, allocations: 384 / 0.5077 GB, free: 5.707 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.64e-05/0.1396, allocations: 4.375 kB / 0.5077 GB, free: 5.703 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001598/0.1398, allocations: 61.98 kB / 0.5077 GB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.1398, allocations: 4 kB / 0.5077 GB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.1398, allocations: 0 / 0.5077 GB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.279e-06/0.1399, allocations: 0 / 0.5077 GB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.338e-05/0.14, allocations: 39.92 kB / 0.5078 GB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002343/0.1402, allocations: 185.6 kB / 0.508 GB, free: 5.363 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001862/0.1404, allocations: 66.62 kB / 0.508 GB, free: 5.289 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.656e-05/0.1405, allocations: 24.98 kB / 0.508 GB, free: 5.262 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.303e-05/0.1405, allocations: 4 kB / 0.508 GB, free: 5.258 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.926e-05/0.1405, allocations: 50.47 kB / 0.5081 GB, free: 5.199 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.182e-06/0.1405, allocations: 0 / 0.5081 GB, free: 5.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.00026/0.1408, allocations: 101.5 kB / 0.5082 GB, free: 5.094 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.894e-05/0.1409, allocations: 55.41 kB / 0.5082 GB, free: 5.027 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.162e-05/0.1409, allocations: 101.8 kB / 0.5083 GB, free: 4.918 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.06e-05/0.141, allocations: 29.7 kB / 0.5084 GB, free: 4.883 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.336e-05/0.141, allocations: 88.08 kB / 0.5085 GB, free: 4.793 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.291e-05/0.1411, allocations: 19.66 kB / 0.5085 GB, free: 4.773 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.588e-05/0.1411, allocations: 21.7 kB / 0.5085 GB, free: 4.746 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.1413, allocations: 318.8 kB / 0.5088 GB, free: 4.426 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.146e-05/0.1413, allocations: 12 kB / 0.5088 GB, free: 4.414 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.877e-05/0.1414, allocations: 23.98 kB / 0.5088 GB, free: 4.391 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.964e-05/0.1415, allocations: 44.86 kB / 0.5089 GB, free: 4.344 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1415, allocations: 0 / 0.5089 GB, free: 4.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001512/0.1416, allocations: 81.62 kB / 0.509 GB, free: 4.258 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.1417, allocations: 15.88 kB / 0.509 GB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.1417, allocations: 4 kB / 0.509 GB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.1417, allocations: 0 / 0.509 GB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.1418, allocations: 12.67 kB / 0.509 GB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.1418, allocations: 0 / 0.509 GB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.41e-05/0.1419, allocations: 0 / 0.509 GB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.878e-06/0.1419, allocations: 4 kB / 0.509 GB, free: 4.223 MB / 350.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * 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.688e-05/0.142, allocations: 113.8 kB / 0.5091 GB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.842e-05/0.142, allocations: 11.84 kB / 0.5091 GB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002142/0.1422, allocations: 106 kB / 0.5092 GB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.1422, allocations: 4 kB / 0.5092 GB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.1423, allocations: 4 kB / 0.5092 GB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.1423, allocations: 0 / 0.5092 GB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001646/0.1424, allocations: 185.6 kB / 0.5094 GB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.1424, allocations: 0 / 0.5094 GB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.604e-05/0.1425, allocations: 12 kB / 0.5094 GB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.1425, allocations: 7.938 kB / 0.5094 GB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/0.1426, allocations: 0 / 0.5094 GB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.203e-06/0.1426, allocations: 3.984 kB / 0.5094 GB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1426, allocations: 0 / 0.5094 GB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001818/0.1428, allocations: 121 kB / 0.5095 GB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.165e-05/0.1428, allocations: 84.98 kB / 0.5096 GB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.785e-05/0.1428, allocations: 4 kB / 0.5096 GB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.889e-05/0.1429, allocations: 0 / 0.5096 GB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.206e-05/0.1429, allocations: 7.922 kB / 0.5096 GB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.323e-06/0.1429, allocations: 4 kB / 0.5096 GB, free: 3.461 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.349e-05/0.143, allocations: 83.28 kB / 0.5097 GB, free: 3.379 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.143, allocations: 0 / 0.5097 GB, free: 3.379 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002187/0.1432, allocations: 20 kB / 0.5097 GB, free: 3.359 MB / 350.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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.0001401/0.1434, allocations: 107.2 kB / 0.5098 GB, free: 3.246 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000161/0.1435, allocations: 59.92 kB / 0.5099 GB, free: 3.188 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.1435, allocations: 0 / 0.5099 GB, free: 3.188 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.378e-05/0.1436, allocations: 28 kB / 0.5099 GB, free: 3.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001598/0.1438, allocations: 9.547 kB / 0.5099 GB, free: 3.152 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003952/0.1442, allocations: 198 kB / 0.5101 GB, free: 2.926 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002945/0.1445, allocations: 0.6844 MB / 0.5108 GB, free: 2.215 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.484e-05/0.1445, allocations: 11.44 kB / 0.5108 GB, free: 2.203 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1445, allocations: 4 kB / 0.5108 GB, free: 2.199 MB / 350.1 MB Notification: Performance of Templates: time 0.0025/0.147, allocations: 0.9293 MB / 0.5117 GB, free: 1.266 MB / 350.1 MB make -j1 -f HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.makefile (rm -f HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe ; mkfifo HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe ; head -c 1048576 < HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe >> ../files/HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.sim & ./HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe 2>&1)