Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Classes.MixedDeclaration.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.Classes.MixedDeclaration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Classes.MixedDeclaration") translateModel(HanserModelica.Classes.MixedDeclaration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Classes.MixedDeclaration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006574/0.006574, allocations: 101.5 kB / 15.73 MB, free: 5.98 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.602/1.602, allocations: 222.9 MB / 239.4 MB, free: 4.559 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.001569/0.001569, allocations: 196.4 kB / 289.7 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.03717/0.03717, allocations: 8.79 MB / 348.6 MB, free: 4.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 79.88 kB / 463.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1106, allocations: 51.56 MB / 0.5034 GB, free: 9.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.00247/0.1131, allocations: 1.275 MB / 0.5046 GB, free: 8.254 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 5.409e-05/0.1132, allocations: 0 / 0.5046 GB, free: 8.254 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.302e-05/0.1132, allocations: 0 / 0.5046 GB, free: 8.254 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.06e-05/0.1133, allocations: 3.938 kB / 0.5046 GB, free: 8.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.13e-05/0.1134, allocations: 0 / 0.5046 GB, free: 8.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.713e-05/0.1134, allocations: 0 / 0.5046 GB, free: 8.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.39e-05/0.1135, allocations: 11.94 kB / 0.5046 GB, free: 8.238 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.531e-05/0.1136, allocations: 11.98 kB / 0.5046 GB, free: 8.227 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.164e-05/0.1136, allocations: 3.938 kB / 0.5046 GB, free: 8.223 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.849e-05/0.1136, allocations: 4 kB / 0.5047 GB, free: 8.219 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.254e-05/0.1137, allocations: 0 / 0.5047 GB, free: 8.219 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.409e-06/0.1137, allocations: 0 / 0.5047 GB, free: 8.219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.51e-05/0.1137, allocations: 3.984 kB / 0.5047 GB, free: 8.215 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.549e-05/0.1137, allocations: 11.94 kB / 0.5047 GB, free: 8.203 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.473e-05/0.1138, allocations: 3.984 kB / 0.5047 GB, free: 8.199 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1138, allocations: 3.938 kB / 0.5047 GB, free: 8.195 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1138, allocations: 0 / 0.5047 GB, free: 8.195 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.1138, allocations: 0 / 0.5047 GB, free: 8.195 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003446/0.1142, allocations: 323.6 kB / 0.505 GB, free: 7.828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.1142, allocations: 8.031 kB / 0.505 GB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.774e-05/0.1142, allocations: 4.844 kB / 0.505 GB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001181/0.1144, allocations: 168.4 kB / 0.5052 GB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.1144, allocations: 384 / 0.5052 GB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.618e-06/0.1144, allocations: 384 / 0.5052 GB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.915e-05/0.1145, allocations: 43.92 kB / 0.5052 GB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.1145, allocations: 4.188 kB / 0.5052 GB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.1145, allocations: 7.938 kB / 0.5052 GB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.1145, allocations: 0 / 0.5052 GB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.737e-05/0.1145, allocations: 4 kB / 0.5052 GB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003854/0.1149, allocations: 471.5 kB / 0.5057 GB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001086/0.1151, allocations: 181.1 kB / 0.5058 GB, free: 6.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.26e-05/0.1151, allocations: 80.14 kB / 0.5059 GB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.439e-05/0.1151, allocations: 75.28 kB / 0.506 GB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.547e-05/0.1152, allocations: 105.8 kB / 0.5061 GB, free: 6.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.463e-06/0.1152, allocations: 0 / 0.5061 GB, free: 6.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 9.723e-05/0.1153, allocations: 33.64 kB / 0.5061 GB, free: 6.531 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.789e-05/0.1154, allocations: 134.6 kB / 0.5062 GB, free: 6.387 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.1156, allocations: 105.8 kB / 0.5063 GB, free: 6.273 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.1156, allocations: 29.7 kB / 0.5064 GB, free: 6.238 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.604e-05/0.1156, allocations: 88.05 kB / 0.5065 GB, free: 6.148 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.755e-06/0.1157, allocations: 0 / 0.5065 GB, free: 6.148 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.096e-05/0.1157, allocations: 13.72 kB / 0.5065 GB, free: 6.129 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.1158, allocations: 314.8 kB / 0.5068 GB, free: 5.812 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.056e-05/0.1158, allocations: 4 kB / 0.5068 GB, free: 5.809 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.542e-05/0.1158, allocations: 17.72 kB / 0.5068 GB, free: 5.785 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.167e-05/0.1159, allocations: 17.66 kB / 0.5068 GB, free: 5.762 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.1159, allocations: 3.938 kB / 0.5068 GB, free: 5.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001043/0.116, allocations: 41.61 kB / 0.5069 GB, free: 5.711 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.116, allocations: 7.984 kB / 0.5069 GB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.116, allocations: 8.125 kB / 0.5069 GB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.116, allocations: 3.938 kB / 0.5069 GB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.169e-05/0.1161, allocations: 7.938 kB / 0.5069 GB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.1161, allocations: 0 / 0.5069 GB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.959e-05/0.1161, allocations: 0 / 0.5069 GB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.448e-06/0.1161, allocations: 0 / 0.5069 GB, free: 5.684 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.42e-05/0.1162, allocations: 197 kB / 0.5071 GB, free: 5.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.908e-05/0.1163, allocations: 105 kB / 0.5072 GB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.479e-05/0.1163, allocations: 116 kB / 0.5073 GB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.826e-05/0.1164, allocations: 180.3 kB / 0.5074 GB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-05/0.1165, allocations: 176.3 kB / 0.5076 GB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.36e-05/0.1165, allocations: 180.2 kB / 0.5078 GB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002234/0.1168, allocations: 413.2 kB / 0.5082 GB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.215e-05/0.1168, allocations: 104.9 kB / 0.5083 GB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.085e-05/0.1168, allocations: 105 kB / 0.5084 GB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.259e-05/0.1169, allocations: 184.3 kB / 0.5086 GB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.354e-05/0.117, allocations: 184.2 kB / 0.5087 GB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.786e-05/0.117, allocations: 176.3 kB / 0.5089 GB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.223e-05/0.1171, allocations: 180.2 kB / 0.5091 GB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001318/0.1172, allocations: 308 kB / 0.5094 GB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.572e-05/0.1173, allocations: 190 kB / 0.5096 GB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.163e-05/0.1174, allocations: 180.3 kB / 0.5097 GB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.573e-05/0.1175, allocations: 104.9 kB / 0.5098 GB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.95e-05/0.1175, allocations: 184.3 kB / 0.51 GB, free: 2.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.44e-05/0.1176, allocations: 105 kB / 0.5101 GB, free: 2.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.913e-05/0.1176, allocations: 91.47 kB / 0.5102 GB, free: 2.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1176, allocations: 0 / 0.5102 GB, free: 2.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002189/0.1179, allocations: 0 / 0.5102 GB, free: 2.07 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 (0): * Single equations (assignments): 0 * 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.0001058/0.118, allocations: 170.5 kB / 0.5103 GB, free: 1.891 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.017e-05/0.118, allocations: 11.94 kB / 0.5104 GB, free: 1.879 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.118, allocations: 4.125 kB / 0.5104 GB, free: 1.875 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.323e-06/0.1181, allocations: 0 / 0.5104 GB, free: 1.875 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003317/0.1184, allocations: 455.6 kB / 0.5108 GB, free: 1.426 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002393/0.1186, allocations: 168.2 kB / 0.511 GB, free: 1.234 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003081/0.119, allocations: 0.6766 MB / 0.5116 GB, free: 0.5312 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.231e-05/0.119, allocations: 7.984 kB / 0.5116 GB, free: 0.5234 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.694e-05/0.119, allocations: 11.38 kB / 0.5116 GB, free: 0.5117 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.119, allocations: 0 / 0.5116 GB, free: 0.5117 MB / 350.1 MB Notification: Performance of Templates: time 0.001829/0.1209, allocations: 193.2 kB / 0.5118 GB, free: 332 kB / 350.1 MB make -j1 -f HanserModelica_HanserModelica.Classes.MixedDeclaration.makefile (rm -f HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe ; mkfifo HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe >> ../files/HanserModelica_HanserModelica.Classes.MixedDeclaration.sim & ./HanserModelica_HanserModelica.Classes.MixedDeclaration -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe 2>&1)