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.008363/0.008363, allocations: 100.6 kB / 15.73 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.474/1.474, allocations: 222.9 MB / 239.4 MB, free: 4.562 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.001265/0.001265, allocations: 184.5 kB / 289.7 MB, free: 2.285 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03611/0.03611, allocations: 8.79 MB / 348.6 MB, free: 4.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00173/0.00173, allocations: 75.88 kB / 463.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1386, allocations: 51.57 MB / 0.5034 GB, free: 9.543 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Rectifier): time 0.007016/0.1457, allocations: 4.512 MB / 0.5078 GB, free: 5.008 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003432/0.1492, allocations: 1.145 MB / 0.5089 GB, free: 3.859 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009054/0.1501, allocations: 23.88 kB / 0.5089 GB, free: 3.836 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007059/0.1509, allocations: 178.6 kB / 0.5091 GB, free: 3.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001751/0.1527, allocations: 362 kB / 0.5094 GB, free: 3.305 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006568/0.1533, allocations: 167.7 kB / 0.5096 GB, free: 3.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002317/0.1557, allocations: 1.654 MB / 0.5112 GB, free: 1.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001598/0.1573, allocations: 1.154 MB / 0.5123 GB, free: 300 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001251/0.1585, allocations: 0.701 MB / 0.513 GB, free: 15.59 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001745/0.1603, allocations: 0.8562 MB / 0.5139 GB, free: 14.73 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004866/0.1608, allocations: 180 kB / 0.514 GB, free: 14.55 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004893/0.1613, allocations: 184 kB / 0.5142 GB, free: 14.38 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004881/0.1618, allocations: 498.7 kB / 0.5147 GB, free: 13.89 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001006/0.1628, allocations: 0.8129 MB / 0.5155 GB, free: 13.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002086/0.1649, allocations: 2.337 MB / 0.5178 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.1649, allocations: 12 kB / 0.5178 GB, free: 10.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1649, allocations: 0 / 0.5178 GB, free: 10.71 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.458e-05/0.165, allocations: 0 / 0.5178 GB, free: 10.71 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.003278/0.1682, allocations: 1.8 MB / 0.5195 GB, free: 8.859 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.1683, allocations: 12.03 kB / 0.5195 GB, free: 8.848 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002587/0.1686, allocations: 151.2 kB / 0.5197 GB, free: 8.699 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001371/0.1699, allocations: 0.966 MB / 0.5206 GB, free: 7.688 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.947e-05/0.17, allocations: 86.61 kB / 0.5207 GB, free: 7.602 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001792/0.1702, allocations: 120 kB / 0.5208 GB, free: 7.484 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002867/0.1731, allocations: 1.693 MB / 0.5225 GB, free: 5.734 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.052e-05/0.1731, allocations: 3.938 kB / 0.5225 GB, free: 5.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001206/0.1733, allocations: 48 kB / 0.5225 GB, free: 5.684 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.142e-05/0.1734, allocations: 54.22 kB / 0.5226 GB, free: 5.629 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002495/0.1759, allocations: 1.547 MB / 0.5241 GB, free: 4.074 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2838/0.4596, allocations: 4.948 MB / 0.5289 GB, free: 23.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00213/0.4618, allocations: 2.566 MB / 0.5314 GB, free: 21.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001115/0.4629, allocations: 0.8498 MB / 0.5323 GB, free: 21.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.983e-05/0.463, allocations: 13.03 kB / 0.5323 GB, free: 21.67 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.384e-05/0.463, allocations: 45.97 kB / 0.5323 GB, free: 21.62 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 2.605e-06/0.463, allocations: 0.875 kB / 0.5323 GB, free: 21.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=93): time 0.008893/0.4719, allocations: 4.071 MB / 0.5363 GB, free: 20.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.966e-05/0.472, allocations: 65.5 kB / 0.5364 GB, free: 20.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001361/0.4734, allocations: 0.8757 MB / 0.5372 GB, free: 20.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.269e-05/0.4735, allocations: 42.67 kB / 0.5373 GB, free: 20.67 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003743/0.4738, allocations: 0.5054 MB / 0.5377 GB, free: 20.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002364/0.4741, allocations: 313 kB / 0.538 GB, free: 20.23 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002621/0.4743, allocations: 145.7 kB / 0.5382 GB, free: 20.21 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.4745, allocations: 338.3 kB / 0.5385 GB, free: 19.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008646/0.4753, allocations: 0.493 MB / 0.539 GB, free: 19.91 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008889/0.4762, allocations: 0.5686 MB / 0.5395 GB, free: 19.87 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001642/0.4779, allocations: 1.065 MB / 0.5406 GB, free: 19.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.4779, allocations: 2.344 kB / 0.5406 GB, free: 19.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002717/0.4806, allocations: 1.562 MB / 0.5421 GB, free: 19.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.4806, allocations: 4.656 kB / 0.5421 GB, free: 19.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.4807, allocations: 2.125 kB / 0.5421 GB, free: 19.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001162/0.4818, allocations: 495.8 kB / 0.5426 GB, free: 19.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005813/0.4824, allocations: 140.1 kB / 0.5427 GB, free: 19.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008548/0.491, allocations: 9.589 MB / 0.5521 GB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005906/0.4916, allocations: 49.38 kB / 0.5521 GB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.959e-05/0.4917, allocations: 23.17 kB / 0.5522 GB, free: 11.88 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.000825/0.4925, allocations: 0.5016 MB / 0.5526 GB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001503/0.4927, allocations: 101.7 kB / 0.5527 GB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002341/0.4929, allocations: 128.5 kB / 0.5529 GB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.154e-05/0.4929, allocations: 9.875 kB / 0.5529 GB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.176e-05/0.4929, allocations: 2.844 kB / 0.5529 GB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.234e-05/0.493, allocations: 4.453 kB / 0.5529 GB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005092/0.498, allocations: 3.164 MB / 0.556 GB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.4981, allocations: 1.062 kB / 0.556 GB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005142/0.4986, allocations: 114.8 kB / 0.5561 GB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009779/0.4996, allocations: 498.1 kB / 0.5566 GB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.433e-05/0.4996, allocations: 23.19 kB / 0.5566 GB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007419/0.5071, allocations: 9.521 MB / 0.5659 GB, free: 1.523 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.5071, allocations: 9.344 kB / 0.5659 GB, free: 1.516 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00302/0.5101, allocations: 2.341 MB / 0.5682 GB, free: 172 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004917/0.5106, allocations: 289.5 kB / 0.5685 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001131/0.5107, allocations: 22.36 kB / 0.5685 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004775/0.5112, allocations: 61.78 kB / 0.5685 GB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00024/0.5115, allocations: 86.47 kB / 0.5686 GB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.599e-05/0.5115, allocations: 20.72 kB / 0.5686 GB, free: 15.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009534/0.5125, allocations: 0.6353 MB / 0.5693 GB, free: 15.48 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5125, allocations: 1.375 kB / 0.5693 GB, free: 15.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001344/0.5139, allocations: 312.1 kB / 0.5696 GB, free: 15.45 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.0001908/0.5141, allocations: 135.1 kB / 0.5697 GB, free: 15.33 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002604/0.5167, allocations: 1.801 MB / 0.5714 GB, free: 14.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5167, allocations: 0 / 0.5714 GB, free: 14.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001564/0.5182, allocations: 1.25 MB / 0.5727 GB, free: 13.26 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001087/0.5193, allocations: 285.3 kB / 0.5729 GB, free: 13.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00441/0.5238, allocations: 2.82 MB / 0.5757 GB, free: 10.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001101/0.5249, allocations: 1.412 MB / 0.5771 GB, free: 8.762 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00042/0.5253, allocations: 191 kB / 0.5772 GB, free: 8.574 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001797/0.5255, allocations: 59.42 kB / 0.5773 GB, free: 8.516 MB / 382.1 MB Notification: Performance of SimCode: time 3.2e-07/0.5255, allocations: 0 / 0.5773 GB, free: 8.516 MB / 382.1 MB Notification: Performance of Templates: time 0.03467/0.5602, allocations: 21.08 MB / 0.5979 GB, free: 3.66 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)