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.001009/0.001009, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.334/1.334, allocations: 222.9 MB / 238.9 MB, free: 4.742 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.001504/0.001504, allocations: 200.4 kB / 289.2 MB, free: 2.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0333/0.0333, allocations: 8.795 MB / 348.1 MB, free: 4.871 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 75.75 kB / 410.5 MB, free: 42.4 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09537/0.09687, allocations: 51.56 MB / 462.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Rectifier): time 0.006728/0.1036, allocations: 4.511 MB / 466.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002674/0.1063, allocations: 1.141 MB / 467.7 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006729/0.107, allocations: 19.94 kB / 467.7 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005671/0.1077, allocations: 139.1 kB / 467.9 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001343/0.109, allocations: 330.4 kB / 468.2 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004901/0.1095, allocations: 155.8 kB / 468.4 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002108/0.1116, allocations: 1.911 MB / 470.3 MB, free: 6.523 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001249/0.1129, allocations: 0.9798 MB / 471.2 MB, free: 5.504 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009349/0.1139, allocations: 0.5798 MB / 471.8 MB, free: 4.922 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001187/0.1151, allocations: 0.8055 MB / 472.6 MB, free: 4.113 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001617/0.1152, allocations: 104 kB / 472.7 MB, free: 4.012 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000226/0.1155, allocations: 104 kB / 472.8 MB, free: 3.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003662/0.1158, allocations: 426.6 kB / 473.3 MB, free: 3.492 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007964/0.1166, allocations: 0.7231 MB / 474 MB, free: 2.766 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001956/0.1186, allocations: 2.239 MB / 476.2 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1186, allocations: 0 / 476.2 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1186, allocations: 4 kB / 476.2 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.76e-05/0.1187, allocations: 0 / 476.2 MB, free: 0.5156 MB / 302.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.003678/0.1223, allocations: 1.796 MB / 478 MB, free: 14.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/0.1224, allocations: 8.031 kB / 478 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002524/0.1227, allocations: 177.4 kB / 478.2 MB, free: 14.47 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002633/0.1229, allocations: 155.1 kB / 478.3 MB, free: 14.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001481/0.1244, allocations: 0.9464 MB / 479.3 MB, free: 13.33 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.559e-05/0.1245, allocations: 90.61 kB / 479.4 MB, free: 13.24 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001598/0.1247, allocations: 115.9 kB / 479.5 MB, free: 13.13 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002724/0.1274, allocations: 1.689 MB / 481.2 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.148e-05/0.1274, allocations: 0 / 481.2 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001053/0.1275, allocations: 48 kB / 481.2 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.258e-05/0.1276, allocations: 46.23 kB / 481.3 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002536/0.1302, allocations: 1.554 MB / 482.8 MB, free: 9.727 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007374/0.1375, allocations: 4.998 MB / 487.8 MB, free: 4.629 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002334/0.1399, allocations: 2.58 MB / 490.4 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001162/0.1411, allocations: 0.8527 MB / 491.3 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.928e-05/0.1412, allocations: 13 kB / 491.3 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.791e-05/0.1412, allocations: 39.56 kB / 491.3 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of pre-optimization done (n=92): time 2.535e-06/0.1412, allocations: 0 / 491.3 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of matching and sorting (n=93): time 0.007431/0.1487, allocations: 4.074 MB / 495.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.946e-05/0.1487, allocations: 60.41 kB / 495.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001133/0.1499, allocations: 0.8831 MB / 496.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.702e-05/0.1499, allocations: 41.7 kB / 496.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00037/0.1503, allocations: 0.4999 MB / 496.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002312/0.1506, allocations: 315.5 kB / 497.2 MB, free: 10.83 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002314/0.1508, allocations: 146.6 kB / 497.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.1509, allocations: 341.9 kB / 497.7 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007577/0.1517, allocations: 0.4899 MB / 498.1 MB, free: 9.848 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008217/0.1525, allocations: 0.5723 MB / 498.7 MB, free: 9.266 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001667/0.1542, allocations: 1.057 MB / 499.8 MB, free: 8.195 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1542, allocations: 7.938 kB / 499.8 MB, free: 8.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002435/0.1567, allocations: 1.565 MB / 0.4896 GB, free: 6.602 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.1567, allocations: 8 kB / 0.4896 GB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.1567, allocations: 0 / 0.4896 GB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001081/0.1578, allocations: 495 kB / 0.4901 GB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005353/0.1583, allocations: 135.8 kB / 0.4902 GB, free: 5.965 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008397/0.1668, allocations: 8.744 MB / 0.4987 GB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006344/0.1674, allocations: 47.97 kB / 0.4988 GB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.666e-05/0.1675, allocations: 28 kB / 0.4988 GB, free: 12.61 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.0007701/0.1682, allocations: 0.502 MB / 0.4993 GB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001391/0.1684, allocations: 98.81 kB / 0.4994 GB, free: 12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002182/0.1686, allocations: 125.3 kB / 0.4995 GB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.1686, allocations: 8 kB / 0.4995 GB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/0.1686, allocations: 7.984 kB / 0.4995 GB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.1687, allocations: 3.984 kB / 0.4995 GB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004732/0.1734, allocations: 3.173 MB / 0.5026 GB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.1734, allocations: 4 kB / 0.5026 GB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005059/0.1739, allocations: 119.8 kB / 0.5028 GB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009751/0.1749, allocations: 483.1 kB / 0.5032 GB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.387e-05/0.175, allocations: 16 kB / 0.5032 GB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007972/0.183, allocations: 8.678 MB / 0.5117 GB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.183, allocations: 4.031 kB / 0.5117 GB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003626/0.1866, allocations: 2.343 MB / 0.514 GB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005095/0.1872, allocations: 280 kB / 0.5143 GB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001144/0.1873, allocations: 27.98 kB / 0.5143 GB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004672/0.1878, allocations: 59.94 kB / 0.5143 GB, free: 12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000236/0.188, allocations: 92.8 kB / 0.5144 GB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.125e-05/0.1881, allocations: 20 kB / 0.5145 GB, free: 11.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008511/0.1889, allocations: 0.6317 MB / 0.5151 GB, free: 11.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1889, allocations: 0 / 0.5151 GB, free: 11.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001261/0.1902, allocations: 312 kB / 0.5154 GB, free: 10.96 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.003662/0.1939, allocations: 2.913 MB / 0.5182 GB, free: 8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002624/0.1965, allocations: 1.78 MB / 0.52 GB, free: 6.164 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/0.1965, allocations: 4 kB / 0.52 GB, free: 6.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001643/0.1982, allocations: 1.254 MB / 0.5212 GB, free: 4.859 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001283/0.1995, allocations: 272.7 kB / 0.5214 GB, free: 4.598 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1869/0.3864, allocations: 12.14 MB / 0.5333 GB, free: 66.56 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001105/0.3875, allocations: 1.412 MB / 0.5347 GB, free: 65.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005837/0.3881, allocations: 189.2 kB / 0.5349 GB, free: 65.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004647/0.3886, allocations: 410.5 kB / 0.5352 GB, free: 65.84 MB / 366.1 MB Notification: Performance of SimCode: time 9.21e-07/0.3886, allocations: 0 / 0.5352 GB, free: 65.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04091/0.4295, allocations: 29.6 MB / 0.5642 GB, free: 45.82 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001355/0.4297, allocations: 214.3 kB / 0.5644 GB, free: 45.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.236/2.665, allocations: 12 kB / 0.5644 GB, free: 45.55 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Electrical_Rectifier_fmu --startTime=0 --stopTime=0.08 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Electrical_Rectifier.fmu > HanserModelica_HanserModelica.Electrical.Rectifier.pipe 2>&1)