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.001023/0.001023, allocations: 108.6 kB / 15.73 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.262/1.262, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001176/0.001176, allocations: 188.5 kB / 289.7 MB, free: 2.281 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03322/0.03322, allocations: 8.787 MB / 348.6 MB, free: 4.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 80.11 kB / 463.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09118/0.09254, allocations: 51.55 MB / 0.5034 GB, free: 9.559 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Rectifier): time 0.004799/0.09738, allocations: 4.514 MB / 0.5078 GB, free: 5.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001618/0.09901, allocations: 1.149 MB / 0.5089 GB, free: 3.867 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002249/0.09925, allocations: 27.88 kB / 0.5089 GB, free: 3.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000311/0.09957, allocations: 162.7 kB / 0.5091 GB, free: 3.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007392/0.1003, allocations: 354 kB / 0.5094 GB, free: 3.332 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000251/0.1006, allocations: 171.8 kB / 0.5096 GB, free: 3.164 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0014/0.102, allocations: 1.658 MB / 0.5112 GB, free: 1.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001084/0.1031, allocations: 1.146 MB / 0.5123 GB, free: 328 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006284/0.1037, allocations: 0.701 MB / 0.513 GB, free: 15.61 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009315/0.1047, allocations: 0.8484 MB / 0.5138 GB, free: 14.77 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001995/0.1049, allocations: 180 kB / 0.514 GB, free: 14.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002617/0.1052, allocations: 180 kB / 0.5142 GB, free: 14.41 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003701/0.1055, allocations: 0.4987 MB / 0.5147 GB, free: 13.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006861/0.1062, allocations: 0.8168 MB / 0.5155 GB, free: 13.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001768/0.108, allocations: 2.344 MB / 0.5177 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.108, allocations: 0 / 0.5177 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.108, allocations: 0 / 0.5177 GB, free: 10.74 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.844e-05/0.108, allocations: 0 / 0.5177 GB, free: 10.74 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.002752/0.1108, allocations: 1.849 MB / 0.5195 GB, free: 8.836 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.1108, allocations: 8.031 kB / 0.5196 GB, free: 8.828 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002149/0.1111, allocations: 156 kB / 0.5197 GB, free: 8.676 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001251/0.1123, allocations: 0.9822 MB / 0.5207 GB, free: 7.648 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.481e-05/0.1124, allocations: 86.59 kB / 0.5207 GB, free: 7.562 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001509/0.1125, allocations: 124 kB / 0.5209 GB, free: 7.441 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002302/0.1148, allocations: 1.689 MB / 0.5225 GB, free: 5.695 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.317e-05/0.1149, allocations: 0 / 0.5225 GB, free: 5.695 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000107/0.115, allocations: 48 kB / 0.5226 GB, free: 5.648 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.908e-05/0.115, allocations: 50.16 kB / 0.5226 GB, free: 5.598 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002216/0.1173, allocations: 1.558 MB / 0.5241 GB, free: 4.031 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.192/0.3092, allocations: 4.948 MB / 0.529 GB, free: 22.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001797/0.3111, allocations: 2.576 MB / 0.5315 GB, free: 21.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009872/0.3121, allocations: 0.8477 MB / 0.5323 GB, free: 21.06 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.382e-05/0.3121, allocations: 11.41 kB / 0.5323 GB, free: 21.06 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.479e-05/0.3122, allocations: 44.44 kB / 0.5324 GB, free: 21.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 2.915e-06/0.3122, allocations: 0 / 0.5324 GB, free: 21.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=93): time 0.006601/0.3188, allocations: 4.086 MB / 0.5363 GB, free: 20.28 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.724e-05/0.3188, allocations: 69.72 kB / 0.5364 GB, free: 20.21 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001013/0.3198, allocations: 0.8753 MB / 0.5373 GB, free: 20.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.636e-05/0.3199, allocations: 42.77 kB / 0.5373 GB, free: 20.05 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002895/0.3202, allocations: 0.5136 MB / 0.5378 GB, free: 19.87 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001747/0.3204, allocations: 322 kB / 0.5381 GB, free: 19.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002224/0.3206, allocations: 148.6 kB / 0.5383 GB, free: 19.67 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.549e-05/0.3207, allocations: 342 kB / 0.5386 GB, free: 19.37 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007201/0.3214, allocations: 0.4917 MB / 0.5391 GB, free: 19.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007855/0.3222, allocations: 0.5647 MB / 0.5396 GB, free: 19.33 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001453/0.3237, allocations: 1.066 MB / 0.5407 GB, free: 19.28 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3237, allocations: 2.609 kB / 0.5407 GB, free: 19.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002322/0.326, allocations: 1.57 MB / 0.5422 GB, free: 19.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.326, allocations: 5.562 kB / 0.5422 GB, free: 19.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.326, allocations: 1.891 kB / 0.5422 GB, free: 19.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001/0.327, allocations: 496.7 kB / 0.5427 GB, free: 19.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005196/0.3276, allocations: 136.5 kB / 0.5428 GB, free: 19.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007339/0.3349, allocations: 9.598 MB / 0.5522 GB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006041/0.3356, allocations: 45.5 kB / 0.5522 GB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.229e-05/0.3356, allocations: 22.81 kB / 0.5522 GB, free: 11.69 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.0007099/0.3363, allocations: 0.5064 MB / 0.5527 GB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001375/0.3365, allocations: 102.6 kB / 0.5528 GB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002385/0.3367, allocations: 128.9 kB / 0.553 GB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.3367, allocations: 9.094 kB / 0.553 GB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.497e-05/0.3368, allocations: 2.781 kB / 0.553 GB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.361e-05/0.3368, allocations: 5.578 kB / 0.553 GB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004624/0.3414, allocations: 3.167 MB / 0.5561 GB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.3414, allocations: 8.906 kB / 0.5561 GB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004622/0.3419, allocations: 123.7 kB / 0.5562 GB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008401/0.3427, allocations: 484.7 kB / 0.5567 GB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.808e-05/0.3428, allocations: 19.89 kB / 0.5567 GB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006197/0.349, allocations: 9.542 MB / 0.566 GB, free: 1.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.349, allocations: 9.109 kB / 0.566 GB, free: 1.316 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002861/0.3519, allocations: 2.342 MB / 0.5683 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004443/0.3523, allocations: 297.1 kB / 0.5686 GB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.3525, allocations: 16.81 kB / 0.5686 GB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004828/0.353, allocations: 62.12 kB / 0.5686 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001846/0.3531, allocations: 86.72 kB / 0.5687 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-05/0.3532, allocations: 28.7 kB / 0.5688 GB, free: 15.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007624/0.354, allocations: 0.6316 MB / 0.5694 GB, free: 15.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.354, allocations: 0 / 0.5694 GB, free: 15.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001228/0.3552, allocations: 311.2 kB / 0.5697 GB, free: 15.26 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.0001549/0.3554, allocations: 130 kB / 0.5698 GB, free: 15.14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002352/0.3577, allocations: 1.798 MB / 0.5716 GB, free: 13.97 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3578, allocations: 0 / 0.5716 GB, free: 13.97 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001495/0.3593, allocations: 1.259 MB / 0.5728 GB, free: 13.06 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001087/0.3603, allocations: 295 kB / 0.5731 GB, free: 12.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004006/0.3644, allocations: 2.849 MB / 0.5758 GB, free: 10.01 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009581/0.3653, allocations: 1.414 MB / 0.5772 GB, free: 8.57 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004204/0.3658, allocations: 188.9 kB / 0.5774 GB, free: 8.387 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001681/0.3659, allocations: 59.44 kB / 0.5775 GB, free: 8.328 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3659, allocations: 0 / 0.5775 GB, free: 8.328 MB / 382.1 MB Notification: Performance of Templates: time 0.02846/0.3944, allocations: 21.09 MB / 0.5981 GB, free: 3.461 MB / 398.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)