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.00117/0.001171, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.391/1.391, allocations: 222.9 MB / 240.1 MB, free: 4.367 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.5 kB / 290.4 MB, free: 2.109 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03403/0.03403, allocations: 8.793 MB / 349.3 MB, free: 4.562 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0021/0.0021, allocations: 79.88 kB / 464.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1294, allocations: 51.56 MB / 0.504 GB, free: 9.445 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Rectifier): time 0.006949/0.1364, allocations: 4.513 MB / 0.5085 GB, free: 4.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002912/0.1393, allocations: 1.149 MB / 0.5096 GB, free: 3.758 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008238/0.1402, allocations: 23.88 kB / 0.5096 GB, free: 3.734 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006515/0.1409, allocations: 166.7 kB / 0.5098 GB, free: 3.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001518/0.1425, allocations: 366 kB / 0.5101 GB, free: 3.211 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000593/0.1431, allocations: 159.8 kB / 0.5103 GB, free: 3.055 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002272/0.1454, allocations: 1.662 MB / 0.5119 GB, free: 1.387 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00165/0.147, allocations: 1.146 MB / 0.513 GB, free: 212 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001269/0.1483, allocations: 0.701 MB / 0.5137 GB, free: 15.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00166/0.15, allocations: 0.8523 MB / 0.5145 GB, free: 14.65 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004765/0.1505, allocations: 183.9 kB / 0.5147 GB, free: 14.47 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006044/0.1511, allocations: 180 kB / 0.5149 GB, free: 14.29 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007084/0.1518, allocations: 0.4909 MB / 0.5153 GB, free: 13.8 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001413/0.1532, allocations: 0.8207 MB / 0.5161 GB, free: 12.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002259/0.1555, allocations: 2.341 MB / 0.5184 GB, free: 10.63 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1555, allocations: 0 / 0.5184 GB, free: 10.63 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1556, allocations: 0 / 0.5184 GB, free: 10.63 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.858e-05/0.1556, allocations: 0 / 0.5184 GB, free: 10.63 MB / 366.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.003638/0.1592, allocations: 1.796 MB / 0.5202 GB, free: 8.777 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.1593, allocations: 8.031 kB / 0.5202 GB, free: 8.77 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000267/0.1596, allocations: 151.2 kB / 0.5203 GB, free: 8.621 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001704/0.1613, allocations: 0.9699 MB / 0.5213 GB, free: 7.605 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.73e-05/0.1614, allocations: 90.59 kB / 0.5214 GB, free: 7.516 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001836/0.1616, allocations: 128 kB / 0.5215 GB, free: 7.391 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002716/0.1643, allocations: 1.685 MB / 0.5231 GB, free: 5.648 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.494e-05/0.1643, allocations: 0 / 0.5231 GB, free: 5.648 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001237/0.1644, allocations: 51.94 kB / 0.5232 GB, free: 5.598 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.708e-05/0.1645, allocations: 50.16 kB / 0.5232 GB, free: 5.547 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002528/0.167, allocations: 1.551 MB / 0.5247 GB, free: 3.988 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2498/0.4169, allocations: 4.951 MB / 0.5296 GB, free: 22.64 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002582/0.4195, allocations: 2.573 MB / 0.5321 GB, free: 21.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00133/0.4209, allocations: 0.846 MB / 0.5329 GB, free: 21.08 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.251e-05/0.4209, allocations: 11.78 kB / 0.5329 GB, free: 21.08 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.619e-05/0.421, allocations: 41.64 kB / 0.533 GB, free: 21.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 2.896e-06/0.421, allocations: 0 / 0.533 GB, free: 21.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=93): time 0.008357/0.4294, allocations: 4.078 MB / 0.537 GB, free: 20.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.311e-05/0.4294, allocations: 61.97 kB / 0.537 GB, free: 20.24 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00135/0.4308, allocations: 0.8755 MB / 0.5379 GB, free: 20.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001012/0.4309, allocations: 43.44 kB / 0.5379 GB, free: 20.08 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003229/0.4313, allocations: 0.5057 MB / 0.5384 GB, free: 19.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000244/0.4315, allocations: 309.2 kB / 0.5387 GB, free: 19.65 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002655/0.4318, allocations: 146.3 kB / 0.5388 GB, free: 19.63 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.733e-05/0.4319, allocations: 341.5 kB / 0.5392 GB, free: 19.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008652/0.4328, allocations: 0.4919 MB / 0.5396 GB, free: 19.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009507/0.4337, allocations: 0.566 MB / 0.5402 GB, free: 19.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00176/0.4355, allocations: 1.066 MB / 0.5412 GB, free: 19.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.4355, allocations: 0.5469 kB / 0.5412 GB, free: 19.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002859/0.4384, allocations: 1.561 MB / 0.5428 GB, free: 19.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/0.4384, allocations: 5.219 kB / 0.5428 GB, free: 19.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.4384, allocations: 5.516 kB / 0.5428 GB, free: 19.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001173/0.4396, allocations: 494.2 kB / 0.5432 GB, free: 19.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000573/0.4402, allocations: 136.6 kB / 0.5434 GB, free: 19.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008472/0.4487, allocations: 9.589 MB / 0.5527 GB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000719/0.4494, allocations: 45.91 kB / 0.5528 GB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.676e-05/0.4495, allocations: 27.38 kB / 0.5528 GB, free: 11.7 MB / 366.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.0008896/0.4504, allocations: 0.5037 MB / 0.5533 GB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001724/0.4506, allocations: 98.33 kB / 0.5534 GB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002269/0.4508, allocations: 128.1 kB / 0.5535 GB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.4508, allocations: 10.42 kB / 0.5535 GB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.886e-05/0.4509, allocations: 1.25 kB / 0.5535 GB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.251e-05/0.4509, allocations: 4.828 kB / 0.5535 GB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005136/0.456, allocations: 3.166 MB / 0.5566 GB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.4561, allocations: 12.75 kB / 0.5566 GB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005141/0.4566, allocations: 115.5 kB / 0.5567 GB, free: 9.914 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000938/0.4575, allocations: 492.2 kB / 0.5572 GB, free: 9.738 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.44e-05/0.4576, allocations: 22.23 kB / 0.5572 GB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007213/0.4648, allocations: 9.522 MB / 0.5665 GB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.4649, allocations: 6.75 kB / 0.5665 GB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003155/0.468, allocations: 2.343 MB / 0.5688 GB, free: 52 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007085/0.4688, allocations: 287.9 kB / 0.5691 GB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001128/0.4689, allocations: 18.59 kB / 0.5691 GB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000481/0.4694, allocations: 61.31 kB / 0.5692 GB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002495/0.4696, allocations: 94.23 kB / 0.5693 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.392e-05/0.4697, allocations: 21.28 kB / 0.5693 GB, free: 15.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008449/0.4705, allocations: 0.6364 MB / 0.5699 GB, free: 15.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4706, allocations: 0 / 0.5699 GB, free: 15.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001332/0.4719, allocations: 305.8 kB / 0.5702 GB, free: 15.34 MB / 382.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.0001851/0.4721, allocations: 129.8 kB / 0.5703 GB, free: 15.22 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002656/0.4748, allocations: 1.796 MB / 0.5721 GB, free: 14.05 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.4748, allocations: 0 / 0.5721 GB, free: 14.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00162/0.4764, allocations: 1.252 MB / 0.5733 GB, free: 13.15 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.4776, allocations: 293.8 kB / 0.5736 GB, free: 13.01 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004661/0.4823, allocations: 2.819 MB / 0.5763 GB, free: 10.24 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001032/0.4833, allocations: 1.389 MB / 0.5777 GB, free: 8.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002632/0.4836, allocations: 63.44 kB / 0.5778 GB, free: 8.758 MB / 382.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4836, allocations: 0 / 0.5778 GB, free: 8.758 MB / 382.1 MB Notification: Performance of Templates: time 0.04687/0.5305, allocations: 41.29 MB / 0.6181 GB, free: 15.52 MB / 430.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 -lv LOG_STATS > HanserModelica_HanserModelica.Electrical.Rectifier.pipe 2>&1)