Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.TablesFromFile.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.TablesFromFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Electrical.TablesFromFile") translateModel(HanserModelica.Electrical.TablesFromFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Electrical.TablesFromFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007823/0.007823, allocations: 101.1 kB / 15.73 MB, free: 6.051 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.429/1.429, allocations: 222.9 MB / 239.4 MB, free: 4.539 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.001323/0.001323, allocations: 188.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03546/0.03546, allocations: 8.783 MB / 348.6 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 75.88 kB / 463.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.12, allocations: 51.56 MB / 0.5034 GB, free: 9.488 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TablesFromFile): time 0.004015/0.1241, allocations: 2.169 MB / 0.5055 GB, free: 7.309 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002421/0.1265, allocations: 1.553 MB / 0.507 GB, free: 5.746 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001837/0.1267, allocations: 0 / 0.507 GB, free: 5.746 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004122/0.1272, allocations: 111.5 kB / 0.5071 GB, free: 5.637 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004058/0.1276, allocations: 107.4 kB / 0.5072 GB, free: 5.531 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004392/0.1281, allocations: 135.3 kB / 0.5074 GB, free: 5.402 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003434/0.1284, allocations: 219.2 kB / 0.5076 GB, free: 5.188 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000173/0.1286, allocations: 53.64 kB / 0.5076 GB, free: 5.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001975/0.1288, allocations: 103.5 kB / 0.5077 GB, free: 5.035 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002906/0.1291, allocations: 107.6 kB / 0.5078 GB, free: 4.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.885e-05/0.1291, allocations: 16 kB / 0.5078 GB, free: 4.914 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001803/0.1293, allocations: 67.97 kB / 0.5079 GB, free: 4.848 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.345e-05/0.1294, allocations: 47.83 kB / 0.5079 GB, free: 4.801 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.1295, allocations: 87.48 kB / 0.508 GB, free: 4.715 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004007/0.1299, allocations: 251.1 kB / 0.5083 GB, free: 4.469 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.13, allocations: 0 / 0.5083 GB, free: 4.469 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.13, allocations: 0 / 0.5083 GB, free: 4.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.979e-06/0.13, allocations: 0 / 0.5083 GB, free: 4.469 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.0007933/0.1308, allocations: 0.5104 MB / 0.5088 GB, free: 3.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.1308, allocations: 12.03 kB / 0.5088 GB, free: 3.895 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.817e-05/0.1309, allocations: 16.75 kB / 0.5088 GB, free: 3.879 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000389/0.1313, allocations: 256.9 kB / 0.509 GB, free: 3.586 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.1313, allocations: 8.609 kB / 0.509 GB, free: 3.578 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.536e-05/0.1314, allocations: 16.12 kB / 0.5091 GB, free: 3.562 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002936/0.1317, allocations: 142.6 kB / 0.5092 GB, free: 3.414 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.1317, allocations: 0 / 0.5092 GB, free: 3.414 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.837e-05/0.1317, allocations: 7.938 kB / 0.5092 GB, free: 3.406 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.1317, allocations: 4 kB / 0.5092 GB, free: 3.402 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001754/0.1319, allocations: 80.61 kB / 0.5093 GB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009014/0.1328, allocations: 0.5416 MB / 0.5098 GB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003972/0.1332, allocations: 118.6 kB / 0.5099 GB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.283e-05/0.1333, allocations: 36.78 kB / 0.51 GB, free: 2.555 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.794e-05/0.1334, allocations: 0 / 0.51 GB, free: 2.555 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001851/0.1336, allocations: 101 kB / 0.5101 GB, free: 2.438 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.252e-06/0.1336, allocations: 0 / 0.5101 GB, free: 2.438 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003972/0.134, allocations: 145.4 kB / 0.5102 GB, free: 2.289 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.221e-05/0.1341, allocations: 106.8 kB / 0.5103 GB, free: 2.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002609/0.1343, allocations: 280.9 kB / 0.5106 GB, free: 1.879 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.1344, allocations: 25.7 kB / 0.5106 GB, free: 1.848 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.336e-05/0.1345, allocations: 143.8 kB / 0.5107 GB, free: 1.703 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.911e-05/0.1345, allocations: 27.62 kB / 0.5108 GB, free: 1.676 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.331e-05/0.1346, allocations: 33.64 kB / 0.5108 GB, free: 1.637 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.1347, allocations: 334.8 kB / 0.5111 GB, free: 1.301 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.036e-05/0.1348, allocations: 23.98 kB / 0.5111 GB, free: 1.277 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.1349, allocations: 77.12 kB / 0.5112 GB, free: 1.184 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001771/0.1351, allocations: 87.36 kB / 0.5113 GB, free: 1.086 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1351, allocations: 4.031 kB / 0.5113 GB, free: 1.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002813/0.1354, allocations: 141.3 kB / 0.5114 GB, free: 0.9375 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.1354, allocations: 4 kB / 0.5114 GB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.1354, allocations: 4 kB / 0.5114 GB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.1355, allocations: 0 / 0.5114 GB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.1356, allocations: 23.98 kB / 0.5115 GB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.1356, allocations: 4 kB / 0.5115 GB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.645e-05/0.1357, allocations: 7.906 kB / 0.5115 GB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.434e-05/0.1357, allocations: 12.09 kB / 0.5115 GB, free: 0.8828 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.00014/0.1359, allocations: 145.6 kB / 0.5116 GB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.985e-05/0.1359, allocations: 23.72 kB / 0.5116 GB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.274e-05/0.136, allocations: 22.08 kB / 0.5117 GB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.136, allocations: 4 kB / 0.5117 GB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.136, allocations: 0 / 0.5117 GB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.136, allocations: 0 / 0.5117 GB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002417/0.1363, allocations: 245.4 kB / 0.5119 GB, free: 396 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.1363, allocations: 3.984 kB / 0.5119 GB, free: 392 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.342e-05/0.1364, allocations: 16 kB / 0.5119 GB, free: 376 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.1364, allocations: 0 / 0.5119 GB, free: 376 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/0.1364, allocations: 8 kB / 0.5119 GB, free: 368 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.1364, allocations: 0 / 0.5119 GB, free: 368 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1364, allocations: 0 / 0.5119 GB, free: 368 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003708/0.1368, allocations: 184.8 kB / 0.5121 GB, free: 164 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.822e-05/0.1369, allocations: 88.95 kB / 0.5122 GB, free: 56 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.323e-05/0.1369, allocations: 4 kB / 0.5122 GB, free: 52 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.999e-05/0.137, allocations: 16.05 kB / 0.5122 GB, free: 36 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.888e-05/0.1371, allocations: 4 kB / 0.5122 GB, free: 32 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.027e-05/0.1371, allocations: 7.938 kB / 0.5122 GB, free: 24 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002655/0.1374, allocations: 208.4 kB / 0.5124 GB, free: 15.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1374, allocations: 0 / 0.5124 GB, free: 15.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002798/0.1376, allocations: 55.83 kB / 0.5125 GB, free: 15.76 MB / 366.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.001019/0.1387, allocations: 450.5 kB / 0.5129 GB, free: 15.49 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002343/0.1389, allocations: 75.91 kB / 0.513 GB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1389, allocations: 0 / 0.513 GB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.095e-05/0.139, allocations: 39.86 kB / 0.513 GB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002979/0.1393, allocations: 52.52 kB / 0.5131 GB, free: 15.33 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007858/0.1401, allocations: 428.3 kB / 0.5135 GB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002847/0.1404, allocations: 0.7435 MB / 0.5142 GB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.959e-05/0.1405, allocations: 21.55 kB / 0.5142 GB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.465e-05/0.1406, allocations: 19.42 kB / 0.5142 GB, free: 14.07 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1406, allocations: 0 / 0.5142 GB, free: 14.07 MB / 366.1 MB Notification: Performance of Templates: time 0.006474/0.1471, allocations: 2.415 MB / 0.5166 GB, free: 11.67 MB / 366.1 MB make -j1 -f HanserModelica_HanserModelica.Electrical.TablesFromFile.makefile (rm -f HanserModelica_HanserModelica.Electrical.TablesFromFile.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.TablesFromFile.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.TablesFromFile.pipe >> ../files/HanserModelica_HanserModelica.Electrical.TablesFromFile.sim & ./HanserModelica_HanserModelica.Electrical.TablesFromFile -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Electrical.TablesFromFile.pipe 2>&1)