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.001132/0.001132, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.308/1.308, allocations: 222.9 MB / 240.1 MB, free: 4.562 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.00123/0.00123, allocations: 180.5 kB / 290.4 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03417/0.03417, allocations: 8.801 MB / 349.3 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 72.11 kB / 464.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08993/0.0918, allocations: 51.56 MB / 0.504 GB, free: 9.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.002617/0.09446, allocations: 1.396 MB / 0.5054 GB, free: 8.121 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001278/0.09577, allocations: 0.8721 MB / 0.5062 GB, free: 7.242 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.229e-05/0.09586, allocations: 0 / 0.5062 GB, free: 7.242 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003197/0.09619, allocations: 87.62 kB / 0.5063 GB, free: 7.156 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.576e-05/0.09629, allocations: 15.91 kB / 0.5063 GB, free: 7.141 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008527/0.09715, allocations: 438 kB / 0.5068 GB, free: 6.711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001568/0.09731, allocations: 47.78 kB / 0.5068 GB, free: 6.664 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.146e-05/0.09736, allocations: 8 kB / 0.5068 GB, free: 6.656 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.063e-05/0.09745, allocations: 11.98 kB / 0.5068 GB, free: 6.645 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.624e-05/0.09751, allocations: 11.92 kB / 0.5068 GB, free: 6.633 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.073e-05/0.09752, allocations: 4 kB / 0.5068 GB, free: 6.629 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002625/0.09779, allocations: 111.8 kB / 0.5069 GB, free: 6.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.34e-05/0.09781, allocations: 11.91 kB / 0.507 GB, free: 6.508 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.862e-05/0.09785, allocations: 15.94 kB / 0.507 GB, free: 6.492 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002542/0.09811, allocations: 127.7 kB / 0.5071 GB, free: 6.367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.09812, allocations: 0 / 0.5071 GB, free: 6.367 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.09813, allocations: 4 kB / 0.5071 GB, free: 6.363 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.09814, allocations: 0 / 0.5071 GB, free: 6.363 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.0008739/0.09902, allocations: 419.3 kB / 0.5075 GB, free: 5.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.09907, allocations: 8.031 kB / 0.5075 GB, free: 5.898 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.72e-05/0.09911, allocations: 8.844 kB / 0.5075 GB, free: 5.891 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001213/0.09924, allocations: 172.3 kB / 0.5077 GB, free: 5.684 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.09925, allocations: 4.375 kB / 0.5077 GB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.437e-05/0.09928, allocations: 4.375 kB / 0.5077 GB, free: 5.676 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001356/0.09942, allocations: 57.98 kB / 0.5077 GB, free: 5.613 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.09943, allocations: 0 / 0.5077 GB, free: 5.613 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.43e-05/0.09945, allocations: 8 kB / 0.5077 GB, free: 5.605 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.09946, allocations: 0 / 0.5077 GB, free: 5.605 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.463e-05/0.09955, allocations: 31.98 kB / 0.5078 GB, free: 5.574 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001883/0.09974, allocations: 177.7 kB / 0.5079 GB, free: 5.352 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000163/0.09991, allocations: 70.5 kB / 0.508 GB, free: 5.273 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.975e-05/0.09998, allocations: 28.98 kB / 0.508 GB, free: 5.242 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.485e-05/0.1, allocations: 0 / 0.508 GB, free: 5.242 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.157e-05/0.1, allocations: 46.48 kB / 0.5081 GB, free: 5.188 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 9.32e-07/0.1, allocations: 0 / 0.5081 GB, free: 5.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002307/0.1003, allocations: 101.6 kB / 0.5082 GB, free: 5.082 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.044e-05/0.1003, allocations: 55.34 kB / 0.5082 GB, free: 5.016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.151e-05/0.1004, allocations: 106.1 kB / 0.5083 GB, free: 4.902 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.1004, allocations: 33.64 kB / 0.5084 GB, free: 4.863 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.14e-05/0.1004, allocations: 84.14 kB / 0.5084 GB, free: 4.777 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.834e-05/0.1005, allocations: 27.64 kB / 0.5085 GB, free: 4.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.941e-05/0.1005, allocations: 21.7 kB / 0.5085 GB, free: 4.723 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.96e-05/0.1006, allocations: 310.8 kB / 0.5088 GB, free: 4.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.025e-05/0.1007, allocations: 23.94 kB / 0.5088 GB, free: 4.387 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.786e-05/0.1007, allocations: 24.23 kB / 0.5088 GB, free: 4.363 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.598e-05/0.1008, allocations: 48.86 kB / 0.5089 GB, free: 4.312 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1008, allocations: 0 / 0.5089 GB, free: 4.312 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001336/0.101, allocations: 81.62 kB / 0.509 GB, free: 4.227 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.101, allocations: 7.938 kB / 0.509 GB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.101, allocations: 0 / 0.509 GB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.101, allocations: 0 / 0.509 GB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.1011, allocations: 15.98 kB / 0.509 GB, free: 4.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.1011, allocations: 0 / 0.509 GB, free: 4.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.654e-05/0.1012, allocations: 4 kB / 0.509 GB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-06/0.1012, allocations: 0 / 0.509 GB, free: 4.199 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 7.348e-05/0.1013, allocations: 121.7 kB / 0.5091 GB, free: 4.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.469e-05/0.1013, allocations: 7.844 kB / 0.5091 GB, free: 4.062 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001901/0.1015, allocations: 106 kB / 0.5092 GB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.1015, allocations: 0 / 0.5092 GB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1015, allocations: 4 kB / 0.5092 GB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.1015, allocations: 3.984 kB / 0.5092 GB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001327/0.1017, allocations: 181.6 kB / 0.5094 GB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1017, allocations: 0 / 0.5094 GB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.247e-05/0.1018, allocations: 12 kB / 0.5094 GB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.1018, allocations: 3.938 kB / 0.5094 GB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.657e-06/0.1018, allocations: 0 / 0.5094 GB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.1018, allocations: 0 / 0.5094 GB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.1018, allocations: 8 kB / 0.5094 GB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001586/0.102, allocations: 113 kB / 0.5095 GB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.572e-05/0.102, allocations: 92.92 kB / 0.5096 GB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.751e-05/0.102, allocations: 192 / 0.5096 GB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.945e-05/0.1021, allocations: 11.94 kB / 0.5096 GB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.327e-05/0.1021, allocations: 7.984 kB / 0.5096 GB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.1021, allocations: 0 / 0.5096 GB, free: 3.434 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.609e-05/0.1022, allocations: 83.28 kB / 0.5097 GB, free: 3.352 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1022, allocations: 0 / 0.5097 GB, free: 3.352 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002016/0.1024, allocations: 16 kB / 0.5097 GB, free: 3.336 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.0001235/0.1025, allocations: 115.2 kB / 0.5098 GB, free: 3.215 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001405/0.1027, allocations: 56.11 kB / 0.5099 GB, free: 3.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1027, allocations: 0 / 0.5099 GB, free: 3.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.93e-05/0.1027, allocations: 31.94 kB / 0.5099 GB, free: 3.129 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001555/0.1029, allocations: 4 kB / 0.5099 GB, free: 3.125 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003387/0.1032, allocations: 194 kB / 0.5101 GB, free: 2.902 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002078/0.1035, allocations: 0.6883 MB / 0.5108 GB, free: 2.188 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.687e-05/0.1035, allocations: 15.38 kB / 0.5108 GB, free: 2.172 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1035, allocations: 3.938 kB / 0.5108 GB, free: 2.168 MB / 350.1 MB Notification: Performance of Templates: time 0.00233/0.1058, allocations: 0.9329 MB / 0.5117 GB, free: 1.234 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)