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.001124/0.001124, allocations: 109.8 kB / 16.41 MB, free: 6.035 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.35/1.35, allocations: 222.9 MB / 240.1 MB, free: 4.383 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.001242/0.001242, allocations: 184.5 kB / 290.4 MB, free: 2.113 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03533/0.03533, allocations: 8.8 MB / 349.3 MB, free: 4.594 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 79.88 kB / 464.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09264/0.09416, allocations: 51.57 MB / 0.504 GB, free: 9.488 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Rectifier): time 0.005124/0.09932, allocations: 4.513 MB / 0.5085 GB, free: 4.953 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002109/0.1015, allocations: 1.145 MB / 0.5096 GB, free: 3.805 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003204/0.1018, allocations: 23.88 kB / 0.5096 GB, free: 3.781 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003412/0.1022, allocations: 170.7 kB / 0.5098 GB, free: 3.613 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008603/0.103, allocations: 362 kB / 0.5101 GB, free: 3.258 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003047/0.1034, allocations: 163.8 kB / 0.5103 GB, free: 3.098 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00147/0.1048, allocations: 1.658 MB / 0.5119 GB, free: 1.434 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001184/0.106, allocations: 1.15 MB / 0.513 GB, free: 256 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008121/0.1069, allocations: 0.7011 MB / 0.5137 GB, free: 15.54 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001037/0.1079, allocations: 0.8523 MB / 0.5145 GB, free: 14.69 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002316/0.1082, allocations: 184 kB / 0.5147 GB, free: 14.51 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002838/0.1084, allocations: 180 kB / 0.5149 GB, free: 14.33 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000376/0.1088, allocations: 498.7 kB / 0.5153 GB, free: 13.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007628/0.1096, allocations: 0.8206 MB / 0.5161 GB, free: 13.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001811/0.1114, allocations: 2.341 MB / 0.5184 GB, free: 10.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.1114, allocations: 0 / 0.5184 GB, free: 10.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1114, allocations: 0 / 0.5184 GB, free: 10.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.582e-05/0.1115, allocations: 4 kB / 0.5184 GB, free: 10.67 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.003102/0.1146, allocations: 1.795 MB / 0.5202 GB, free: 8.824 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.1146, allocations: 8.031 kB / 0.5202 GB, free: 8.816 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002455/0.1149, allocations: 159.1 kB / 0.5203 GB, free: 8.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001282/0.1162, allocations: 0.9738 MB / 0.5213 GB, free: 7.641 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.129e-05/0.1163, allocations: 86.61 kB / 0.5214 GB, free: 7.555 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001625/0.1164, allocations: 124 kB / 0.5215 GB, free: 7.434 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002582/0.119, allocations: 1.685 MB / 0.5231 GB, free: 5.691 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.205e-05/0.1191, allocations: 0 / 0.5231 GB, free: 5.691 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001157/0.1192, allocations: 48 kB / 0.5232 GB, free: 5.645 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.972e-05/0.1192, allocations: 46.17 kB / 0.5232 GB, free: 5.598 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002453/0.1217, allocations: 1.562 MB / 0.5248 GB, free: 4.027 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2135/0.3352, allocations: 4.94 MB / 0.5296 GB, free: 23.1 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001947/0.3372, allocations: 2.568 MB / 0.5321 GB, free: 21.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/0.3382, allocations: 0.8504 MB / 0.5329 GB, free: 21.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.311e-05/0.3383, allocations: 13.42 kB / 0.5329 GB, free: 21.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.517e-05/0.3383, allocations: 45.56 kB / 0.533 GB, free: 21.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 3.075e-06/0.3383, allocations: 2.625 kB / 0.533 GB, free: 21.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=93): time 0.007123/0.3454, allocations: 4.072 MB / 0.537 GB, free: 20.76 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.319e-05/0.3455, allocations: 65.06 kB / 0.537 GB, free: 20.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001071/0.3466, allocations: 0.8735 MB / 0.5379 GB, free: 20.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.917e-05/0.3466, allocations: 42.8 kB / 0.5379 GB, free: 20.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002908/0.3469, allocations: 0.5036 MB / 0.5384 GB, free: 20.3 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001783/0.3471, allocations: 313 kB / 0.5387 GB, free: 20.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002145/0.3473, allocations: 150.7 kB / 0.5388 GB, free: 20.08 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.143e-05/0.3474, allocations: 338.5 kB / 0.5392 GB, free: 19.78 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007642/0.3482, allocations: 499 kB / 0.5396 GB, free: 19.78 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007739/0.349, allocations: 0.5706 MB / 0.5402 GB, free: 19.74 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001535/0.3505, allocations: 1.063 MB / 0.5412 GB, free: 19.69 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3505, allocations: 4.297 kB / 0.5412 GB, free: 19.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002488/0.353, allocations: 1.562 MB / 0.5428 GB, free: 19.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.353, allocations: 6.031 kB / 0.5428 GB, free: 19.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.3531, allocations: 1.156 kB / 0.5428 GB, free: 19.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001094/0.3542, allocations: 0.4888 MB / 0.5433 GB, free: 19.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005619/0.3547, allocations: 136.7 kB / 0.5434 GB, free: 19.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007708/0.3625, allocations: 9.591 MB / 0.5527 GB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006279/0.3631, allocations: 46.62 kB / 0.5528 GB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.344e-05/0.3632, allocations: 26.23 kB / 0.5528 GB, free: 11.82 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.0007172/0.3639, allocations: 0.5079 MB / 0.5533 GB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001415/0.364, allocations: 93.81 kB / 0.5534 GB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002206/0.3643, allocations: 129 kB / 0.5535 GB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.3643, allocations: 9.75 kB / 0.5535 GB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.669e-05/0.3643, allocations: 2.188 kB / 0.5535 GB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.3643, allocations: 4.359 kB / 0.5535 GB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00468/0.369, allocations: 3.163 MB / 0.5566 GB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.369, allocations: 1.094 kB / 0.5566 GB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005595/0.3696, allocations: 122.5 kB / 0.5567 GB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001041/0.3707, allocations: 493 kB / 0.5572 GB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.299e-05/0.3707, allocations: 22.45 kB / 0.5572 GB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00671/0.3774, allocations: 9.521 MB / 0.5665 GB, free: 1.457 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.3775, allocations: 5.531 kB / 0.5665 GB, free: 1.453 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003053/0.3805, allocations: 2.337 MB / 0.5688 GB, free: 112 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005156/0.3811, allocations: 291.4 kB / 0.5691 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001231/0.3812, allocations: 25.92 kB / 0.5691 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005127/0.3817, allocations: 61.53 kB / 0.5692 GB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002222/0.3819, allocations: 86.22 kB / 0.5693 GB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-05/0.382, allocations: 28.48 kB / 0.5693 GB, free: 15.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007985/0.3828, allocations: 0.6288 MB / 0.5699 GB, free: 15.42 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3828, allocations: 0 / 0.5699 GB, free: 15.42 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001247/0.3841, allocations: 306.1 kB / 0.5702 GB, free: 15.39 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.0001777/0.3843, allocations: 135.7 kB / 0.5703 GB, free: 15.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002557/0.3868, allocations: 1.797 MB / 0.5721 GB, free: 14.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3868, allocations: 0 / 0.5721 GB, free: 14.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001576/0.3884, allocations: 1.254 MB / 0.5733 GB, free: 13.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001213/0.3896, allocations: 296.1 kB / 0.5736 GB, free: 12.99 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004118/0.3938, allocations: 2.819 MB / 0.5763 GB, free: 10.17 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009005/0.3947, allocations: 1.392 MB / 0.5777 GB, free: 8.746 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002171/0.3949, allocations: 59.44 kB / 0.5778 GB, free: 8.688 MB / 382.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3949, allocations: 0 / 0.5778 GB, free: 8.688 MB / 382.1 MB Notification: Performance of Templates: time 0.04286/0.4378, allocations: 41.29 MB / 0.6181 GB, free: 15.44 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)