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.005089/0.005089, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.362/1.362, allocations: 222.9 MB / 239.4 MB, free: 4.547 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.001427/0.001427, allocations: 188.5 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03398/0.03398, allocations: 8.803 MB / 348.6 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 79.88 kB / 463.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09245/0.09391, allocations: 51.57 MB / 0.5034 GB, free: 9.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.002226/0.09618, allocations: 1.386 MB / 0.5047 GB, free: 8.141 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.09737, allocations: 0.8604 MB / 0.5056 GB, free: 7.273 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.024e-05/0.09741, allocations: 4 kB / 0.5056 GB, free: 7.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002571/0.09768, allocations: 91.62 kB / 0.5057 GB, free: 7.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.666e-05/0.09776, allocations: 15.84 kB / 0.5057 GB, free: 7.164 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000818/0.09858, allocations: 434.1 kB / 0.5061 GB, free: 6.738 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001619/0.09876, allocations: 55.7 kB / 0.5061 GB, free: 6.684 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.285e-05/0.09881, allocations: 4 kB / 0.5061 GB, free: 6.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.916e-05/0.09889, allocations: 4 kB / 0.5061 GB, free: 6.676 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.888e-05/0.09895, allocations: 19.92 kB / 0.5062 GB, free: 6.656 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.046e-05/0.09898, allocations: 4 kB / 0.5062 GB, free: 6.652 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003348/0.09932, allocations: 111.9 kB / 0.5063 GB, free: 6.543 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.954e-05/0.09935, allocations: 7.922 kB / 0.5063 GB, free: 6.535 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.703e-05/0.0994, allocations: 23.81 kB / 0.5063 GB, free: 6.512 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000314/0.09973, allocations: 123.7 kB / 0.5064 GB, free: 6.391 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.289e-06/0.09975, allocations: 3.938 kB / 0.5064 GB, free: 6.387 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.09976, allocations: 0 / 0.5064 GB, free: 6.387 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.708e-06/0.09977, allocations: 0 / 0.5064 GB, free: 6.387 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.0008796/0.1007, allocations: 427.3 kB / 0.5068 GB, free: 5.922 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.1007, allocations: 8.031 kB / 0.5068 GB, free: 5.914 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.082e-05/0.1007, allocations: 8.844 kB / 0.5069 GB, free: 5.906 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001121/0.1009, allocations: 168.3 kB / 0.507 GB, free: 5.703 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.1009, allocations: 8.375 kB / 0.507 GB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.134e-05/0.1009, allocations: 384 / 0.507 GB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001226/0.101, allocations: 65.92 kB / 0.5071 GB, free: 5.625 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.101, allocations: 0 / 0.5071 GB, free: 5.625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.143e-05/0.101, allocations: 8 kB / 0.5071 GB, free: 5.617 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.1011, allocations: 0 / 0.5071 GB, free: 5.617 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.096e-05/0.1011, allocations: 31.98 kB / 0.5071 GB, free: 5.586 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001794/0.1013, allocations: 177.6 kB / 0.5073 GB, free: 5.363 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001706/0.1015, allocations: 70.62 kB / 0.5074 GB, free: 5.285 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.215e-05/0.1016, allocations: 24.98 kB / 0.5074 GB, free: 5.258 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.732e-05/0.1016, allocations: 3.938 kB / 0.5074 GB, free: 5.254 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.438e-05/0.1016, allocations: 38.5 kB / 0.5074 GB, free: 5.207 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.042e-06/0.1016, allocations: 0 / 0.5074 GB, free: 5.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002378/0.1019, allocations: 105.6 kB / 0.5075 GB, free: 5.098 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.181e-05/0.1019, allocations: 51.41 kB / 0.5076 GB, free: 5.035 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.697e-05/0.102, allocations: 105.8 kB / 0.5077 GB, free: 4.922 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.102, allocations: 25.7 kB / 0.5077 GB, free: 4.891 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.248e-05/0.102, allocations: 88.08 kB / 0.5078 GB, free: 4.801 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.121e-05/0.1021, allocations: 19.66 kB / 0.5078 GB, free: 4.781 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.064e-05/0.1021, allocations: 21.72 kB / 0.5078 GB, free: 4.754 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.792e-05/0.1022, allocations: 318.8 kB / 0.5081 GB, free: 4.434 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.186e-05/0.1023, allocations: 20 kB / 0.5081 GB, free: 4.414 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.674e-05/0.1023, allocations: 19.92 kB / 0.5082 GB, free: 4.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.482e-05/0.1024, allocations: 48.86 kB / 0.5082 GB, free: 4.344 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.1024, allocations: 0.625 kB / 0.5082 GB, free: 4.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001267/0.1026, allocations: 77.69 kB / 0.5083 GB, free: 4.262 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.1026, allocations: 7.938 kB / 0.5083 GB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.1026, allocations: 64 / 0.5083 GB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.1026, allocations: 4 kB / 0.5083 GB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.1027, allocations: 12 kB / 0.5083 GB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.896e-06/0.1027, allocations: 7.922 kB / 0.5083 GB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.555e-05/0.1028, allocations: 4 kB / 0.5083 GB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.543e-06/0.1028, allocations: 0 / 0.5083 GB, free: 4.227 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.877e-05/0.1029, allocations: 125.7 kB / 0.5084 GB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.355e-05/0.1029, allocations: 7.844 kB / 0.5084 GB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001901/0.1031, allocations: 98.05 kB / 0.5085 GB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.1031, allocations: 0 / 0.5085 GB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1031, allocations: 8 kB / 0.5086 GB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.1031, allocations: 3.984 kB / 0.5086 GB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001371/0.1033, allocations: 185.6 kB / 0.5087 GB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1033, allocations: 0 / 0.5087 GB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.744e-05/0.1034, allocations: 19.94 kB / 0.5088 GB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.1034, allocations: 3.938 kB / 0.5088 GB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.247e-06/0.1034, allocations: 0 / 0.5088 GB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.1034, allocations: 0 / 0.5088 GB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.1034, allocations: 4 kB / 0.5088 GB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001619/0.1036, allocations: 117 kB / 0.5089 GB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.538e-05/0.1036, allocations: 88.98 kB / 0.509 GB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.244e-05/0.1036, allocations: 0 / 0.509 GB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.821e-05/0.1037, allocations: 0 / 0.509 GB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.711e-05/0.1037, allocations: 7.938 kB / 0.509 GB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.672e-06/0.1037, allocations: 3.984 kB / 0.509 GB, free: 3.461 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.35e-05/0.1038, allocations: 83.28 kB / 0.509 GB, free: 3.379 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1038, allocations: 0 / 0.509 GB, free: 3.379 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002102/0.104, allocations: 16 kB / 0.5091 GB, free: 3.363 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.0001078/0.1041, allocations: 119.2 kB / 0.5092 GB, free: 3.238 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001431/0.1042, allocations: 47.98 kB / 0.5092 GB, free: 3.191 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.1043, allocations: 0 / 0.5092 GB, free: 3.191 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.446e-05/0.1043, allocations: 39.94 kB / 0.5093 GB, free: 3.152 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000135/0.1045, allocations: 0 / 0.5093 GB, free: 3.152 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003105/0.1048, allocations: 176.3 kB / 0.5094 GB, free: 2.953 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000225/0.105, allocations: 0.6844 MB / 0.5101 GB, free: 2.242 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.288e-05/0.105, allocations: 8 kB / 0.5101 GB, free: 2.234 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.46e-05/0.1051, allocations: 11.44 kB / 0.5101 GB, free: 2.223 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1051, allocations: 0 / 0.5101 GB, free: 2.223 MB / 350.1 MB Notification: Performance of Templates: time 0.00281/0.1079, allocations: 0.8093 MB / 0.5109 GB, free: 1.414 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)