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.001451/0.001452, allocations: 107.9 kB / 16.41 MB, free: 6.492 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.465/1.465, allocations: 222.9 MB / 240.1 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.001788/0.001788, allocations: 192.4 kB / 290.4 MB, free: 2.281 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03463/0.03463, allocations: 8.805 MB / 349.3 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 87.88 kB / 464.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1119, allocations: 51.56 MB / 0.504 GB, free: 9.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.002759/0.1147, allocations: 1.269 MB / 0.5053 GB, free: 8.238 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 6.492e-05/0.1148, allocations: 3.938 kB / 0.5053 GB, free: 8.234 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.312e-05/0.1149, allocations: 0 / 0.5053 GB, free: 8.234 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.404e-05/0.1149, allocations: 0 / 0.5053 GB, free: 8.234 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.1e-05/0.115, allocations: 4 kB / 0.5053 GB, free: 8.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.396e-05/0.1151, allocations: 4 kB / 0.5053 GB, free: 8.227 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.574e-05/0.1151, allocations: 7.938 kB / 0.5053 GB, free: 8.219 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.954e-05/0.1152, allocations: 3.984 kB / 0.5053 GB, free: 8.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.44e-05/0.1153, allocations: 15.92 kB / 0.5053 GB, free: 8.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.641e-05/0.1153, allocations: 0 / 0.5053 GB, free: 8.199 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.293e-05/0.1153, allocations: 0 / 0.5053 GB, free: 8.199 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.29e-06/0.1153, allocations: 0 / 0.5053 GB, free: 8.199 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.573e-05/0.1153, allocations: 0 / 0.5053 GB, free: 8.199 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.196e-05/0.1154, allocations: 11.94 kB / 0.5053 GB, free: 8.188 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.015e-05/0.1154, allocations: 0 / 0.5053 GB, free: 8.188 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.127e-06/0.1155, allocations: 7.984 kB / 0.5053 GB, free: 8.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.777e-06/0.1155, allocations: 0 / 0.5053 GB, free: 8.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.613e-06/0.1155, allocations: 3.938 kB / 0.5053 GB, free: 8.176 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.0004115/0.1159, allocations: 319.6 kB / 0.5056 GB, free: 7.812 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/0.116, allocations: 8.031 kB / 0.5057 GB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.312e-05/0.116, allocations: 12.84 kB / 0.5057 GB, free: 7.793 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001495/0.1161, allocations: 168.3 kB / 0.5058 GB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.025e-05/0.1162, allocations: 384 / 0.5058 GB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.122e-05/0.1162, allocations: 384 / 0.5058 GB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001044/0.1163, allocations: 43.98 kB / 0.5059 GB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.1163, allocations: 192 / 0.5059 GB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/0.1163, allocations: 3.938 kB / 0.5059 GB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.1163, allocations: 8 kB / 0.5059 GB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.195e-05/0.1164, allocations: 3.938 kB / 0.5059 GB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000411/0.1168, allocations: 475.6 kB / 0.5063 GB, free: 7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.906e-05/0.1169, allocations: 173 kB / 0.5065 GB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.672e-05/0.1169, allocations: 88.12 kB / 0.5066 GB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.545e-05/0.117, allocations: 75.28 kB / 0.5067 GB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.378e-05/0.117, allocations: 109.8 kB / 0.5068 GB, free: 6.539 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.162e-06/0.117, allocations: 0 / 0.5068 GB, free: 6.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 7.486e-05/0.1171, allocations: 29.7 kB / 0.5068 GB, free: 6.504 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.78e-05/0.1172, allocations: 126.7 kB / 0.5069 GB, free: 6.367 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.588e-05/0.1173, allocations: 109.8 kB / 0.507 GB, free: 6.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.1173, allocations: 25.7 kB / 0.507 GB, free: 6.219 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.656e-05/0.1174, allocations: 88.05 kB / 0.5071 GB, free: 6.129 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.586e-06/0.1174, allocations: 0 / 0.5071 GB, free: 6.129 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.167e-05/0.1174, allocations: 13.72 kB / 0.5071 GB, free: 6.109 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.1175, allocations: 318.8 kB / 0.5074 GB, free: 5.789 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.348e-06/0.1176, allocations: 0 / 0.5074 GB, free: 5.789 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.875e-05/0.1176, allocations: 21.66 kB / 0.5075 GB, free: 5.762 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.803e-05/0.1176, allocations: 17.72 kB / 0.5075 GB, free: 5.738 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.1176, allocations: 3.938 kB / 0.5075 GB, free: 5.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001076/0.1177, allocations: 41.55 kB / 0.5075 GB, free: 5.688 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.1178, allocations: 8 kB / 0.5075 GB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.1178, allocations: 0 / 0.5075 GB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.1178, allocations: 3.984 kB / 0.5075 GB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.665e-05/0.1179, allocations: 8.125 kB / 0.5075 GB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.1179, allocations: 3.938 kB / 0.5075 GB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.119e-05/0.1179, allocations: 0 / 0.5075 GB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.1179, allocations: 4 kB / 0.5076 GB, free: 5.66 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 0.0001086/0.118, allocations: 193 kB / 0.5077 GB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.437e-05/0.1181, allocations: 104.9 kB / 0.5078 GB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.739e-05/0.1182, allocations: 108.1 kB / 0.5079 GB, free: 5.238 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.331e-05/0.1182, allocations: 184.2 kB / 0.5081 GB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.29e-05/0.1183, allocations: 180.2 kB / 0.5083 GB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-05/0.1184, allocations: 180.3 kB / 0.5085 GB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000237/0.1186, allocations: 409.1 kB / 0.5088 GB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.565e-05/0.1187, allocations: 101 kB / 0.5089 GB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.776e-05/0.1187, allocations: 109.3 kB / 0.509 GB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.539e-05/0.1188, allocations: 188.2 kB / 0.5092 GB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.109e-05/0.1189, allocations: 180.3 kB / 0.5094 GB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7e-05/0.119, allocations: 184.2 kB / 0.5096 GB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-05/0.119, allocations: 180.3 kB / 0.5097 GB, free: 3.262 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001506/0.1192, allocations: 311.9 kB / 0.51 GB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.041e-05/0.1193, allocations: 182.1 kB / 0.5102 GB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.4e-05/0.1194, allocations: 184.2 kB / 0.5104 GB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.077e-05/0.1195, allocations: 101 kB / 0.5105 GB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.613e-05/0.1195, allocations: 184.2 kB / 0.5107 GB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.999e-05/0.1196, allocations: 108.9 kB / 0.5108 GB, free: 2.137 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.298e-05/0.1196, allocations: 87.27 kB / 0.5109 GB, free: 2.051 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1196, allocations: 0 / 0.5109 GB, free: 2.051 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002309/0.1199, allocations: 4 kB / 0.5109 GB, free: 2.047 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.0001212/0.12, allocations: 166.5 kB / 0.511 GB, free: 1.871 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.208e-05/0.1201, allocations: 8 kB / 0.511 GB, free: 1.863 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1201, allocations: 0 / 0.511 GB, free: 1.863 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.226e-06/0.1201, allocations: 3.938 kB / 0.511 GB, free: 1.859 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000385/0.1205, allocations: 459.8 kB / 0.5115 GB, free: 1.406 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002428/0.1207, allocations: 190 kB / 0.5116 GB, free: 1.188 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002672/0.121, allocations: 0.6766 MB / 0.5123 GB, free: 496 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.072e-05/0.121, allocations: 7.438 kB / 0.5123 GB, free: 488 kB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.121, allocations: 0 / 0.5123 GB, free: 488 kB / 350.1 MB Notification: Performance of Templates: time 0.001661/0.1227, allocations: 403.8 kB / 0.5127 GB, free: 84 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)