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: "" <> buildModelFMU(HanserModelica.Electrical.Rectifier,fileNamePrefix="HanserModelica_HanserModelica_Electrical_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.Rectifier,fileNamePrefix="HanserModelica_HanserModelica_Electrical_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001685/0.001685, allocations: 108 kB / 15.61 MB, free: 152 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.393/1.393, allocations: 222.9 MB / 239.3 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.001513/0.001513, allocations: 196.4 kB / 289.6 MB, free: 2.312 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03493/0.03493, allocations: 8.794 MB / 348.5 MB, free: 4.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002921/0.002921, allocations: 81.16 kB / 411.2 MB, free: 41.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09929/0.1022, allocations: 51.56 MB / 462.8 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Rectifier): time 0.0057/0.108, allocations: 4.492 MB / 467.2 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002036/0.1101, allocations: 1.153 MB / 468.4 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002439/0.1103, allocations: 19.94 kB / 468.4 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000312/0.1107, allocations: 170.6 kB / 468.6 MB, free: 8.434 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007562/0.1114, allocations: 350.1 kB / 468.9 MB, free: 8.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002649/0.1117, allocations: 175.7 kB / 469.1 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001334/0.1131, allocations: 1.642 MB / 470.7 MB, free: 6.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001139/0.1142, allocations: 1.17 MB / 471.9 MB, free: 5.062 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000696/0.1149, allocations: 0.7009 MB / 472.6 MB, free: 4.359 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009476/0.1159, allocations: 0.8484 MB / 473.5 MB, free: 3.508 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000247/0.1161, allocations: 180 kB / 473.6 MB, free: 3.332 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002882/0.1164, allocations: 180 kB / 473.8 MB, free: 3.156 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004045/0.1168, allocations: 0.4909 MB / 474.3 MB, free: 2.664 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008559/0.1177, allocations: 0.8129 MB / 475.1 MB, free: 1.848 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001851/0.1196, allocations: 2.317 MB / 477.4 MB, free: 15.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1196, allocations: 7.984 kB / 477.4 MB, free: 15.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1196, allocations: 0 / 477.4 MB, free: 15.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.855e-05/0.1196, allocations: 3.938 kB / 477.4 MB, free: 15.51 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.002974/0.1226, allocations: 1.799 MB / 479.2 MB, free: 13.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.1227, allocations: 8.031 kB / 479.3 MB, free: 13.65 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002084/0.1229, allocations: 181.4 kB / 479.4 MB, free: 13.46 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002158/0.1231, allocations: 151.2 kB / 479.6 MB, free: 13.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001256/0.1244, allocations: 0.9503 MB / 480.5 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.571e-05/0.1244, allocations: 82.61 kB / 480.6 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001579/0.1246, allocations: 111.9 kB / 480.7 MB, free: 12.13 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002462/0.1271, allocations: 1.693 MB / 482.4 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.093e-05/0.1271, allocations: 0 / 482.4 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001091/0.1272, allocations: 44 kB / 482.5 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.887e-05/0.1273, allocations: 54.22 kB / 482.5 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002441/0.1297, allocations: 1.551 MB / 484.1 MB, free: 8.727 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006805/0.1365, allocations: 4.994 MB / 489 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00246/0.139, allocations: 2.586 MB / 491.6 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001177/0.1402, allocations: 0.8489 MB / 492.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.441e-05/0.1403, allocations: 9 kB / 492.5 MB, free: 15.9 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.97e-05/0.1403, allocations: 47.56 kB / 492.5 MB, free: 15.85 MB / 334.1 MB Notification: Performance of pre-optimization done (n=92): time 3.135e-06/0.1403, allocations: 0 / 492.5 MB, free: 15.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=93): time 0.00764/0.148, allocations: 4.07 MB / 496.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.646e-05/0.1481, allocations: 68.34 kB / 496.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001237/0.1493, allocations: 0.8754 MB / 497.6 MB, free: 10.69 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.245e-05/0.1494, allocations: 41.7 kB / 497.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003932/0.1498, allocations: 0.5038 MB / 498.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002582/0.1501, allocations: 311.5 kB / 498.4 MB, free: 9.824 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002385/0.1503, allocations: 150.5 kB / 498.5 MB, free: 9.672 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.1505, allocations: 349.9 kB / 498.9 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007806/0.1512, allocations: 497.6 kB / 499.4 MB, free: 8.836 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008339/0.1521, allocations: 0.5684 MB / 499.9 MB, free: 8.258 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001588/0.1537, allocations: 1.061 MB / 0.4893 GB, free: 7.184 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.1537, allocations: 4 kB / 0.4893 GB, free: 7.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002644/0.1563, allocations: 1.565 MB / 0.4908 GB, free: 5.598 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.1564, allocations: 4 kB / 0.4908 GB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.1564, allocations: 0 / 0.4908 GB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001135/0.1575, allocations: 495 kB / 0.4913 GB, free: 5.098 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005831/0.1581, allocations: 139.8 kB / 0.4914 GB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009587/0.1677, allocations: 9.601 MB / 0.5008 GB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008215/0.1686, allocations: 43.95 kB / 0.5008 GB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.321e-05/0.1687, allocations: 24 kB / 0.5008 GB, free: 10.73 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.0009113/0.1696, allocations: 0.5099 MB / 0.5013 GB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001681/0.1698, allocations: 98.81 kB / 0.5014 GB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002284/0.17, allocations: 133.3 kB / 0.5016 GB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.17, allocations: 8 kB / 0.5016 GB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.391e-05/0.17, allocations: 4 kB / 0.5016 GB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.1701, allocations: 3.984 kB / 0.5016 GB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005189/0.1753, allocations: 3.177 MB / 0.5047 GB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.1753, allocations: 0 / 0.5047 GB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005669/0.1759, allocations: 115.9 kB / 0.5048 GB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009797/0.1769, allocations: 495 kB / 0.5053 GB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-05/0.1769, allocations: 19.98 kB / 0.5053 GB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009237/0.1862, allocations: 9.531 MB / 0.5146 GB, free: 12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.1862, allocations: 0 / 0.5146 GB, free: 12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003796/0.19, allocations: 2.35 MB / 0.5169 GB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005426/0.1906, allocations: 291.9 kB / 0.5172 GB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001204/0.1907, allocations: 16.09 kB / 0.5172 GB, free: 9.289 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005118/0.1912, allocations: 63.86 kB / 0.5172 GB, free: 9.227 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002364/0.1915, allocations: 92.88 kB / 0.5173 GB, free: 9.137 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-05/0.1915, allocations: 20 kB / 0.5173 GB, free: 9.117 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007909/0.1923, allocations: 0.6317 MB / 0.518 GB, free: 8.488 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1924, allocations: 3.938 kB / 0.518 GB, free: 8.484 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001225/0.1936, allocations: 312 kB / 0.5183 GB, free: 8.18 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.003767/0.1974, allocations: 2.912 MB / 0.5211 GB, free: 5.219 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00332/0.2007, allocations: 2.08 MB / 0.5231 GB, free: 3.086 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.2007, allocations: 0 / 0.5231 GB, free: 3.086 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001683/0.2024, allocations: 1.258 MB / 0.5244 GB, free: 1.777 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/0.2037, allocations: 298.6 kB / 0.5247 GB, free: 1.484 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1825/0.3862, allocations: 11.66 MB / 0.536 GB, free: 66.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001028/0.3873, allocations: 1.418 MB / 0.5374 GB, free: 65.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005036/0.3878, allocations: 188 kB / 0.5376 GB, free: 65.38 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004483/0.3882, allocations: 412.2 kB / 0.538 GB, free: 65.38 MB / 366.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3882, allocations: 0 / 0.538 GB, free: 65.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06208/0.4503, allocations: 30.85 MB / 0.5681 GB, free: 42.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.3, allocations: 7.172 kB / 0.5681 GB, free: 42.65 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Electrical.Rectifier_res.csv --start-time 0 --stop-time 0.08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_Electrical_Rectifier.fmu > HanserModelica_HanserModelica.Electrical.Rectifier.pipe 2>&1)