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.008942/0.008943, allocations: 105.7 kB / 15.74 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.379/1.379, allocations: 222.9 MB / 239.4 MB, free: 4.508 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.002269/0.002269, allocations: 192.5 kB / 289.7 MB, free: 2.223 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03466/0.03466, allocations: 8.787 MB / 348.6 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 79.88 kB / 463.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1203, allocations: 51.56 MB / 0.5034 GB, free: 9.492 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Rectifier): time 0.00754/0.1279, allocations: 4.5 MB / 0.5078 GB, free: 4.969 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003275/0.1312, allocations: 1.145 MB / 0.5089 GB, free: 3.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009918/0.1322, allocations: 27.81 kB / 0.5089 GB, free: 3.793 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006647/0.1329, allocations: 174.6 kB / 0.5091 GB, free: 3.621 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001636/0.1346, allocations: 358 kB / 0.5094 GB, free: 3.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005672/0.1351, allocations: 163.8 kB / 0.5096 GB, free: 3.109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002224/0.1374, allocations: 1.654 MB / 0.5112 GB, free: 1.449 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001317/0.1387, allocations: 1.15 MB / 0.5123 GB, free: 272 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009957/0.1397, allocations: 0.7049 MB / 0.513 GB, free: 15.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001037/0.1408, allocations: 0.8484 MB / 0.5138 GB, free: 14.7 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002075/0.141, allocations: 184 kB / 0.514 GB, free: 14.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002435/0.1412, allocations: 184 kB / 0.5142 GB, free: 14.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000425/0.1417, allocations: 0.4948 MB / 0.5147 GB, free: 13.85 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000802/0.1425, allocations: 0.8089 MB / 0.5155 GB, free: 13.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001924/0.1444, allocations: 2.344 MB / 0.5178 GB, free: 10.69 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1444, allocations: 0 / 0.5178 GB, free: 10.69 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1444, allocations: 0 / 0.5178 GB, free: 10.69 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.733e-05/0.1445, allocations: 0 / 0.5178 GB, free: 10.69 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.002981/0.1474, allocations: 1.8 MB / 0.5195 GB, free: 8.832 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.1475, allocations: 12.03 kB / 0.5195 GB, free: 8.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000245/0.1478, allocations: 151.2 kB / 0.5197 GB, free: 8.672 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001391/0.1492, allocations: 0.9815 MB / 0.5206 GB, free: 7.645 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.761e-05/0.1492, allocations: 86.59 kB / 0.5207 GB, free: 7.559 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001722/0.1494, allocations: 116 kB / 0.5208 GB, free: 7.445 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002496/0.1519, allocations: 1.689 MB / 0.5225 GB, free: 5.699 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.612e-05/0.1519, allocations: 7.938 kB / 0.5225 GB, free: 5.691 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001092/0.1521, allocations: 40 kB / 0.5225 GB, free: 5.652 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.323e-05/0.1521, allocations: 54.17 kB / 0.5226 GB, free: 5.598 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002354/0.1545, allocations: 1.554 MB / 0.5241 GB, free: 4.035 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2487/0.4032, allocations: 4.939 MB / 0.5289 GB, free: 22.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002123/0.4054, allocations: 2.572 MB / 0.5314 GB, free: 21.01 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001128/0.4065, allocations: 0.847 MB / 0.5322 GB, free: 20.99 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.432e-05/0.4066, allocations: 16.09 kB / 0.5323 GB, free: 20.99 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.149e-05/0.4066, allocations: 41.38 kB / 0.5323 GB, free: 20.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 3.577e-06/0.4066, allocations: 0 / 0.5323 GB, free: 20.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=93): time 0.008078/0.4147, allocations: 4.074 MB / 0.5363 GB, free: 20.22 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.4148, allocations: 66.47 kB / 0.5363 GB, free: 20.15 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001233/0.416, allocations: 0.8731 MB / 0.5372 GB, free: 20.03 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.281e-05/0.4161, allocations: 40.61 kB / 0.5372 GB, free: 20 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000314/0.4164, allocations: 0.5074 MB / 0.5377 GB, free: 19.76 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002119/0.4166, allocations: 310.4 kB / 0.538 GB, free: 19.56 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002628/0.4169, allocations: 152.1 kB / 0.5382 GB, free: 19.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.417, allocations: 337.2 kB / 0.5385 GB, free: 19.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008595/0.4179, allocations: 0.4912 MB / 0.539 GB, free: 19.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000916/0.4188, allocations: 0.5716 MB / 0.5395 GB, free: 19.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001624/0.4204, allocations: 1.061 MB / 0.5406 GB, free: 19.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.4204, allocations: 0 / 0.5406 GB, free: 19.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002628/0.4231, allocations: 1.565 MB / 0.5421 GB, free: 19.01 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.4231, allocations: 5.312 kB / 0.5421 GB, free: 19.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.4231, allocations: 1.094 kB / 0.5421 GB, free: 19.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001108/0.4242, allocations: 499.8 kB / 0.5426 GB, free: 18.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005457/0.4248, allocations: 136.9 kB / 0.5427 GB, free: 18.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008307/0.4331, allocations: 9.589 MB / 0.5521 GB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006994/0.4338, allocations: 54.53 kB / 0.5521 GB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.575e-05/0.4339, allocations: 22.73 kB / 0.5521 GB, free: 11.61 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.0008697/0.4348, allocations: 0.4981 MB / 0.5526 GB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000217/0.435, allocations: 96.83 kB / 0.5527 GB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002334/0.4352, allocations: 127.7 kB / 0.5528 GB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.105e-05/0.4353, allocations: 11.88 kB / 0.5529 GB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.351e-05/0.4353, allocations: 1.922 kB / 0.5529 GB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.4353, allocations: 9.25 kB / 0.5529 GB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004858/0.4402, allocations: 3.168 MB / 0.556 GB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.4402, allocations: 1.031 kB / 0.556 GB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004898/0.4407, allocations: 120.8 kB / 0.5561 GB, free: 9.816 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009117/0.4416, allocations: 484.2 kB / 0.5565 GB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.522e-05/0.4417, allocations: 23.58 kB / 0.5566 GB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006851/0.4485, allocations: 9.531 MB / 0.5659 GB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.4486, allocations: 5.188 kB / 0.5659 GB, free: 1.262 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003212/0.4518, allocations: 2.334 MB / 0.5682 GB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005987/0.4524, allocations: 294.2 kB / 0.5684 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001172/0.4525, allocations: 22.69 kB / 0.5685 GB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000482/0.453, allocations: 61.58 kB / 0.5685 GB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002515/0.4533, allocations: 90.72 kB / 0.5686 GB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.607e-05/0.4533, allocations: 23.84 kB / 0.5686 GB, free: 15.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009116/0.4543, allocations: 0.6327 MB / 0.5692 GB, free: 15.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4543, allocations: 4 kB / 0.5692 GB, free: 15.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001373/0.4556, allocations: 314.2 kB / 0.5695 GB, free: 15.2 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.0002006/0.4559, allocations: 128.9 kB / 0.5697 GB, free: 15.08 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002956/0.4588, allocations: 1.793 MB / 0.5714 GB, free: 13.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.162e-06/0.4588, allocations: 3.656 kB / 0.5714 GB, free: 13.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001607/0.4605, allocations: 1.25 MB / 0.5726 GB, free: 13.01 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/0.4616, allocations: 298.7 kB / 0.5729 GB, free: 12.81 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004836/0.4665, allocations: 2.812 MB / 0.5757 GB, free: 10 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00102/0.4675, allocations: 1.416 MB / 0.5771 GB, free: 8.555 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004209/0.4679, allocations: 186.4 kB / 0.5772 GB, free: 8.375 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001666/0.4681, allocations: 59.44 kB / 0.5773 GB, free: 8.316 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4681, allocations: 4 kB / 0.5773 GB, free: 8.312 MB / 382.1 MB Notification: Performance of Templates: time 0.03282/0.501, allocations: 21.08 MB / 0.5979 GB, free: 3.449 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)