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.006064/0.006064, allocations: 100.7 kB / 15.73 MB, free: 6.059 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.376/1.376, allocations: 222.9 MB / 239.4 MB, free: 4.555 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.001369/0.001369, allocations: 192.5 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.035/0.035, allocations: 8.787 MB / 348.6 MB, free: 4.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002198/0.002198, allocations: 83.86 kB / 463.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1312, allocations: 51.57 MB / 0.5034 GB, free: 9.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.002933/0.1342, allocations: 1.268 MB / 0.5046 GB, free: 8.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 6.326e-05/0.1342, allocations: 4 kB / 0.5046 GB, free: 8.266 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.536e-05/0.1343, allocations: 0 / 0.5046 GB, free: 8.266 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.795e-05/0.1343, allocations: 0 / 0.5046 GB, free: 8.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.522e-05/0.1344, allocations: 3.938 kB / 0.5046 GB, free: 8.262 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.747e-05/0.1344, allocations: 0 / 0.5046 GB, free: 8.262 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.053e-05/0.1345, allocations: 7.984 kB / 0.5046 GB, free: 8.254 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.075e-05/0.1346, allocations: 4 kB / 0.5046 GB, free: 8.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.633e-05/0.1346, allocations: 15.92 kB / 0.5046 GB, free: 8.234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.345e-05/0.1347, allocations: 7.938 kB / 0.5047 GB, free: 8.227 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.847e-05/0.1347, allocations: 0 / 0.5047 GB, free: 8.227 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.781e-06/0.1347, allocations: 0 / 0.5047 GB, free: 8.227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.467e-05/0.1347, allocations: 0 / 0.5047 GB, free: 8.227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.402e-05/0.1348, allocations: 3.938 kB / 0.5047 GB, free: 8.223 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.936e-05/0.1348, allocations: 7.984 kB / 0.5047 GB, free: 8.215 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1349, allocations: 4 kB / 0.5047 GB, free: 8.211 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.1349, allocations: 0 / 0.5047 GB, free: 8.211 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.1349, allocations: 3.938 kB / 0.5047 GB, free: 8.207 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.0004166/0.1353, allocations: 319.6 kB / 0.505 GB, free: 7.844 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.1354, allocations: 12.02 kB / 0.505 GB, free: 7.832 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.537e-05/0.1354, allocations: 4.844 kB / 0.505 GB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001496/0.1356, allocations: 164.4 kB / 0.5052 GB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.1356, allocations: 384 / 0.5052 GB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.536e-06/0.1356, allocations: 384 / 0.5052 GB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001058/0.1357, allocations: 43.98 kB / 0.5052 GB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.1357, allocations: 4.125 kB / 0.5052 GB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.1358, allocations: 7.938 kB / 0.5052 GB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.1358, allocations: 0 / 0.5052 GB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.387e-05/0.1358, allocations: 11.97 kB / 0.5052 GB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003918/0.1362, allocations: 471.6 kB / 0.5057 GB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.138e-05/0.1363, allocations: 177.1 kB / 0.5058 GB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.611e-05/0.1364, allocations: 84.14 kB / 0.5059 GB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.128e-05/0.1364, allocations: 75.28 kB / 0.506 GB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.584e-05/0.1365, allocations: 109.8 kB / 0.5061 GB, free: 6.574 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.282e-06/0.1365, allocations: 0 / 0.5061 GB, free: 6.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 8.241e-05/0.1366, allocations: 29.7 kB / 0.5061 GB, free: 6.539 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.117e-05/0.1366, allocations: 134.6 kB / 0.5063 GB, free: 6.395 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.1368, allocations: 105.8 kB / 0.5064 GB, free: 6.281 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.25e-05/0.1368, allocations: 25.7 kB / 0.5064 GB, free: 6.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.066e-05/0.1368, allocations: 88.05 kB / 0.5065 GB, free: 6.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.268e-06/0.1369, allocations: 0 / 0.5065 GB, free: 6.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.008e-05/0.1369, allocations: 17.72 kB / 0.5065 GB, free: 6.137 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.137, allocations: 314.8 kB / 0.5068 GB, free: 5.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.222e-05/0.1371, allocations: 0 / 0.5068 GB, free: 5.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.911e-05/0.1371, allocations: 17.72 kB / 0.5068 GB, free: 5.797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.828e-05/0.1371, allocations: 17.72 kB / 0.5068 GB, free: 5.773 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.1371, allocations: 3.938 kB / 0.5068 GB, free: 5.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001224/0.1373, allocations: 49.53 kB / 0.5069 GB, free: 5.715 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.1373, allocations: 4 kB / 0.5069 GB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.1373, allocations: 4 kB / 0.5069 GB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.1373, allocations: 0 / 0.5069 GB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.089e-05/0.1374, allocations: 4.125 kB / 0.5069 GB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.1374, allocations: 7.938 kB / 0.5069 GB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.618e-05/0.1374, allocations: 0 / 0.5069 GB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.11e-06/0.1375, allocations: 0 / 0.5069 GB, free: 5.695 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.0001021/0.1376, allocations: 196.9 kB / 0.5071 GB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.722e-05/0.1377, allocations: 101 kB / 0.5072 GB, free: 5.387 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.475e-05/0.1377, allocations: 112.1 kB / 0.5073 GB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.224e-05/0.1378, allocations: 188.2 kB / 0.5075 GB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.914e-05/0.1379, allocations: 176.3 kB / 0.5076 GB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.907e-05/0.138, allocations: 180.2 kB / 0.5078 GB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002815/0.1382, allocations: 413.2 kB / 0.5082 GB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.234e-05/0.1383, allocations: 101 kB / 0.5083 GB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.326e-05/0.1384, allocations: 104.9 kB / 0.5084 GB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.697e-05/0.1384, allocations: 188.2 kB / 0.5086 GB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.049e-05/0.1385, allocations: 180.2 kB / 0.5087 GB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.024e-05/0.1386, allocations: 176.3 kB / 0.5089 GB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.761e-05/0.1387, allocations: 180.3 kB / 0.5091 GB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001504/0.1388, allocations: 311.9 kB / 0.5094 GB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.259e-05/0.1389, allocations: 186.1 kB / 0.5095 GB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.015e-05/0.139, allocations: 184.5 kB / 0.5097 GB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001285/0.1392, allocations: 105 kB / 0.5098 GB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.469e-05/0.1392, allocations: 180.2 kB / 0.51 GB, free: 2.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.246e-05/0.1393, allocations: 113 kB / 0.5101 GB, free: 2.168 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.879e-05/0.1394, allocations: 83.28 kB / 0.5102 GB, free: 2.086 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1394, allocations: 0 / 0.5102 GB, free: 2.086 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004283/0.1398, allocations: 0 / 0.5102 GB, free: 2.086 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.0001201/0.1399, allocations: 170.5 kB / 0.5103 GB, free: 1.906 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.285e-05/0.14, allocations: 11.88 kB / 0.5104 GB, free: 1.895 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.14, allocations: 0 / 0.5104 GB, free: 1.895 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.933e-06/0.14, allocations: 128 / 0.5104 GB, free: 1.895 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000472/0.1405, allocations: 469.2 kB / 0.5108 GB, free: 1.434 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002392/0.1408, allocations: 156.3 kB / 0.511 GB, free: 1.254 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002614/0.141, allocations: 0.6805 MB / 0.5116 GB, free: 0.5469 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.033e-05/0.1411, allocations: 0 / 0.5116 GB, free: 0.5469 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.082e-05/0.1411, allocations: 7.438 kB / 0.5116 GB, free: 0.5391 MB / 350.1 MB Notification: Performance of SimCode: time 4.478e-06/0.1411, allocations: 4 kB / 0.5116 GB, free: 0.5352 MB / 350.1 MB Notification: Performance of Templates: time 0.002447/0.1436, allocations: 205.1 kB / 0.5118 GB, free: 344 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)