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.001627/0.001627, allocations: 104.1 kB / 16.35 MB, free: 6.289 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.493/1.493, allocations: 222.9 MB / 240 MB, free: 4.398 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.001633/0.001633, allocations: 196.4 kB / 290.3 MB, free: 2.117 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03356/0.03356, allocations: 8.806 MB / 349.3 MB, free: 4.582 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 78.88 kB / 412.5 MB, free: 41.66 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1318, allocations: 51.57 MB / 464.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.002804/0.1347, allocations: 1.258 MB / 465.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 5.652e-05/0.1348, allocations: 3.938 kB / 465.3 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.788e-05/0.1348, allocations: 0 / 465.3 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.537e-05/0.1349, allocations: 0 / 465.3 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.378e-05/0.135, allocations: 3.938 kB / 465.4 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.225e-05/0.135, allocations: 4 kB / 465.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.247e-05/0.1351, allocations: 4 kB / 465.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.1352, allocations: 4 kB / 465.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.478e-05/0.1352, allocations: 3.938 kB / 465.4 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.282e-05/0.1353, allocations: 15.97 kB / 465.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.064e-05/0.1353, allocations: 0 / 465.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.111e-06/0.1353, allocations: 3.938 kB / 465.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.493e-05/0.1353, allocations: 0 / 465.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.837e-05/0.1354, allocations: 11.94 kB / 465.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 6.302e-05/0.1355, allocations: 0 / 465.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1355, allocations: 0 / 465.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1355, allocations: 0 / 465.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.471e-06/0.1355, allocations: 0 / 465.4 MB, free: 12.19 MB / 302.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.0004136/0.1359, allocations: 327.5 kB / 465.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.136, allocations: 12.03 kB / 465.7 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.89e-05/0.136, allocations: 0.9375 kB / 465.7 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001774/0.1362, allocations: 172.3 kB / 465.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.365e-05/0.1362, allocations: 384 / 465.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.235e-05/0.1362, allocations: 384 / 465.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001142/0.1363, allocations: 43.98 kB / 465.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.1364, allocations: 192 / 465.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.622e-05/0.1364, allocations: 3.938 kB / 465.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.1364, allocations: 7.875 kB / 466 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.617e-05/0.1364, allocations: 12 kB / 466 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005142/0.137, allocations: 463.7 kB / 466.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001131/0.1371, allocations: 181 kB / 466.6 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.929e-05/0.1371, allocations: 92.11 kB / 466.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.031e-05/0.1372, allocations: 75.28 kB / 466.8 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.608e-05/0.1372, allocations: 105.8 kB / 466.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 1.032e-06/0.1372, allocations: 0 / 466.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 8.56e-05/0.1373, allocations: 33.61 kB / 466.9 MB, free: 10.51 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.784e-05/0.1374, allocations: 126.7 kB / 467 MB, free: 10.37 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001102/0.1375, allocations: 109.8 kB / 467.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.183e-05/0.1375, allocations: 33.7 kB / 467.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.59e-05/0.1376, allocations: 88.05 kB / 467.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.378e-06/0.1376, allocations: 0 / 467.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.065e-05/0.1377, allocations: 13.72 kB / 467.3 MB, free: 10.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.1378, allocations: 310.8 kB / 467.6 MB, free: 9.793 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.11e-05/0.1378, allocations: 4 kB / 467.6 MB, free: 9.789 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.668e-05/0.1378, allocations: 17.7 kB / 467.6 MB, free: 9.766 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.335e-05/0.1379, allocations: 17.78 kB / 467.6 MB, free: 9.742 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1379, allocations: 3.938 kB / 467.6 MB, free: 9.738 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001063/0.138, allocations: 41.64 kB / 467.6 MB, free: 9.691 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.138, allocations: 6.188 kB / 467.7 MB, free: 9.688 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.138, allocations: 4 kB / 467.7 MB, free: 9.684 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.138, allocations: 0 / 467.7 MB, free: 9.684 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.51e-05/0.1381, allocations: 4 kB / 467.7 MB, free: 9.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.1381, allocations: 8.047 kB / 467.7 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.926e-05/0.1381, allocations: 0 / 467.7 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-06/0.1381, allocations: 0 / 467.7 MB, free: 9.672 MB / 302.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.0001124/0.1383, allocations: 201 kB / 467.9 MB, free: 9.465 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.699e-05/0.1383, allocations: 108.9 kB / 468 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.623e-05/0.1384, allocations: 108.1 kB / 468.1 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.406e-05/0.1385, allocations: 184.2 kB / 468.3 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.145e-05/0.1385, allocations: 180.3 kB / 468.4 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.486e-05/0.1386, allocations: 176.3 kB / 468.6 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002311/0.1389, allocations: 413.1 kB / 469 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.471e-05/0.1389, allocations: 101 kB / 469.1 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.143e-05/0.1389, allocations: 104.9 kB / 469.2 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.29e-05/0.139, allocations: 184.3 kB / 469.4 MB, free: 7.824 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.768e-05/0.1391, allocations: 180.3 kB / 469.6 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.535e-05/0.1392, allocations: 188.2 kB / 469.7 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.008e-05/0.1393, allocations: 176.3 kB / 469.9 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000146/0.1394, allocations: 311.7 kB / 470.2 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.015e-05/0.1395, allocations: 193.9 kB / 470.4 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.316e-05/0.1396, allocations: 180.2 kB / 470.6 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.185e-05/0.1397, allocations: 101.3 kB / 470.7 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.809e-05/0.1398, allocations: 184.2 kB / 470.9 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.991e-05/0.1398, allocations: 105 kB / 471 MB, free: 6.141 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.878e-05/0.1399, allocations: 95.52 kB / 471.1 MB, free: 6.047 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1399, allocations: 0 / 471.1 MB, free: 6.047 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002148/0.1401, allocations: 0 / 471.1 MB, free: 6.047 MB / 302.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.0001294/0.1402, allocations: 170.5 kB / 471.2 MB, free: 5.867 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 6.959e-05/0.1403, allocations: 7.938 kB / 471.2 MB, free: 5.859 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1403, allocations: 0 / 471.2 MB, free: 5.859 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.647e-06/0.1403, allocations: 4 kB / 471.2 MB, free: 5.855 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004198/0.1408, allocations: 459.8 kB / 471.7 MB, free: 5.402 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002644/0.141, allocations: 164.2 kB / 471.9 MB, free: 5.215 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002845/0.1413, allocations: 0.6729 MB / 472.5 MB, free: 4.516 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.113e-05/0.1414, allocations: 0 / 472.5 MB, free: 4.516 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.064e-05/0.1414, allocations: 7.438 kB / 472.5 MB, free: 4.508 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1414, allocations: 0 / 472.5 MB, free: 4.508 MB / 302.1 MB Notification: Performance of Templates: time 0.002325/0.1437, allocations: 197.1 kB / 472.7 MB, free: 4.316 MB / 302.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 -s cvode -lv LOG_STATS > HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe 2>&1)