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.001712/0.001712, allocations: 108 kB / 15.6 MB, free: 132 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.386/1.386, allocations: 222.9 MB / 239.3 MB, free: 4.637 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.001588/0.001588, allocations: 195.6 kB / 289.6 MB, free: 2.363 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03498/0.03498, allocations: 8.797 MB / 348.5 MB, free: 4.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001586/0.001586, allocations: 85.75 kB / 411.2 MB, free: 42.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08105/0.08265, allocations: 51.56 MB / 462.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Rectifier): time 0.005707/0.0884, allocations: 4.495 MB / 467.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002087/0.09051, allocations: 1.153 MB / 468.4 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002856/0.09082, allocations: 23.94 kB / 468.4 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003443/0.09119, allocations: 170.6 kB / 468.6 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000918/0.09211, allocations: 350 kB / 468.9 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002934/0.09242, allocations: 175.7 kB / 469.1 MB, free: 7.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001406/0.09384, allocations: 1.646 MB / 470.7 MB, free: 6.258 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001168/0.09502, allocations: 1.158 MB / 471.9 MB, free: 5.062 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000709/0.09574, allocations: 0.7048 MB / 472.6 MB, free: 4.355 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001029/0.09678, allocations: 0.8484 MB / 473.5 MB, free: 3.504 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002392/0.09703, allocations: 184 kB / 473.6 MB, free: 3.324 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002764/0.09731, allocations: 180 kB / 473.8 MB, free: 3.148 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000405/0.09772, allocations: 0.4909 MB / 474.3 MB, free: 2.656 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000764/0.09849, allocations: 0.809 MB / 475.1 MB, free: 1.844 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001917/0.1004, allocations: 2.325 MB / 477.4 MB, free: 15.51 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.1004, allocations: 0 / 477.4 MB, free: 15.51 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1005, allocations: 4 kB / 477.4 MB, free: 15.51 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.562e-05/0.1005, allocations: 0 / 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.003053/0.1035, allocations: 1.806 MB / 479.3 MB, free: 13.65 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.1036, allocations: 8.031 kB / 479.3 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001991/0.1038, allocations: 177.4 kB / 479.4 MB, free: 13.46 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002247/0.104, allocations: 151.2 kB / 479.6 MB, free: 13.31 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001327/0.1054, allocations: 0.9464 MB / 480.5 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.94e-05/0.1055, allocations: 86.55 kB / 480.6 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001746/0.1056, allocations: 115.9 kB / 480.7 MB, free: 12.12 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002704/0.1083, allocations: 1.685 MB / 482.4 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.298e-05/0.1084, allocations: 0 / 482.4 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001072/0.1085, allocations: 44 kB / 482.5 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.662e-05/0.1086, allocations: 58.22 kB / 482.5 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002449/0.111, allocations: 1.551 MB / 484.1 MB, free: 8.719 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006773/0.1178, allocations: 4.99 MB / 489 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0023/0.1201, allocations: 2.592 MB / 491.6 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001178/0.1213, allocations: 0.8528 MB / 492.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.669e-05/0.1214, allocations: 9 kB / 492.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/0.1214, allocations: 43.56 kB / 492.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=92): time 2.374e-06/0.1214, allocations: 0 / 492.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=93): time 0.007312/0.1287, allocations: 4.07 MB / 496.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.612e-05/0.1288, allocations: 60.41 kB / 496.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001026/0.1298, allocations: 0.8754 MB / 497.6 MB, free: 10.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.483e-05/0.1299, allocations: 41.7 kB / 497.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003351/0.1302, allocations: 0.5115 MB / 498.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002144/0.1304, allocations: 311.4 kB / 498.4 MB, free: 9.812 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002354/0.1307, allocations: 146.6 kB / 498.5 MB, free: 9.664 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.1308, allocations: 341.9 kB / 498.9 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007718/0.1316, allocations: 0.4938 MB / 499.4 MB, free: 8.828 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008332/0.1324, allocations: 0.5645 MB / 499.9 MB, free: 8.254 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001567/0.134, allocations: 1.069 MB / 0.4893 GB, free: 7.172 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.134, allocations: 0 / 0.4893 GB, free: 7.172 MB / 334.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002497/0.1365, allocations: 1.561 MB / 0.4908 GB, free: 5.594 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.1366, allocations: 8 kB / 0.4908 GB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.1366, allocations: 0 / 0.4908 GB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001094/0.1377, allocations: 495 kB / 0.4913 GB, free: 5.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005665/0.1382, allocations: 135.8 kB / 0.4914 GB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009704/0.148, allocations: 9.601 MB / 0.5008 GB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006966/0.1487, allocations: 43.98 kB / 0.5008 GB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.285e-05/0.1488, allocations: 32.08 kB / 0.5009 GB, free: 10.72 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.0007952/0.1496, allocations: 0.5059 MB / 0.5013 GB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000211/0.1498, allocations: 98.88 kB / 0.5014 GB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002549/0.1501, allocations: 133.3 kB / 0.5016 GB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.1501, allocations: 8 kB / 0.5016 GB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.327e-05/0.1501, allocations: 4 kB / 0.5016 GB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.196e-06/0.1501, allocations: 3.984 kB / 0.5016 GB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005226/0.1554, allocations: 3.173 MB / 0.5047 GB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.1554, allocations: 0 / 0.5047 GB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005311/0.1559, allocations: 123.8 kB / 0.5048 GB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001068/0.157, allocations: 491 kB / 0.5053 GB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.702e-05/0.1571, allocations: 23.98 kB / 0.5053 GB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009151/0.1662, allocations: 9.527 MB / 0.5146 GB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.1663, allocations: 4.031 kB / 0.5146 GB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00373/0.17, allocations: 2.343 MB / 0.5169 GB, free: 9.605 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005531/0.1706, allocations: 296 kB / 0.5172 GB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001888/0.1708, allocations: 23.94 kB / 0.5172 GB, free: 9.273 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000561/0.1714, allocations: 55.94 kB / 0.5172 GB, free: 9.219 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000218/0.1716, allocations: 80.88 kB / 0.5173 GB, free: 9.141 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.895e-05/0.1717, allocations: 35.98 kB / 0.5174 GB, free: 9.105 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008925/0.1726, allocations: 0.6317 MB / 0.518 GB, free: 8.477 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1726, allocations: 0 / 0.518 GB, free: 8.477 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001286/0.1739, allocations: 304 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.004172/0.178, allocations: 2.92 MB / 0.5211 GB, free: 5.211 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003535/0.1816, allocations: 2.084 MB / 0.5231 GB, free: 3.074 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.1816, allocations: 0 / 0.5231 GB, free: 3.074 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002038/0.1837, allocations: 1.254 MB / 0.5244 GB, free: 1.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001751/0.1854, allocations: 297.4 kB / 0.5247 GB, free: 1.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1858/0.3712, allocations: 11.67 MB / 0.5361 GB, free: 66.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009961/0.3722, allocations: 1.41 MB / 0.5374 GB, free: 65.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005674/0.3728, allocations: 188 kB / 0.5376 GB, free: 65.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004918/0.3733, allocations: 415.8 kB / 0.538 GB, free: 65.47 MB / 366.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3733, allocations: 0 / 0.538 GB, free: 65.47 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05939/0.4327, allocations: 30.85 MB / 0.5681 GB, free: 42.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/12.44, allocations: 11.69 kB / 0.5681 GB, free: 42.77 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)