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.0008689/0.0008689, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.458/1.458, allocations: 223.3 MB / 239.4 MB, free: 5.496 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.001138/0.001138, allocations: 180.5 kB / 290.6 MB, free: 2.168 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03512/0.03512, allocations: 8.793 MB / 350.5 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003886/0.0003886, allocations: 9.156 kB / 413.8 MB, free: 42.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0997/0.1001, allocations: 52.56 MB / 466.4 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Rectifier): time 0.004585/0.1047, allocations: 4.094 MB / 470.5 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002396/0.1071, allocations: 1.142 MB / 471.6 MB, free: 7.898 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005906/0.1078, allocations: 15.94 kB / 471.6 MB, free: 7.883 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004268/0.1082, allocations: 143.1 kB / 471.8 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00107/0.1093, allocations: 338.3 kB / 472.1 MB, free: 7.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003635/0.1097, allocations: 143.8 kB / 472.2 MB, free: 7.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001854/0.1115, allocations: 1.911 MB / 474.1 MB, free: 5.352 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001136/0.1127, allocations: 0.9678 MB / 475.1 MB, free: 4.344 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007736/0.1135, allocations: 0.5135 MB / 475.6 MB, free: 3.828 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001253/0.1147, allocations: 0.7234 MB / 476.4 MB, free: 3.102 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002848/0.115, allocations: 76 kB / 476.4 MB, free: 3.027 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000367/0.1154, allocations: 76 kB / 476.5 MB, free: 2.953 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003595/0.1158, allocations: 370.7 kB / 476.9 MB, free: 2.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007085/0.1165, allocations: 0.6973 MB / 477.6 MB, free: 1.883 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001953/0.1185, allocations: 2.184 MB / 479.7 MB, free: 15.69 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.1185, allocations: 0 / 479.7 MB, free: 15.69 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1185, allocations: 0 / 479.7 MB, free: 15.69 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.974e-05/0.1185, allocations: 0 / 479.7 MB, free: 15.69 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.002792/0.1213, allocations: 1.574 MB / 481.3 MB, free: 14.06 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.1214, allocations: 8.031 kB / 481.3 MB, free: 14.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002199/0.1216, allocations: 155.1 kB / 481.5 MB, free: 13.9 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001179/0.1228, allocations: 0.9465 MB / 482.4 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.019e-05/0.1229, allocations: 86.61 kB / 482.5 MB, free: 12.83 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001706/0.123, allocations: 116.1 kB / 482.6 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002474/0.1255, allocations: 1.697 MB / 484.3 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.459e-05/0.1256, allocations: 11.86 kB / 484.3 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001095/0.1257, allocations: 51.98 kB / 484.4 MB, free: 10.9 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.948e-05/0.1257, allocations: 46.22 kB / 484.4 MB, free: 10.85 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002359/0.1281, allocations: 1.574 MB / 486 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006335/0.1344, allocations: 5.045 MB / 491 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002148/0.1366, allocations: 2.578 MB / 493.6 MB, free: 1.266 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001099/0.1377, allocations: 0.8684 MB / 494.5 MB, free: 404 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.19e-05/0.1378, allocations: 12.98 kB / 494.5 MB, free: 392 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.794e-05/0.1378, allocations: 39.56 kB / 494.5 MB, free: 344 kB / 318.1 MB Notification: Performance of pre-optimization done (n=92): time 2.174e-06/0.1378, allocations: 4 kB / 494.5 MB, free: 340 kB / 318.1 MB Notification: Performance of matching and sorting (n=93): time 0.006906/0.1447, allocations: 4.152 MB / 498.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.518e-05/0.1448, allocations: 60.41 kB / 498.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00095/0.1457, allocations: 0.8716 MB / 499.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.619e-05/0.1458, allocations: 41.7 kB / 499.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003084/0.1461, allocations: 0.5038 MB / 0.4885 GB, free: 10.55 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002015/0.1463, allocations: 307.3 kB / 0.4887 GB, free: 10.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001064/0.1464, allocations: 77.67 kB / 0.4888 GB, free: 10.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.1465, allocations: 345.9 kB / 0.4891 GB, free: 9.82 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007891/0.1473, allocations: 0.5054 MB / 0.4896 GB, free: 9.312 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008085/0.1482, allocations: 0.5801 MB / 0.4902 GB, free: 8.723 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001566/0.1497, allocations: 1.085 MB / 0.4913 GB, free: 7.629 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1497, allocations: 3.938 kB / 0.4913 GB, free: 7.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002408/0.1522, allocations: 1.589 MB / 0.4928 GB, free: 6.012 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.1522, allocations: 8 kB / 0.4928 GB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.1522, allocations: 0 / 0.4928 GB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001008/0.1532, allocations: 0.4911 MB / 0.4933 GB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005361/0.1538, allocations: 139.9 kB / 0.4934 GB, free: 5.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008012/0.1618, allocations: 8.748 MB / 0.502 GB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004727/0.1623, allocations: 56 kB / 0.502 GB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.662e-05/0.1623, allocations: 24 kB / 0.5021 GB, free: 12 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.0006799/0.163, allocations: 0.4897 MB / 0.5025 GB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001399/0.1632, allocations: 94.88 kB / 0.5026 GB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002784/0.1635, allocations: 141.3 kB / 0.5028 GB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.647e-06/0.1635, allocations: 15.98 kB / 0.5028 GB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.1635, allocations: 0 / 0.5028 GB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.1635, allocations: 7.984 kB / 0.5028 GB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005224/0.1687, allocations: 3.22 MB / 0.5059 GB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.1688, allocations: 4 kB / 0.5059 GB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004914/0.1693, allocations: 120 kB / 0.5061 GB, free: 7.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009318/0.1702, allocations: 495.2 kB / 0.5065 GB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.127e-05/0.1703, allocations: 23.92 kB / 0.5065 GB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007688/0.178, allocations: 8.674 MB / 0.515 GB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.178, allocations: 0 / 0.515 GB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003682/0.1817, allocations: 2.378 MB / 0.5173 GB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004677/0.1822, allocations: 291.9 kB / 0.5176 GB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001531/0.1823, allocations: 16 kB / 0.5176 GB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000546/0.1829, allocations: 67.94 kB / 0.5177 GB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000204/0.1831, allocations: 92.86 kB / 0.5178 GB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.955e-05/0.1831, allocations: 20 kB / 0.5178 GB, free: 11.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000831/0.184, allocations: 0.6395 MB / 0.5184 GB, free: 10.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.184, allocations: 0 / 0.5184 GB, free: 10.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001221/0.1852, allocations: 308 kB / 0.5187 GB, free: 10.24 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.0001821/0.1854, allocations: 125.6 kB / 0.5188 GB, free: 10.11 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00264/0.1881, allocations: 1.807 MB / 0.5206 GB, free: 8.246 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.1881, allocations: 4.125 kB / 0.5206 GB, free: 8.242 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001596/0.1897, allocations: 1.269 MB / 0.5219 GB, free: 6.926 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00126/0.191, allocations: 266.9 kB / 0.5221 GB, free: 6.664 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004836/0.1958, allocations: 3.442 MB / 0.5255 GB, free: 3.195 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00114/0.197, allocations: 1.408 MB / 0.5268 GB, free: 1.762 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004827/0.1974, allocations: 187.8 kB / 0.527 GB, free: 1.574 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001848/0.1976, allocations: 63.42 kB / 0.5271 GB, free: 1.512 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1976, allocations: 0 / 0.5271 GB, free: 1.512 MB / 366.1 MB Notification: Performance of Templates: time 0.2576/0.4553, allocations: 19.3 MB / 0.5459 GB, free: 61.07 MB / 366.1 MB make -j1 -f HanserModelica_HanserModelica.Electrical.Rectifier.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: