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.00115/0.00115, allocations: 108 kB / 15.6 MB, free: 132 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.508/1.508, allocations: 222.9 MB / 239.2 MB, free: 4.602 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.001615/0.001616, allocations: 188.5 kB / 289.5 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03494/0.03494, allocations: 8.798 MB / 348.5 MB, free: 4.707 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001688/0.001688, allocations: 79.12 kB / 411.1 MB, free: 42 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1018, allocations: 51.57 MB / 462.6 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Rectifier): time 0.006083/0.1079, allocations: 4.495 MB / 467.1 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002476/0.1104, allocations: 1.149 MB / 468.3 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006489/0.1111, allocations: 27.88 kB / 468.3 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005745/0.1117, allocations: 170.6 kB / 468.5 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001326/0.1131, allocations: 362 kB / 468.8 MB, free: 8.137 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004649/0.1136, allocations: 163.8 kB / 469 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001943/0.1155, allocations: 1.646 MB / 470.6 MB, free: 6.324 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001523/0.1171, allocations: 1.158 MB / 471.8 MB, free: 5.129 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001425/0.1185, allocations: 0.7048 MB / 472.5 MB, free: 4.422 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001735/0.1203, allocations: 0.8484 MB / 473.3 MB, free: 3.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003317/0.1206, allocations: 184 kB / 473.5 MB, free: 3.391 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003838/0.121, allocations: 180 kB / 473.7 MB, free: 3.215 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004457/0.1215, allocations: 498.7 kB / 474.2 MB, free: 2.727 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008558/0.1223, allocations: 0.8167 MB / 475 MB, free: 1.906 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001921/0.1243, allocations: 2.321 MB / 477.3 MB, free: 15.58 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.1243, allocations: 4 kB / 477.3 MB, free: 15.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1243, allocations: 3.938 kB / 477.3 MB, free: 15.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.967e-05/0.1243, allocations: 0 / 477.3 MB, free: 15.57 MB / 318.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.003063/0.1274, allocations: 1.794 MB / 479.1 MB, free: 13.72 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.1274, allocations: 8.031 kB / 479.1 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002582/0.1277, allocations: 155.1 kB / 479.3 MB, free: 13.56 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001383/0.1291, allocations: 0.9425 MB / 480.2 MB, free: 12.58 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.436e-05/0.1292, allocations: 86.61 kB / 480.3 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001752/0.1294, allocations: 112.1 kB / 480.4 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002613/0.132, allocations: 1.689 MB / 482.1 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.408e-05/0.132, allocations: 3.938 kB / 482.1 MB, free: 10.63 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001077/0.1321, allocations: 44 kB / 482.2 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.635e-05/0.1322, allocations: 50.22 kB / 482.2 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002528/0.1347, allocations: 1.551 MB / 483.8 MB, free: 8.98 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007204/0.1419, allocations: 5.006 MB / 488.8 MB, free: 3.875 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002415/0.1444, allocations: 2.576 MB / 491.3 MB, free: 1.016 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00119/0.1456, allocations: 0.8527 MB / 492.2 MB, free: 164 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.315e-05/0.1456, allocations: 9 kB / 492.2 MB, free: 156 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.715e-05/0.1457, allocations: 47.55 kB / 492.3 MB, free: 100 kB / 318.1 MB Notification: Performance of pre-optimization done (n=92): time 3.297e-06/0.1457, allocations: 0 / 492.3 MB, free: 100 kB / 318.1 MB Notification: Performance of matching and sorting (n=93): time 0.007629/0.1533, allocations: 4.074 MB / 496.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.289e-05/0.1534, allocations: 60.41 kB / 496.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001198/0.1546, allocations: 0.8754 MB / 497.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.844e-05/0.1547, allocations: 41.7 kB / 497.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004202/0.1551, allocations: 0.5077 MB / 497.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002353/0.1554, allocations: 299.6 kB / 498.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002616/0.1556, allocations: 150.6 kB / 498.2 MB, free: 9.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.1558, allocations: 349.8 kB / 498.6 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007998/0.1566, allocations: 0.4898 MB / 499.1 MB, free: 9.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008316/0.1574, allocations: 0.5684 MB / 499.6 MB, free: 8.512 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001563/0.159, allocations: 1.069 MB / 0.489 GB, free: 7.43 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.159, allocations: 0 / 0.489 GB, free: 7.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002568/0.1616, allocations: 1.565 MB / 0.4905 GB, free: 5.848 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.1616, allocations: 4 kB / 0.4905 GB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.1616, allocations: 4 kB / 0.4905 GB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001053/0.1627, allocations: 495 kB / 0.491 GB, free: 5.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005538/0.1633, allocations: 135.8 kB / 0.4911 GB, free: 5.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008495/0.1718, allocations: 9.605 MB / 0.5005 GB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006134/0.1724, allocations: 43.98 kB / 0.5005 GB, free: 11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.216e-05/0.1725, allocations: 24.12 kB / 0.5006 GB, free: 10.98 MB / 350.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.0006895/0.1732, allocations: 0.513 MB / 0.5011 GB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001476/0.1733, allocations: 94.97 kB / 0.5012 GB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002156/0.1736, allocations: 141.2 kB / 0.5013 GB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.1736, allocations: 8 kB / 0.5013 GB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.1736, allocations: 0 / 0.5013 GB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.1736, allocations: 3.984 kB / 0.5013 GB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00462/0.1782, allocations: 3.173 MB / 0.5044 GB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.1782, allocations: 0 / 0.5044 GB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004897/0.1787, allocations: 123.8 kB / 0.5045 GB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009148/0.1797, allocations: 483.1 kB / 0.505 GB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.814e-05/0.1797, allocations: 27.98 kB / 0.505 GB, free: 6.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008093/0.1878, allocations: 9.535 MB / 0.5143 GB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.1879, allocations: 0 / 0.5143 GB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003393/0.1913, allocations: 2.339 MB / 0.5166 GB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005227/0.1918, allocations: 292 kB / 0.5169 GB, free: 9.555 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001752/0.192, allocations: 19.98 kB / 0.5169 GB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005424/0.1925, allocations: 59.94 kB / 0.517 GB, free: 9.477 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002111/0.1928, allocations: 92.75 kB / 0.517 GB, free: 9.387 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.054e-05/0.1928, allocations: 24 kB / 0.5171 GB, free: 9.363 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009242/0.1938, allocations: 0.6317 MB / 0.5177 GB, free: 8.734 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1938, allocations: 7.938 kB / 0.5177 GB, free: 8.727 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001265/0.195, allocations: 304 kB / 0.518 GB, free: 8.43 MB / 366.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.0001976/0.1952, allocations: 131.2 kB / 0.5181 GB, free: 8.289 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003541/0.1988, allocations: 2.08 MB / 0.5201 GB, free: 6.156 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.1988, allocations: 0 / 0.5201 GB, free: 6.156 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001746/0.2006, allocations: 1.265 MB / 0.5214 GB, free: 4.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001194/0.2018, allocations: 294.5 kB / 0.5217 GB, free: 4.555 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004874/0.2067, allocations: 2.844 MB / 0.5244 GB, free: 1.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001264/0.2079, allocations: 1.416 MB / 0.5258 GB, free: 244 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000495/0.2084, allocations: 187.8 kB / 0.526 GB, free: 52 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1872/0.3957, allocations: 61.2 kB / 0.5261 GB, free: 67.34 MB / 366.1 MB Notification: Performance of SimCode: time 1.573e-06/0.3957, allocations: 0 / 0.5261 GB, free: 67.34 MB / 366.1 MB Notification: Performance of Templates: time 0.03942/0.4351, allocations: 20.77 MB / 0.5463 GB, free: 60.89 MB / 366.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)