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.007244/0.007244, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.5/1.5, allocations: 222.9 MB / 239.4 MB, free: 4.539 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.002616/0.002616, allocations: 188.4 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03702/0.03702, allocations: 8.803 MB / 348.7 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002305/0.002305, allocations: 79.86 kB / 463.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1238, allocations: 51.55 MB / 0.5029 GB, free: 9.992 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Rectifier): time 0.006547/0.1304, allocations: 4.514 MB / 0.5073 GB, free: 5.453 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002679/0.1332, allocations: 1.153 MB / 0.5084 GB, free: 4.297 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003757/0.1336, allocations: 19.94 kB / 0.5085 GB, free: 4.277 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003943/0.134, allocations: 166.6 kB / 0.5086 GB, free: 4.113 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001081/0.1351, allocations: 354 kB / 0.5089 GB, free: 3.766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003802/0.1355, allocations: 171.8 kB / 0.5091 GB, free: 3.598 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001807/0.1373, allocations: 1.658 MB / 0.5107 GB, free: 1.934 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00134/0.1387, allocations: 1.15 MB / 0.5119 GB, free: 0.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009593/0.1397, allocations: 0.701 MB / 0.5125 GB, free: 48 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001262/0.1409, allocations: 0.8484 MB / 0.5134 GB, free: 15.2 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002642/0.1412, allocations: 180 kB / 0.5135 GB, free: 15.02 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003343/0.1415, allocations: 184 kB / 0.5137 GB, free: 14.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005007/0.1421, allocations: 0.4948 MB / 0.5142 GB, free: 14.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009851/0.143, allocations: 0.809 MB / 0.515 GB, free: 13.53 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002615/0.1457, allocations: 2.355 MB / 0.5173 GB, free: 11.17 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1457, allocations: 3.938 kB / 0.5173 GB, free: 11.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1457, allocations: 0 / 0.5173 GB, free: 11.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.48e-05/0.1458, allocations: 4 kB / 0.5173 GB, free: 11.16 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.003787/0.1495, allocations: 1.842 MB / 0.5191 GB, free: 9.262 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/0.1496, allocations: 12.03 kB / 0.5191 GB, free: 9.25 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002497/0.1499, allocations: 177.4 kB / 0.5193 GB, free: 9.066 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002916/0.1502, allocations: 156 kB / 0.5194 GB, free: 8.914 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001575/0.1517, allocations: 0.9822 MB / 0.5204 GB, free: 7.887 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.348e-05/0.1518, allocations: 82.61 kB / 0.5205 GB, free: 7.805 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001995/0.152, allocations: 115.9 kB / 0.5206 GB, free: 7.691 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002855/0.1549, allocations: 1.689 MB / 0.5222 GB, free: 5.945 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.592e-05/0.1549, allocations: 0 / 0.5222 GB, free: 5.945 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001187/0.1551, allocations: 47.98 kB / 0.5223 GB, free: 5.898 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001258/0.1552, allocations: 50.22 kB / 0.5223 GB, free: 5.848 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002795/0.158, allocations: 1.558 MB / 0.5238 GB, free: 4.281 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2312/0.3893, allocations: 4.951 MB / 0.5287 GB, free: 22.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002147/0.3914, allocations: 2.566 MB / 0.5312 GB, free: 20.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001133/0.3926, allocations: 0.8491 MB / 0.532 GB, free: 20.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.392e-05/0.3927, allocations: 12.94 kB / 0.532 GB, free: 20.95 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.735e-05/0.3927, allocations: 45.56 kB / 0.5321 GB, free: 20.9 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 3.326e-06/0.3927, allocations: 0 / 0.5321 GB, free: 20.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=93): time 0.007744/0.4005, allocations: 4.095 MB / 0.5361 GB, free: 20.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.58e-05/0.4005, allocations: 63.53 kB / 0.5361 GB, free: 20.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001308/0.4019, allocations: 0.8805 MB / 0.537 GB, free: 19.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.833e-05/0.4019, allocations: 42.33 kB / 0.537 GB, free: 19.95 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003866/0.4023, allocations: 0.5074 MB / 0.5375 GB, free: 19.76 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002336/0.4026, allocations: 325.2 kB / 0.5378 GB, free: 19.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002605/0.4028, allocations: 149.9 kB / 0.538 GB, free: 19.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.457e-05/0.403, allocations: 339.8 kB / 0.5383 GB, free: 19.26 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009064/0.4039, allocations: 0.492 MB / 0.5388 GB, free: 19.26 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001057/0.4049, allocations: 0.5684 MB / 0.5393 GB, free: 19.22 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002008/0.407, allocations: 1.062 MB / 0.5404 GB, free: 19.17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.407, allocations: 0 / 0.5404 GB, free: 19.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.003182/0.4102, allocations: 1.571 MB / 0.5419 GB, free: 19.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.785e-05/0.4102, allocations: 7.984 kB / 0.5419 GB, free: 19.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.567e-06/0.4102, allocations: 1.344 kB / 0.5419 GB, free: 19.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001356/0.4116, allocations: 495.7 kB / 0.5424 GB, free: 19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006527/0.4123, allocations: 139.3 kB / 0.5425 GB, free: 19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009364/0.4217, allocations: 9.597 MB / 0.5519 GB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000789/0.4225, allocations: 48.53 kB / 0.5519 GB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.055e-05/0.4226, allocations: 25.3 kB / 0.552 GB, free: 11.57 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.0009915/0.4236, allocations: 0.5051 MB / 0.5525 GB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002367/0.4238, allocations: 103.6 kB / 0.5526 GB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002643/0.4241, allocations: 129.7 kB / 0.5527 GB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.4241, allocations: 9.781 kB / 0.5527 GB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.246e-05/0.4241, allocations: 1.797 kB / 0.5527 GB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.4241, allocations: 3.938 kB / 0.5527 GB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004998/0.4291, allocations: 3.169 MB / 0.5558 GB, free: 9.801 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.4292, allocations: 2.25 kB / 0.5558 GB, free: 9.801 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004988/0.4297, allocations: 119.5 kB / 0.5559 GB, free: 9.789 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009208/0.4306, allocations: 495 kB / 0.5564 GB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.253e-05/0.4307, allocations: 22.92 kB / 0.5564 GB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007134/0.4378, allocations: 9.533 MB / 0.5657 GB, free: 1.234 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.4378, allocations: 1.438 kB / 0.5657 GB, free: 1.234 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003488/0.4413, allocations: 2.351 MB / 0.568 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00067/0.442, allocations: 295.3 kB / 0.5683 GB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001298/0.4422, allocations: 19.92 kB / 0.5683 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005156/0.4427, allocations: 63.56 kB / 0.5684 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002769/0.443, allocations: 84.42 kB / 0.5684 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.176e-05/0.443, allocations: 24.61 kB / 0.5685 GB, free: 15.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009836/0.444, allocations: 0.6324 MB / 0.5691 GB, free: 15.19 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.444, allocations: 0 / 0.5691 GB, free: 15.19 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001373/0.4454, allocations: 305.9 kB / 0.5694 GB, free: 15.16 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.003985/0.4494, allocations: 2.93 MB / 0.5722 GB, free: 13.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003231/0.4527, allocations: 1.796 MB / 0.574 GB, free: 11.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.4527, allocations: 4 kB / 0.574 GB, free: 11.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001973/0.4547, allocations: 1.257 MB / 0.5752 GB, free: 10.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001392/0.4561, allocations: 290.4 kB / 0.5755 GB, free: 10.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01859/0.4747, allocations: 11.2 MB / 0.5864 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001301/0.476, allocations: 1.413 MB / 0.5878 GB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005424/0.4766, allocations: 191.6 kB / 0.588 GB, free: 13.06 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005724/0.4772, allocations: 407.3 kB / 0.5884 GB, free: 12.66 MB / 398.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4772, allocations: 3.391 kB / 0.5884 GB, free: 12.66 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1194/0.5966, allocations: 31.39 MB / 0.619 GB, free: 13.56 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.91/14.5, allocations: 0 / 0.619 GB, free: 13.56 MB / 430.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)