Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.Tables.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.Electrical.Tables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Electrical.Tables") translateModel(HanserModelica.Electrical.Tables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Electrical.Tables") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001568/0.001568, allocations: 107 kB / 16.41 MB, free: 6.496 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.488/1.488, allocations: 222.9 MB / 240.1 MB, free: 4.574 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.001526/0.001526, allocations: 188.4 kB / 290.4 MB, free: 2.289 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03557/0.03557, allocations: 8.793 MB / 349.3 MB, free: 4.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 83.86 kB / 464.6 MB, free: 13.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1388, allocations: 51.55 MB / 0.504 GB, free: 9.578 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Tables): time 0.004742/0.1436, allocations: 2.164 MB / 0.5062 GB, free: 7.402 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00206/0.1457, allocations: 0.9508 MB / 0.5071 GB, free: 6.445 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002609/0.146, allocations: 7.938 kB / 0.5071 GB, free: 6.438 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004699/0.1465, allocations: 103.6 kB / 0.5072 GB, free: 6.336 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004401/0.147, allocations: 99.45 kB / 0.5073 GB, free: 6.238 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005095/0.1475, allocations: 131.6 kB / 0.5074 GB, free: 6.109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004337/0.148, allocations: 215.2 kB / 0.5076 GB, free: 5.898 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001923/0.1482, allocations: 59.47 kB / 0.5077 GB, free: 5.844 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002299/0.1484, allocations: 87.64 kB / 0.5078 GB, free: 5.758 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002028/0.1486, allocations: 103.6 kB / 0.5079 GB, free: 5.656 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.881e-05/0.1487, allocations: 19.94 kB / 0.5079 GB, free: 5.637 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001655/0.1489, allocations: 59.91 kB / 0.5079 GB, free: 5.578 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001058/0.149, allocations: 43.84 kB / 0.508 GB, free: 5.535 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001151/0.1491, allocations: 87.48 kB / 0.5081 GB, free: 5.449 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004456/0.1495, allocations: 223.2 kB / 0.5083 GB, free: 5.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.003e-05/0.1496, allocations: 7.984 kB / 0.5083 GB, free: 5.223 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1496, allocations: 0 / 0.5083 GB, free: 5.223 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.966e-06/0.1496, allocations: 0 / 0.5083 GB, free: 5.223 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.000989/0.1506, allocations: 0.4986 MB / 0.5088 GB, free: 4.672 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.1506, allocations: 12.03 kB / 0.5088 GB, free: 4.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.572e-05/0.1507, allocations: 20.75 kB / 0.5088 GB, free: 4.641 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004888/0.1512, allocations: 245.1 kB / 0.509 GB, free: 4.359 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.054e-05/0.1513, allocations: 12.48 kB / 0.509 GB, free: 4.348 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.964e-05/0.1513, allocations: 20.03 kB / 0.5091 GB, free: 4.328 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003013/0.1516, allocations: 123.5 kB / 0.5092 GB, free: 4.203 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.1516, allocations: 0 / 0.5092 GB, free: 4.203 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.201e-05/0.1517, allocations: 4 kB / 0.5092 GB, free: 4.199 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.1517, allocations: 4 kB / 0.5092 GB, free: 4.195 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001834/0.1519, allocations: 72.67 kB / 0.5093 GB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001027/0.1529, allocations: 0.5379 MB / 0.5098 GB, free: 3.523 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000529/0.1534, allocations: 114.6 kB / 0.5099 GB, free: 3.402 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.008e-05/0.1535, allocations: 40.83 kB / 0.5099 GB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.521e-05/0.1536, allocations: 0 / 0.5099 GB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002195/0.1538, allocations: 97.03 kB / 0.51 GB, free: 3.246 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.422e-06/0.1538, allocations: 0 / 0.51 GB, free: 3.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004087/0.1542, allocations: 145.7 kB / 0.5102 GB, free: 3.098 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.217e-05/0.1543, allocations: 81.11 kB / 0.5102 GB, free: 3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002795/0.1546, allocations: 260.2 kB / 0.5105 GB, free: 2.734 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.109e-05/0.1546, allocations: 29.8 kB / 0.5105 GB, free: 2.699 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.1547, allocations: 143.7 kB / 0.5106 GB, free: 2.555 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.962e-05/0.1548, allocations: 35.55 kB / 0.5107 GB, free: 2.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.596e-05/0.1549, allocations: 29.7 kB / 0.5107 GB, free: 2.484 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002531/0.1552, allocations: 330.8 kB / 0.511 GB, free: 2.152 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.225e-05/0.1552, allocations: 31.98 kB / 0.5111 GB, free: 2.121 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001062/0.1554, allocations: 72.16 kB / 0.5111 GB, free: 2.035 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001992/0.1556, allocations: 83.42 kB / 0.5112 GB, free: 1.941 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.1556, allocations: 3.938 kB / 0.5112 GB, free: 1.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002755/0.1559, allocations: 141.4 kB / 0.5113 GB, free: 1.793 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.1559, allocations: 8 kB / 0.5113 GB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.77e-06/0.1559, allocations: 0 / 0.5113 GB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.1559, allocations: 0 / 0.5113 GB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.156, allocations: 24 kB / 0.5114 GB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/0.1561, allocations: 7.922 kB / 0.5114 GB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.1562, allocations: 15.91 kB / 0.5114 GB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.1562, allocations: 4 kB / 0.5114 GB, free: 1.734 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.table.nextTimeEvent,$whenCondition1,table.nextTimeEventScaled,$PRE.table.nextTimeEventScaled,table.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001472/0.1563, allocations: 149.7 kB / 0.5115 GB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.613e-05/0.1564, allocations: 19.81 kB / 0.5116 GB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.943e-05/0.1565, allocations: 21.39 kB / 0.5116 GB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.1565, allocations: 4 kB / 0.5116 GB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.1565, allocations: 0 / 0.5116 GB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.1565, allocations: 0 / 0.5116 GB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002469/0.1567, allocations: 245.4 kB / 0.5118 GB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.1567, allocations: 0 / 0.5118 GB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.096e-05/0.1568, allocations: 16 kB / 0.5118 GB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.1569, allocations: 7.938 kB / 0.5118 GB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.1569, allocations: 4 kB / 0.5118 GB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.1569, allocations: 0 / 0.5118 GB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.1569, allocations: 3.984 kB / 0.5118 GB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003724/0.1573, allocations: 184.7 kB / 0.512 GB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.587e-05/0.1573, allocations: 88.95 kB / 0.5121 GB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.048e-05/0.1574, allocations: 8 kB / 0.5121 GB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.272e-05/0.1575, allocations: 12.05 kB / 0.5121 GB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.029e-05/0.1575, allocations: 4 kB / 0.5121 GB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.1575, allocations: 8.078 kB / 0.5121 GB, free: 0.8672 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001802/0.1577, allocations: 197.5 kB / 0.5123 GB, free: 0.6758 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1577, allocations: 0 / 0.5123 GB, free: 0.6758 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003322/0.1581, allocations: 43.84 kB / 0.5124 GB, free: 0.6328 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (inductor.i) * Number of discrete variables: 3 ($whenCondition1,table.nextTimeEvent,table.nextTimeEventScaled) * Number of discrete states: 2 (table.nextTimeEventScaled,table.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0009892/0.1591, allocations: 403.6 kB / 0.5128 GB, free: 400 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002462/0.1593, allocations: 79.91 kB / 0.5128 GB, free: 320 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1593, allocations: 3.938 kB / 0.5128 GB, free: 316 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.861e-05/0.1594, allocations: 39.92 kB / 0.5129 GB, free: 276 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003206/0.1598, allocations: 35.33 kB / 0.5129 GB, free: 244 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000966/0.1607, allocations: 470.3 kB / 0.5134 GB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004787/0.1612, allocations: 0.7358 MB / 0.5141 GB, free: 14.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.321e-05/0.1613, allocations: 15.44 kB / 0.5141 GB, free: 14.97 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1613, allocations: 0 / 0.5141 GB, free: 14.97 MB / 366.1 MB Notification: Performance of Templates: time 0.005437/0.1668, allocations: 2.568 MB / 0.5166 GB, free: 12.41 MB / 366.1 MB make -j1 -f HanserModelica_HanserModelica.Electrical.Tables.makefile (rm -f HanserModelica_HanserModelica.Electrical.Tables.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.Tables.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.Tables.pipe >> ../files/HanserModelica_HanserModelica.Electrical.Tables.sim & ./HanserModelica_HanserModelica.Electrical.Tables -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Electrical.Tables.pipe 2>&1)