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.006297/0.006297, allocations: 102.9 kB / 15.74 MB, free: 6.496 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.411/1.411, allocations: 222.9 MB / 239.4 MB, free: 4.531 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.002129/0.002129, allocations: 188.5 kB / 289.7 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03406/0.03406, allocations: 8.798 MB / 348.7 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001868, allocations: 75.88 kB / 463.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.118, allocations: 51.56 MB / 0.5029 GB, free: 10.03 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Rectifier): time 0.00591/0.124, allocations: 4.501 MB / 0.5073 GB, free: 5.504 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002485/0.1265, allocations: 1.145 MB / 0.5084 GB, free: 4.355 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000639/0.1271, allocations: 23.88 kB / 0.5084 GB, free: 4.332 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005158/0.1277, allocations: 178.7 kB / 0.5086 GB, free: 4.156 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001243/0.1289, allocations: 370 kB / 0.509 GB, free: 3.793 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004765/0.1294, allocations: 171.8 kB / 0.5091 GB, free: 3.625 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002143/0.1316, allocations: 1.658 MB / 0.5107 GB, free: 1.961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001748/0.1333, allocations: 1.142 MB / 0.5119 GB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001112/0.1345, allocations: 0.701 MB / 0.5125 GB, free: 84 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001515/0.136, allocations: 0.8562 MB / 0.5134 GB, free: 15.22 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000407/0.1364, allocations: 180 kB / 0.5136 GB, free: 15.05 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006108/0.137, allocations: 184 kB / 0.5137 GB, free: 14.87 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006946/0.1377, allocations: 0.4948 MB / 0.5142 GB, free: 14.37 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001567/0.1393, allocations: 0.8129 MB / 0.515 GB, free: 13.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002646/0.142, allocations: 2.351 MB / 0.5173 GB, free: 11.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.142, allocations: 0 / 0.5173 GB, free: 11.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.142, allocations: 0 / 0.5173 GB, free: 11.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.125e-05/0.1421, allocations: 0 / 0.5173 GB, free: 11.2 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.004702/0.1468, allocations: 1.846 MB / 0.5191 GB, free: 9.293 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.486e-05/0.1469, allocations: 16.03 kB / 0.5191 GB, free: 9.277 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002851/0.1472, allocations: 173.4 kB / 0.5193 GB, free: 9.098 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000344/0.1475, allocations: 163.9 kB / 0.5194 GB, free: 8.938 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001782/0.1493, allocations: 0.9744 MB / 0.5204 GB, free: 7.918 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.817e-05/0.1494, allocations: 82.61 kB / 0.5205 GB, free: 7.836 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001697/0.1496, allocations: 119.8 kB / 0.5206 GB, free: 7.719 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002567/0.1521, allocations: 1.689 MB / 0.5222 GB, free: 5.973 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.58e-05/0.1522, allocations: 0 / 0.5222 GB, free: 5.973 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001121/0.1523, allocations: 44 kB / 0.5223 GB, free: 5.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.74e-05/0.1524, allocations: 50.22 kB / 0.5223 GB, free: 5.879 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002475/0.1548, allocations: 1.558 MB / 0.5238 GB, free: 4.312 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2145/0.3693, allocations: 4.952 MB / 0.5287 GB, free: 22.51 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002489/0.3719, allocations: 2.568 MB / 0.5312 GB, free: 20.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001293/0.3732, allocations: 0.8521 MB / 0.532 GB, free: 20.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.189e-05/0.3732, allocations: 9.312 kB / 0.532 GB, free: 20.95 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.222e-05/0.3733, allocations: 46.72 kB / 0.5321 GB, free: 20.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 4.509e-06/0.3733, allocations: 1.5 kB / 0.5321 GB, free: 20.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=93): time 0.008694/0.382, allocations: 4.091 MB / 0.5361 GB, free: 20.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.08e-05/0.3821, allocations: 62.61 kB / 0.5361 GB, free: 20.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001332/0.3834, allocations: 0.8808 MB / 0.537 GB, free: 19.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.214e-05/0.3835, allocations: 44.2 kB / 0.537 GB, free: 19.95 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003972/0.3839, allocations: 0.5093 MB / 0.5375 GB, free: 19.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002149/0.3841, allocations: 330 kB / 0.5378 GB, free: 19.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002289/0.3844, allocations: 151 kB / 0.538 GB, free: 19.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.336e-05/0.3845, allocations: 336.9 kB / 0.5383 GB, free: 19.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008356/0.3853, allocations: 0.4926 MB / 0.5388 GB, free: 19.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008773/0.3862, allocations: 0.567 MB / 0.5393 GB, free: 19.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00167/0.3879, allocations: 1.067 MB / 0.5404 GB, free: 19.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.3879, allocations: 1.641 kB / 0.5404 GB, free: 19.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002725/0.3906, allocations: 1.567 MB / 0.5419 GB, free: 19.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.3907, allocations: 6.438 kB / 0.5419 GB, free: 19.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.3907, allocations: 1.25 kB / 0.5419 GB, free: 19.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001077/0.3918, allocations: 495.8 kB / 0.5424 GB, free: 19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005603/0.3923, allocations: 138.6 kB / 0.5425 GB, free: 19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008386/0.4007, allocations: 9.595 MB / 0.5519 GB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008704/0.4016, allocations: 47.86 kB / 0.5519 GB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.399e-05/0.4017, allocations: 30.12 kB / 0.552 GB, free: 11.58 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.0009127/0.4026, allocations: 0.5005 MB / 0.5525 GB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001876/0.4028, allocations: 107.8 kB / 0.5526 GB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002031/0.403, allocations: 128.8 kB / 0.5527 GB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.403, allocations: 9.25 kB / 0.5527 GB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.76e-05/0.4031, allocations: 2.188 kB / 0.5527 GB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.4031, allocations: 4.969 kB / 0.5527 GB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004941/0.408, allocations: 3.169 MB / 0.5558 GB, free: 9.809 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.4081, allocations: 1.281 kB / 0.5558 GB, free: 9.809 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005214/0.4086, allocations: 115.7 kB / 0.5559 GB, free: 9.801 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008863/0.4095, allocations: 494 kB / 0.5564 GB, free: 9.621 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.24e-05/0.4096, allocations: 24.17 kB / 0.5564 GB, free: 9.605 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006868/0.4164, allocations: 9.53 MB / 0.5657 GB, free: 1.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.4165, allocations: 1.219 kB / 0.5657 GB, free: 1.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003215/0.4197, allocations: 2.353 MB / 0.568 GB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006157/0.4203, allocations: 292.5 kB / 0.5683 GB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001192/0.4205, allocations: 19.92 kB / 0.5683 GB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004976/0.421, allocations: 60 kB / 0.5684 GB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002305/0.4212, allocations: 88.25 kB / 0.5685 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.038e-05/0.4213, allocations: 28.52 kB / 0.5685 GB, free: 15.58 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008133/0.4221, allocations: 0.6294 MB / 0.5691 GB, free: 15.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4221, allocations: 0 / 0.5691 GB, free: 15.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001304/0.4234, allocations: 313.8 kB / 0.5694 GB, free: 15.2 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.003687/0.4271, allocations: 2.924 MB / 0.5723 GB, free: 13.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003193/0.4303, allocations: 1.793 MB / 0.574 GB, free: 11.63 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.775e-06/0.4303, allocations: 4 kB / 0.574 GB, free: 11.63 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001992/0.4323, allocations: 1.254 MB / 0.5752 GB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001445/0.4338, allocations: 304.2 kB / 0.5755 GB, free: 10.04 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01686/0.4507, allocations: 11.19 MB / 0.5865 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001152/0.4519, allocations: 1.414 MB / 0.5878 GB, free: 13.28 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005144/0.4524, allocations: 188 kB / 0.588 GB, free: 13.09 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005285/0.4529, allocations: 415.3 kB / 0.5884 GB, free: 12.68 MB / 398.1 MB Notification: Performance of SimCode: time 1.854e-06/0.4529, allocations: 0 / 0.5884 GB, free: 12.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07335/0.5263, allocations: 31.39 MB / 0.6191 GB, free: 13.58 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.39/13.92, allocations: 0 / 0.6191 GB, free: 13.58 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)