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.001305/0.001305, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.32/1.32, allocations: 222.9 MB / 240.1 MB, free: 4.375 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.001415/0.001415, allocations: 180.5 kB / 290.4 MB, free: 2.113 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03484/0.03484, allocations: 8.796 MB / 349.3 MB, free: 4.562 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 83.88 kB / 464.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08772/0.08933, allocations: 51.57 MB / 0.504 GB, free: 9.441 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.00236/0.09173, allocations: 1.269 MB / 0.5053 GB, free: 8.164 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 5.174e-05/0.0918, allocations: 3.938 kB / 0.5053 GB, free: 8.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.158e-05/0.09184, allocations: 0 / 0.5053 GB, free: 8.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.415e-05/0.09188, allocations: 0 / 0.5053 GB, free: 8.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.632e-05/0.09197, allocations: 3.938 kB / 0.5053 GB, free: 8.156 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.635e-05/0.09199, allocations: 4 kB / 0.5053 GB, free: 8.152 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.653e-05/0.09206, allocations: 4 kB / 0.5053 GB, free: 8.148 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.988e-05/0.09215, allocations: 11.97 kB / 0.5053 GB, free: 8.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.804e-05/0.09217, allocations: 7.938 kB / 0.5053 GB, free: 8.129 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.727e-05/0.09222, allocations: 4 kB / 0.5053 GB, free: 8.125 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.253e-05/0.09223, allocations: 3.938 kB / 0.5053 GB, free: 8.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.589e-06/0.09224, allocations: 0 / 0.5053 GB, free: 8.121 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.21e-05/0.09226, allocations: 0 / 0.5053 GB, free: 8.121 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.385e-05/0.09229, allocations: 11.94 kB / 0.5053 GB, free: 8.109 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.263e-05/0.09234, allocations: 3.984 kB / 0.5053 GB, free: 8.105 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.09235, allocations: 0 / 0.5053 GB, free: 8.105 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.09236, allocations: 3.938 kB / 0.5053 GB, free: 8.102 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.09237, allocations: 4 kB / 0.5053 GB, free: 8.098 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.0003252/0.0927, allocations: 315.6 kB / 0.5056 GB, free: 7.738 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.09274, allocations: 8.031 kB / 0.5057 GB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.518e-05/0.09277, allocations: 8.844 kB / 0.5057 GB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.0929, allocations: 168.4 kB / 0.5058 GB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.09292, allocations: 384 / 0.5058 GB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.958e-06/0.09293, allocations: 384 / 0.5058 GB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.843e-05/0.09302, allocations: 39.98 kB / 0.5059 GB, free: 7.469 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.09303, allocations: 192 / 0.5059 GB, free: 7.469 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-06/0.09305, allocations: 15.81 kB / 0.5059 GB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.928e-06/0.09306, allocations: 0 / 0.5059 GB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.798e-05/0.09308, allocations: 8 kB / 0.5059 GB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003289/0.09342, allocations: 471.6 kB / 0.5063 GB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.768e-05/0.09351, allocations: 177 kB / 0.5065 GB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.254e-05/0.09355, allocations: 88.12 kB / 0.5066 GB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.505e-05/0.09359, allocations: 75.28 kB / 0.5067 GB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.812e-05/0.09364, allocations: 105.8 kB / 0.5068 GB, free: 6.469 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.192e-06/0.09364, allocations: 0 / 0.5068 GB, free: 6.469 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.975e-05/0.09372, allocations: 29.7 kB / 0.5068 GB, free: 6.434 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.82e-05/0.09378, allocations: 126.7 kB / 0.5069 GB, free: 6.297 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.589e-05/0.09387, allocations: 113.8 kB / 0.507 GB, free: 6.176 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.338e-06/0.09389, allocations: 25.7 kB / 0.507 GB, free: 6.145 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.581e-05/0.09395, allocations: 88.05 kB / 0.5071 GB, free: 6.055 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.915e-06/0.09396, allocations: 0 / 0.5071 GB, free: 6.055 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.822e-05/0.09399, allocations: 13.72 kB / 0.5071 GB, free: 6.035 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.973e-05/0.09409, allocations: 314.8 kB / 0.5074 GB, free: 5.719 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.816e-06/0.09411, allocations: 0 / 0.5074 GB, free: 5.719 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.833e-05/0.09413, allocations: 21.72 kB / 0.5075 GB, free: 5.691 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.964e-05/0.09417, allocations: 13.97 kB / 0.5075 GB, free: 5.672 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.09417, allocations: 3.938 kB / 0.5075 GB, free: 5.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001054/0.09428, allocations: 49.55 kB / 0.5075 GB, free: 5.613 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.0943, allocations: 4 kB / 0.5075 GB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.09431, allocations: 4 kB / 0.5075 GB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.09433, allocations: 3.984 kB / 0.5075 GB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.232e-05/0.09438, allocations: 12.06 kB / 0.5075 GB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.708e-06/0.09439, allocations: 0 / 0.5075 GB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2e-05/0.09441, allocations: 0 / 0.5075 GB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.429e-06/0.09442, allocations: 0 / 0.5075 GB, free: 5.59 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 9.199e-05/0.09452, allocations: 193 kB / 0.5077 GB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.473e-05/0.09458, allocations: 108.9 kB / 0.5078 GB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.268e-05/0.09463, allocations: 112.1 kB / 0.5079 GB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-05/0.09469, allocations: 184.2 kB / 0.5081 GB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.824e-05/0.09476, allocations: 176.3 kB / 0.5083 GB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.646e-05/0.09482, allocations: 176.3 kB / 0.5085 GB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002132/0.09503, allocations: 417.1 kB / 0.5089 GB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.99e-05/0.09507, allocations: 101 kB / 0.5089 GB, free: 4.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.06e-05/0.09512, allocations: 109 kB / 0.5091 GB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.973e-05/0.09517, allocations: 184.3 kB / 0.5092 GB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.414e-05/0.09524, allocations: 180.3 kB / 0.5094 GB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.982e-05/0.09531, allocations: 184.2 kB / 0.5096 GB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.999e-05/0.09537, allocations: 176.3 kB / 0.5097 GB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001247/0.0955, allocations: 315.9 kB / 0.51 GB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.319e-05/0.09559, allocations: 190 kB / 0.5102 GB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.257e-05/0.09566, allocations: 180.3 kB / 0.5104 GB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.264e-05/0.09574, allocations: 101 kB / 0.5105 GB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.521e-05/0.09581, allocations: 184.2 kB / 0.5107 GB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.202e-05/0.09585, allocations: 105 kB / 0.5108 GB, free: 2.062 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.893e-05/0.0959, allocations: 87.27 kB / 0.5109 GB, free: 1.977 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09591, allocations: 0 / 0.5109 GB, free: 1.977 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002166/0.09613, allocations: 0 / 0.5109 GB, free: 1.977 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.0001022/0.09624, allocations: 174.5 kB / 0.511 GB, free: 1.793 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.304e-05/0.09631, allocations: 7.938 kB / 0.511 GB, free: 1.785 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.09632, allocations: 0 / 0.511 GB, free: 1.785 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.724e-06/0.09632, allocations: 128 / 0.511 GB, free: 1.785 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003279/0.09666, allocations: 463.6 kB / 0.5115 GB, free: 1.328 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002172/0.09688, allocations: 186 kB / 0.5116 GB, free: 1.113 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002412/0.09713, allocations: 0.6766 MB / 0.5123 GB, free: 420 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.797e-05/0.09715, allocations: 7.438 kB / 0.5123 GB, free: 412 kB / 350.1 MB Notification: Performance of SimCode: time 1.563e-06/0.09716, allocations: 0 / 0.5123 GB, free: 412 kB / 350.1 MB Notification: Performance of Templates: time 0.001653/0.09882, allocations: 416 kB / 0.5127 GB, free: 15.99 MB / 366.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)