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.001469/0.00147, allocations: 108 kB / 16.37 MB, free: 6.477 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.477/1.477, allocations: 222.9 MB / 240 MB, free: 4.566 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.001326/0.001325, allocations: 195.4 kB / 290.3 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.0336/0.0336, allocations: 8.797 MB / 349.3 MB, free: 4.664 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 76.69 kB / 412.5 MB, free: 41.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1231, allocations: 51.56 MB / 464.1 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Rectifier): time 0.006698/0.1298, allocations: 4.502 MB / 468.6 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002852/0.1327, allocations: 1.153 MB / 469.7 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003293/0.1331, allocations: 19.94 kB / 469.8 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004431/0.1335, allocations: 174.6 kB / 469.9 MB, free: 7.879 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001097/0.1347, allocations: 354 kB / 470.3 MB, free: 7.531 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003676/0.135, allocations: 163.8 kB / 470.4 MB, free: 7.371 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001679/0.1367, allocations: 1.665 MB / 472.1 MB, free: 5.699 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00136/0.1381, allocations: 1.15 MB / 473.3 MB, free: 4.512 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009462/0.1391, allocations: 0.7009 MB / 474 MB, free: 3.809 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001036/0.1401, allocations: 0.8484 MB / 474.8 MB, free: 2.957 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002217/0.1403, allocations: 180 kB / 475 MB, free: 2.781 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002522/0.1406, allocations: 184 kB / 475.2 MB, free: 2.602 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004651/0.1411, allocations: 0.4987 MB / 475.7 MB, free: 2.102 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008533/0.1419, allocations: 0.8051 MB / 476.5 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001899/0.1438, allocations: 2.345 MB / 478.8 MB, free: 14.94 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1439, allocations: 0 / 478.8 MB, free: 14.94 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1439, allocations: 0 / 478.8 MB, free: 14.94 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.616e-05/0.1439, allocations: 0 / 478.8 MB, free: 14.94 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.003314/0.1472, allocations: 1.796 MB / 480.6 MB, free: 13.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.1473, allocations: 8.031 kB / 480.6 MB, free: 13.08 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002689/0.1475, allocations: 151.2 kB / 480.8 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001935/0.1495, allocations: 0.9814 MB / 481.7 MB, free: 11.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.827e-05/0.1496, allocations: 86.59 kB / 481.8 MB, free: 11.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001785/0.1498, allocations: 120.1 kB / 481.9 MB, free: 11.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002705/0.1525, allocations: 1.681 MB / 483.6 MB, free: 9.969 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.444e-05/0.1525, allocations: 0 / 483.6 MB, free: 9.969 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000117/0.1526, allocations: 52 kB / 483.7 MB, free: 9.918 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.27e-05/0.1527, allocations: 46.22 kB / 483.7 MB, free: 9.871 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00274/0.1555, allocations: 1.554 MB / 485.3 MB, free: 8.309 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007617/0.1631, allocations: 4.943 MB / 490.2 MB, free: 3.266 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002683/0.1658, allocations: 2.58 MB / 492.8 MB, free: 412 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001213/0.167, allocations: 0.845 MB / 493.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.894e-05/0.1671, allocations: 12.94 kB / 493.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.793e-05/0.1671, allocations: 39.56 kB / 493.7 MB, free: 15.49 MB / 334.1 MB Notification: Performance of pre-optimization done (n=92): time 2.665e-06/0.1671, allocations: 4 kB / 493.7 MB, free: 15.49 MB / 334.1 MB Notification: Performance of matching and sorting (n=93): time 0.007844/0.175, allocations: 4.082 MB / 497.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000128/0.1751, allocations: 68.41 kB / 497.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00115/0.1763, allocations: 0.8754 MB / 498.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.077e-05/0.1764, allocations: 41.7 kB / 498.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003766/0.1767, allocations: 0.5076 MB / 499.3 MB, free: 9.758 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002298/0.177, allocations: 307.6 kB / 499.6 MB, free: 9.453 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002294/0.1772, allocations: 146.6 kB / 499.7 MB, free: 9.305 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.1774, allocations: 349.8 kB / 0.4883 GB, free: 8.957 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007771/0.1781, allocations: 0.4938 MB / 0.4888 GB, free: 8.461 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007934/0.1789, allocations: 0.5645 MB / 0.4894 GB, free: 7.887 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001526/0.1805, allocations: 1.061 MB / 0.4904 GB, free: 6.812 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1805, allocations: 0 / 0.4904 GB, free: 6.812 MB / 334.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002469/0.183, allocations: 1.565 MB / 0.4919 GB, free: 5.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.183, allocations: 6.031 kB / 0.4919 GB, free: 5.227 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.183, allocations: 0 / 0.4919 GB, free: 5.227 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/0.1841, allocations: 499 kB / 0.4924 GB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005431/0.1846, allocations: 135.8 kB / 0.4925 GB, free: 4.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009363/0.194, allocations: 9.585 MB / 0.5019 GB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006334/0.1946, allocations: 47.98 kB / 0.502 GB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.461e-05/0.1947, allocations: 28.06 kB / 0.502 GB, free: 10.38 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.0008237/0.1955, allocations: 0.5052 MB / 0.5025 GB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001551/0.1957, allocations: 94.86 kB / 0.5026 GB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002435/0.196, allocations: 137.3 kB / 0.5027 GB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.196, allocations: 8 kB / 0.5027 GB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.586e-05/0.196, allocations: 0 / 0.5027 GB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.196, allocations: 7.984 kB / 0.5027 GB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005151/0.2012, allocations: 3.156 MB / 0.5058 GB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.2012, allocations: 8.062 kB / 0.5058 GB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005009/0.2017, allocations: 119.8 kB / 0.5059 GB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001013/0.2027, allocations: 483 kB / 0.5064 GB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-05/0.2028, allocations: 19.98 kB / 0.5064 GB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009347/0.2122, allocations: 9.542 MB / 0.5157 GB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.2122, allocations: 32 / 0.5157 GB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003517/0.2157, allocations: 2.343 MB / 0.518 GB, free: 9.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005902/0.2163, allocations: 288 kB / 0.5183 GB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001109/0.2164, allocations: 23.98 kB / 0.5183 GB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004835/0.2169, allocations: 59.94 kB / 0.5184 GB, free: 8.887 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002157/0.2171, allocations: 84.88 kB / 0.5184 GB, free: 8.805 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.378e-05/0.2172, allocations: 24 kB / 0.5185 GB, free: 8.781 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008678/0.2181, allocations: 0.6356 MB / 0.5191 GB, free: 8.148 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2181, allocations: 0 / 0.5191 GB, free: 8.148 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001157/0.2192, allocations: 312 kB / 0.5194 GB, free: 7.844 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.0001833/0.2194, allocations: 128.2 kB / 0.5195 GB, free: 7.707 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002515/0.222, allocations: 1.792 MB / 0.5212 GB, free: 5.863 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.222, allocations: 0 / 0.5212 GB, free: 5.863 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00158/0.2236, allocations: 1.265 MB / 0.5225 GB, free: 4.547 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001064/0.2246, allocations: 286.8 kB / 0.5228 GB, free: 4.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004225/0.2289, allocations: 2.814 MB / 0.5255 GB, free: 1.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1876/0.4165, allocations: 1.416 MB / 0.5269 GB, free: 67.03 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007548/0.4173, allocations: 184.2 kB / 0.5271 GB, free: 67.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000187/0.4175, allocations: 60.05 kB / 0.5271 GB, free: 67.01 MB / 366.1 MB Notification: Performance of SimCode: time 8.51e-07/0.4175, allocations: 2.625 kB / 0.5271 GB, free: 67.01 MB / 366.1 MB Notification: Performance of Templates: time 0.038/0.4555, allocations: 20.79 MB / 0.5474 GB, free: 60.55 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 cvode -lv LOG_STATS > HanserModelica_HanserModelica.Electrical.Rectifier.pipe 2>&1)