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.004908/0.004908, allocations: 102.5 kB / 15.73 MB, free: 5.984 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.425/1.425, allocations: 222.9 MB / 239.4 MB, free: 4.508 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.001405/0.001405, allocations: 188.5 kB / 289.7 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04326/0.04326, allocations: 8.794 MB / 348.6 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 75.88 kB / 463.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1052, allocations: 51.57 MB / 0.5034 GB, free: 9.598 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.003228/0.1085, allocations: 1.382 MB / 0.5047 GB, free: 8.203 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001572/0.1101, allocations: 0.8643 MB / 0.5056 GB, free: 7.332 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.575e-05/0.1102, allocations: 0 / 0.5056 GB, free: 7.332 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003572/0.1106, allocations: 95.59 kB / 0.5057 GB, free: 7.238 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000103/0.1107, allocations: 15.86 kB / 0.5057 GB, free: 7.223 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008558/0.1116, allocations: 434.1 kB / 0.5061 GB, free: 6.797 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001481/0.1117, allocations: 51.77 kB / 0.5061 GB, free: 6.746 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.593e-05/0.1118, allocations: 4 kB / 0.5061 GB, free: 6.742 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.69e-05/0.1119, allocations: 11.94 kB / 0.5062 GB, free: 6.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.731e-05/0.1119, allocations: 15.92 kB / 0.5062 GB, free: 6.715 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.002e-05/0.1119, allocations: 0 / 0.5062 GB, free: 6.715 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000277/0.1122, allocations: 115.9 kB / 0.5063 GB, free: 6.602 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.518e-05/0.1122, allocations: 7.922 kB / 0.5063 GB, free: 6.594 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.032e-05/0.1123, allocations: 7.938 kB / 0.5063 GB, free: 6.586 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002996/0.1126, allocations: 135.7 kB / 0.5064 GB, free: 6.453 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1126, allocations: 3.938 kB / 0.5064 GB, free: 6.449 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1126, allocations: 4 kB / 0.5064 GB, free: 6.445 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.722e-06/0.1126, allocations: 0 / 0.5064 GB, free: 6.445 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.00106/0.1137, allocations: 427.3 kB / 0.5068 GB, free: 5.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.1137, allocations: 8.031 kB / 0.5068 GB, free: 5.973 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.629e-05/0.1138, allocations: 8.844 kB / 0.5069 GB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001403/0.1139, allocations: 164.3 kB / 0.507 GB, free: 5.766 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.114, allocations: 384 / 0.507 GB, free: 5.766 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.35e-05/0.114, allocations: 8.375 kB / 0.507 GB, free: 5.758 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001658/0.1142, allocations: 65.92 kB / 0.5071 GB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.1142, allocations: 0 / 0.5071 GB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.2e-05/0.1142, allocations: 3.938 kB / 0.5071 GB, free: 5.684 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.1142, allocations: 0 / 0.5071 GB, free: 5.684 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.572e-05/0.1143, allocations: 39.97 kB / 0.5071 GB, free: 5.645 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002075/0.1145, allocations: 177.6 kB / 0.5073 GB, free: 5.422 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001761/0.1147, allocations: 70.62 kB / 0.5074 GB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.318e-05/0.1148, allocations: 28.98 kB / 0.5074 GB, free: 5.312 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.208e-05/0.1148, allocations: 0 / 0.5074 GB, free: 5.312 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.99e-05/0.1149, allocations: 38.44 kB / 0.5074 GB, free: 5.266 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.1149, allocations: 0 / 0.5074 GB, free: 5.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002475/0.1151, allocations: 101.6 kB / 0.5075 GB, free: 5.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.688e-05/0.1152, allocations: 55.41 kB / 0.5076 GB, free: 5.094 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.87e-05/0.1152, allocations: 98.11 kB / 0.5077 GB, free: 4.988 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.649e-05/0.1153, allocations: 29.7 kB / 0.5077 GB, free: 4.953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.858e-05/0.1153, allocations: 96.06 kB / 0.5078 GB, free: 4.855 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.096e-05/0.1154, allocations: 19.66 kB / 0.5078 GB, free: 4.836 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.573e-05/0.1154, allocations: 17.72 kB / 0.5078 GB, free: 4.812 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.1155, allocations: 318.8 kB / 0.5081 GB, free: 4.492 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.188e-05/0.1156, allocations: 16.25 kB / 0.5081 GB, free: 4.477 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.969e-05/0.1156, allocations: 23.98 kB / 0.5082 GB, free: 4.453 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.041e-05/0.1157, allocations: 48.8 kB / 0.5082 GB, free: 4.402 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1157, allocations: 0 / 0.5082 GB, free: 4.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001339/0.1159, allocations: 81.69 kB / 0.5083 GB, free: 4.316 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.1159, allocations: 11.94 kB / 0.5083 GB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.1159, allocations: 0 / 0.5083 GB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.1159, allocations: 0 / 0.5083 GB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.116, allocations: 8 kB / 0.5083 GB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.116, allocations: 0 / 0.5083 GB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.498e-05/0.1161, allocations: 3.984 kB / 0.5083 GB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.798e-06/0.1161, allocations: 4 kB / 0.5083 GB, free: 4.289 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 8.979e-05/0.1162, allocations: 121.7 kB / 0.5084 GB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.745e-05/0.1162, allocations: 15.84 kB / 0.5084 GB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002168/0.1165, allocations: 106 kB / 0.5085 GB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.1165, allocations: 0 / 0.5085 GB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.1165, allocations: 0 / 0.5085 GB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.575e-06/0.1165, allocations: 3.984 kB / 0.5086 GB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001594/0.1167, allocations: 181.6 kB / 0.5087 GB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1167, allocations: 0 / 0.5087 GB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.93e-05/0.1168, allocations: 16 kB / 0.5087 GB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/0.1168, allocations: 3.938 kB / 0.5087 GB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.348e-06/0.1168, allocations: 3.938 kB / 0.5087 GB, free: 3.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1168, allocations: 4 kB / 0.5088 GB, free: 3.773 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.1168, allocations: 0 / 0.5088 GB, free: 3.773 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001744/0.117, allocations: 121 kB / 0.5089 GB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.08e-05/0.117, allocations: 85.17 kB / 0.5089 GB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.844e-05/0.1171, allocations: 8 kB / 0.509 GB, free: 3.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.623e-05/0.1171, allocations: 0 / 0.509 GB, free: 3.527 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.224e-05/0.1171, allocations: 7.922 kB / 0.509 GB, free: 3.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-06/0.1171, allocations: 4 kB / 0.509 GB, free: 3.516 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.492e-05/0.1172, allocations: 91.27 kB / 0.5091 GB, free: 3.426 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1172, allocations: 0 / 0.5091 GB, free: 3.426 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002113/0.1174, allocations: 16 kB / 0.5091 GB, free: 3.41 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.000147/0.1176, allocations: 111.2 kB / 0.5092 GB, free: 3.293 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001581/0.1178, allocations: 51.98 kB / 0.5092 GB, free: 3.242 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.1178, allocations: 0 / 0.5092 GB, free: 3.242 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.343e-05/0.1178, allocations: 31.94 kB / 0.5093 GB, free: 3.211 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001515/0.118, allocations: 4 kB / 0.5093 GB, free: 3.207 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003779/0.1184, allocations: 176.3 kB / 0.5094 GB, free: 3.008 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002515/0.1186, allocations: 0.6904 MB / 0.5101 GB, free: 2.293 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.234e-05/0.1187, allocations: 4 kB / 0.5101 GB, free: 2.289 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.603e-05/0.1187, allocations: 7.438 kB / 0.5101 GB, free: 2.281 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1187, allocations: 0 / 0.5101 GB, free: 2.281 MB / 350.1 MB Notification: Performance of Templates: time 0.003119/0.1219, allocations: 0.8126 MB / 0.5109 GB, free: 1.473 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)