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.005469/0.005469, allocations: 97.3 kB / 15.73 MB, free: 6.039 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.276/1.276, allocations: 222.9 MB / 239.4 MB, free: 4.523 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.001396/0.001396, allocations: 192.5 kB / 289.7 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03374/0.03374, allocations: 8.804 MB / 348.6 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 75.89 kB / 463.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08709/0.08846, allocations: 51.57 MB / 0.5034 GB, free: 9.492 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.002002/0.0905, allocations: 1.272 MB / 0.5046 GB, free: 8.211 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 4.626e-05/0.09056, allocations: 7.938 kB / 0.5046 GB, free: 8.203 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.545e-05/0.09059, allocations: 0 / 0.5046 GB, free: 8.203 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.391e-05/0.09063, allocations: 0 / 0.5046 GB, free: 8.203 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.691e-05/0.09069, allocations: 3.938 kB / 0.5046 GB, free: 8.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.552e-05/0.09071, allocations: 0 / 0.5046 GB, free: 8.199 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.392e-05/0.09077, allocations: 7.984 kB / 0.5046 GB, free: 8.191 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.824e-05/0.09085, allocations: 4 kB / 0.5046 GB, free: 8.188 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.68e-05/0.09087, allocations: 7.938 kB / 0.5046 GB, free: 8.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.495e-05/0.09091, allocations: 7.984 kB / 0.5047 GB, free: 8.172 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.512e-05/0.09093, allocations: 4 kB / 0.5047 GB, free: 8.168 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.659e-06/0.09094, allocations: 0 / 0.5047 GB, free: 8.168 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.217e-05/0.09095, allocations: 0 / 0.5047 GB, free: 8.168 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.953e-05/0.09098, allocations: 3.938 kB / 0.5047 GB, free: 8.164 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.395e-05/0.09103, allocations: 11.92 kB / 0.5047 GB, free: 8.152 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.09104, allocations: 0 / 0.5047 GB, free: 8.152 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.09105, allocations: 3.938 kB / 0.5047 GB, free: 8.148 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.09106, allocations: 0 / 0.5047 GB, free: 8.148 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.0003281/0.09139, allocations: 327.5 kB / 0.505 GB, free: 7.777 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/0.09143, allocations: 8.031 kB / 0.505 GB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.587e-05/0.09146, allocations: 8.859 kB / 0.505 GB, free: 7.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001132/0.09157, allocations: 164.4 kB / 0.5052 GB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.127e-06/0.09159, allocations: 384 / 0.5052 GB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.921e-06/0.0916, allocations: 384 / 0.5052 GB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.732e-05/0.09167, allocations: 43.98 kB / 0.5052 GB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/0.09168, allocations: 4.172 kB / 0.5052 GB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.435e-06/0.0917, allocations: 7.938 kB / 0.5052 GB, free: 7.496 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.09171, allocations: 3.938 kB / 0.5052 GB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.647e-05/0.09173, allocations: 7.938 kB / 0.5052 GB, free: 7.484 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000295/0.09203, allocations: 471.6 kB / 0.5057 GB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.413e-05/0.09211, allocations: 173.1 kB / 0.5058 GB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.645e-05/0.09214, allocations: 84.17 kB / 0.5059 GB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.278e-05/0.09218, allocations: 79.22 kB / 0.506 GB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.844e-05/0.09222, allocations: 105.8 kB / 0.5061 GB, free: 6.512 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 8.52e-07/0.09223, allocations: 0 / 0.5061 GB, free: 6.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 5.985e-05/0.09229, allocations: 29.7 kB / 0.5061 GB, free: 6.477 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.731e-05/0.09236, allocations: 130.7 kB / 0.5062 GB, free: 6.336 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.149e-05/0.09243, allocations: 105.8 kB / 0.5063 GB, free: 6.223 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.748e-06/0.09245, allocations: 25.7 kB / 0.5064 GB, free: 6.191 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.24e-05/0.09251, allocations: 88.09 kB / 0.5065 GB, free: 6.102 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.274e-06/0.09251, allocations: 0 / 0.5065 GB, free: 6.102 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.497e-05/0.09254, allocations: 9.719 kB / 0.5065 GB, free: 6.086 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.392e-05/0.09264, allocations: 322.8 kB / 0.5068 GB, free: 5.762 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.015e-06/0.09265, allocations: 0 / 0.5068 GB, free: 5.762 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.645e-05/0.09268, allocations: 21.66 kB / 0.5068 GB, free: 5.734 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.56e-05/0.09271, allocations: 13.72 kB / 0.5068 GB, free: 5.715 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.09271, allocations: 7.938 kB / 0.5068 GB, free: 5.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.438e-05/0.09281, allocations: 41.62 kB / 0.5069 GB, free: 5.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.09283, allocations: 5.406 kB / 0.5069 GB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.09284, allocations: 0 / 0.5069 GB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.09286, allocations: 8.125 kB / 0.5069 GB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.376e-05/0.09291, allocations: 3.938 kB / 0.5069 GB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.09292, allocations: 0 / 0.5069 GB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.297e-05/0.09295, allocations: 8 kB / 0.5069 GB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-06/0.09296, allocations: 0 / 0.5069 GB, free: 5.637 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.958e-05/0.09305, allocations: 189 kB / 0.5071 GB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.308e-05/0.09311, allocations: 112.9 kB / 0.5072 GB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.617e-05/0.09316, allocations: 108.1 kB / 0.5073 GB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.788e-05/0.09322, allocations: 180.3 kB / 0.5074 GB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.019e-05/0.09328, allocations: 188.2 kB / 0.5076 GB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.097e-05/0.09335, allocations: 176.3 kB / 0.5078 GB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002182/0.09357, allocations: 413.1 kB / 0.5082 GB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.152e-05/0.09361, allocations: 105.2 kB / 0.5083 GB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.012e-05/0.09366, allocations: 109 kB / 0.5084 GB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.96e-05/0.09371, allocations: 180.2 kB / 0.5086 GB, free: 3.789 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.147e-05/0.09378, allocations: 184.2 kB / 0.5087 GB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.597e-05/0.09384, allocations: 180.2 kB / 0.5089 GB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.497e-05/0.0939, allocations: 176.3 kB / 0.5091 GB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001197/0.09402, allocations: 315.9 kB / 0.5094 GB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.647e-05/0.0941, allocations: 182.1 kB / 0.5096 GB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.757e-05/0.09417, allocations: 188.2 kB / 0.5097 GB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.15e-05/0.09425, allocations: 101 kB / 0.5098 GB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.361e-05/0.09432, allocations: 180.3 kB / 0.51 GB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-05/0.09435, allocations: 116.9 kB / 0.5101 GB, free: 2.102 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.269e-05/0.0944, allocations: 79.28 kB / 0.5102 GB, free: 2.023 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.09441, allocations: 0 / 0.5102 GB, free: 2.023 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002187/0.09463, allocations: 0 / 0.5102 GB, free: 2.023 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 8.886e-05/0.09472, allocations: 170.5 kB / 0.5103 GB, free: 1.844 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.906e-05/0.09479, allocations: 4 kB / 0.5104 GB, free: 1.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.0948, allocations: 0 / 0.5104 GB, free: 1.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.575e-06/0.09481, allocations: 12.06 kB / 0.5104 GB, free: 1.828 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003416/0.09515, allocations: 459.6 kB / 0.5108 GB, free: 1.375 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001764/0.09534, allocations: 152.3 kB / 0.5109 GB, free: 1.199 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002243/0.09557, allocations: 0.6766 MB / 0.5116 GB, free: 0.4961 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.896e-05/0.0956, allocations: 4 kB / 0.5116 GB, free: 0.4922 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.772e-05/0.09562, allocations: 11.44 kB / 0.5116 GB, free: 492 kB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.09562, allocations: 3.938 kB / 0.5116 GB, free: 488 kB / 350.1 MB Notification: Performance of Templates: time 0.001715/0.09734, allocations: 193.4 kB / 0.5118 GB, free: 296 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)