Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.Rectifier.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.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Electrical.Rectifier") translateModel(HanserModelica.Electrical.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Electrical.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 115.8 kB / 16.37 MB, free: 6.012 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.323/1.323, allocations: 222.9 MB / 240 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.00124/0.00124, allocations: 184.5 kB / 290.3 MB, free: 2.293 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03552/0.03552, allocations: 8.786 MB / 349.3 MB, free: 4.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002479/0.002479, allocations: 84.64 kB / 412.5 MB, free: 41.72 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1106, allocations: 51.56 MB / 464.1 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Rectifier): time 0.005814/0.1164, allocations: 4.5 MB / 468.6 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002219/0.1186, allocations: 1.157 MB / 469.7 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004814/0.1192, allocations: 23.94 kB / 469.8 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004248/0.1196, allocations: 166.6 kB / 469.9 MB, free: 7.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009592/0.1206, allocations: 358 kB / 470.3 MB, free: 7.379 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003094/0.1209, allocations: 167.8 kB / 470.4 MB, free: 7.215 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001404/0.1223, allocations: 1.657 MB / 472.1 MB, free: 5.551 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001119/0.1234, allocations: 1.154 MB / 473.3 MB, free: 4.359 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007007/0.1242, allocations: 0.701 MB / 474 MB, free: 3.656 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009167/0.1251, allocations: 0.8523 MB / 474.8 MB, free: 2.801 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001941/0.1253, allocations: 180 kB / 475 MB, free: 2.625 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002584/0.1256, allocations: 180 kB / 475.2 MB, free: 2.449 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004335/0.126, allocations: 0.4948 MB / 475.7 MB, free: 1.953 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007795/0.1268, allocations: 0.8129 MB / 476.5 MB, free: 1.137 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001648/0.1284, allocations: 2.333 MB / 478.8 MB, free: 14.8 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.564e-06/0.1285, allocations: 3.938 kB / 478.8 MB, free: 14.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.22e-07/0.1285, allocations: 4 kB / 478.8 MB, free: 14.79 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.741e-05/0.1285, allocations: 0 / 478.8 MB, free: 14.79 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.003301/0.1318, allocations: 1.808 MB / 480.6 MB, free: 12.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.682e-05/0.1318, allocations: 8.031 kB / 480.6 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002225/0.1321, allocations: 151.2 kB / 480.8 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001589/0.1337, allocations: 0.9736 MB / 481.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.233e-05/0.1337, allocations: 86.59 kB / 481.8 MB, free: 11.67 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001737/0.1339, allocations: 112.1 kB / 481.9 MB, free: 11.56 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002812/0.1367, allocations: 1.689 MB / 483.6 MB, free: 9.812 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.363e-05/0.1368, allocations: 0 / 483.6 MB, free: 9.812 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000108/0.1369, allocations: 40 kB / 483.7 MB, free: 9.773 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.189e-05/0.137, allocations: 54.23 kB / 483.7 MB, free: 9.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002507/0.1395, allocations: 1.554 MB / 485.3 MB, free: 8.156 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007309/0.1468, allocations: 4.947 MB / 490.2 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002453/0.1493, allocations: 2.572 MB / 492.8 MB, free: 260 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001156/0.1505, allocations: 0.8567 MB / 493.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.905e-05/0.1505, allocations: 9 kB / 493.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.626e-05/0.1506, allocations: 43.56 kB / 493.7 MB, free: 15.33 MB / 334.1 MB Notification: Performance of pre-optimization done (n=92): time 2.715e-06/0.1506, allocations: 3.938 kB / 493.7 MB, free: 15.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=93): time 0.007281/0.1579, allocations: 4.078 MB / 497.8 MB, free: 11.13 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.953e-05/0.1579, allocations: 60.41 kB / 497.8 MB, free: 11.06 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001035/0.159, allocations: 0.8832 MB / 498.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.61e-05/0.159, allocations: 41.7 kB / 498.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003319/0.1594, allocations: 0.4999 MB / 499.3 MB, free: 9.609 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002047/0.1596, allocations: 303.5 kB / 499.6 MB, free: 9.309 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002385/0.1598, allocations: 150.6 kB / 499.7 MB, free: 9.156 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.16, allocations: 337.9 kB / 0.4883 GB, free: 8.82 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007772/0.1607, allocations: 0.4938 MB / 0.4888 GB, free: 8.324 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000801/0.1616, allocations: 0.5722 MB / 0.4894 GB, free: 7.742 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001541/0.1631, allocations: 1.065 MB / 0.4904 GB, free: 6.664 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1631, allocations: 0 / 0.4904 GB, free: 6.664 MB / 334.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.00239/0.1655, allocations: 1.565 MB / 0.4919 GB, free: 5.082 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.1655, allocations: 4 kB / 0.4919 GB, free: 5.078 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.1656, allocations: 4 kB / 0.4919 GB, free: 5.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001038/0.1666, allocations: 495 kB / 0.4924 GB, free: 4.578 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005496/0.1672, allocations: 131.8 kB / 0.4925 GB, free: 4.449 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008642/0.1758, allocations: 9.601 MB / 0.5019 GB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005732/0.1764, allocations: 47.94 kB / 0.502 GB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.376e-05/0.1765, allocations: 24 kB / 0.502 GB, free: 10.22 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: 6 (rectifier.diode_n.idealDiode[3].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[1].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0006855/0.1772, allocations: 0.5091 MB / 0.5025 GB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001401/0.1773, allocations: 94.88 kB / 0.5026 GB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002233/0.1775, allocations: 129.3 kB / 0.5027 GB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.1776, allocations: 15.98 kB / 0.5027 GB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.1776, allocations: 0 / 0.5027 GB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.1776, allocations: 3.984 kB / 0.5027 GB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004844/0.1824, allocations: 3.16 MB / 0.5058 GB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.1824, allocations: 0 / 0.5058 GB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005144/0.183, allocations: 119.9 kB / 0.5059 GB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009484/0.1839, allocations: 486.9 kB / 0.5064 GB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.874e-05/0.184, allocations: 24 kB / 0.5064 GB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008401/0.1924, allocations: 9.523 MB / 0.5157 GB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1924, allocations: 0 / 0.5157 GB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003364/0.1958, allocations: 2.351 MB / 0.518 GB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005631/0.1964, allocations: 292 kB / 0.5183 GB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001361/0.1965, allocations: 16 kB / 0.5183 GB, free: 8.801 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005059/0.197, allocations: 67.92 kB / 0.5184 GB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000199/0.1972, allocations: 80.88 kB / 0.5184 GB, free: 8.656 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.408e-05/0.1973, allocations: 24 kB / 0.5185 GB, free: 8.633 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007985/0.1981, allocations: 0.6356 MB / 0.5191 GB, free: 8 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1981, allocations: 0 / 0.5191 GB, free: 8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001152/0.1993, allocations: 308 kB / 0.5194 GB, free: 7.699 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inductor.inductor[2].i,inductor.inductor[3].i,capacitor1.v,capacitor2.v) * Number of discrete variables: 6 (rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001666/0.1994, allocations: 135.1 kB / 0.5195 GB, free: 7.555 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002586/0.202, allocations: 1.788 MB / 0.5212 GB, free: 5.715 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.2021, allocations: 0 / 0.5212 GB, free: 5.715 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001643/0.2037, allocations: 1.269 MB / 0.5225 GB, free: 4.395 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001101/0.2048, allocations: 303.1 kB / 0.5228 GB, free: 4.105 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00438/0.2092, allocations: 2.805 MB / 0.5255 GB, free: 1.273 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1446/0.3538, allocations: 1.421 MB / 0.5269 GB, free: 66.72 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005778/0.3544, allocations: 182.2 kB / 0.5271 GB, free: 66.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001657/0.3546, allocations: 61.03 kB / 0.5271 GB, free: 66.7 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3546, allocations: 1.781 kB / 0.5271 GB, free: 66.7 MB / 366.1 MB Notification: Performance of Templates: time 0.02882/0.3834, allocations: 20.79 MB / 0.5474 GB, free: 60.22 MB / 366.1 MB make -j1 -f HanserModelica_HanserModelica.Electrical.Rectifier.makefile (rm -f HanserModelica_HanserModelica.Electrical.Rectifier.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.Rectifier.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.Rectifier.pipe >> ../files/HanserModelica_HanserModelica.Electrical.Rectifier.sim & ./HanserModelica_HanserModelica.Electrical.Rectifier -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.Electrical.Rectifier.pipe 2>&1)