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.001109/0.001109, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.316/1.316, allocations: 222.9 MB / 239 MB, free: 4.727 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.001272/0.001272, allocations: 200.4 kB / 289.3 MB, free: 2.457 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0348/0.0348, allocations: 8.802 MB / 348.2 MB, free: 4.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001462, allocations: 77.17 kB / 410.7 MB, free: 42.44 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07349/0.07497, allocations: 51.56 MB / 462.3 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Rectifier): time 0.005218/0.08023, allocations: 4.515 MB / 466.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001846/0.08211, allocations: 1.137 MB / 467.9 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002469/0.08237, allocations: 23.88 kB / 467.9 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003362/0.08271, allocations: 139.1 kB / 468.1 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000759/0.0835, allocations: 326.4 kB / 468.4 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000249/0.08376, allocations: 147.8 kB / 468.5 MB, free: 8.461 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001346/0.08512, allocations: 1.654 MB / 470.2 MB, free: 6.801 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001117/0.08625, allocations: 1.15 MB / 471.3 MB, free: 5.613 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006811/0.08694, allocations: 0.7165 MB / 472.1 MB, free: 4.895 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008705/0.08782, allocations: 0.8719 MB / 472.9 MB, free: 4.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000192/0.08802, allocations: 184 kB / 473.1 MB, free: 3.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002315/0.08826, allocations: 180 kB / 473.3 MB, free: 3.664 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003651/0.08864, allocations: 0.4987 MB / 473.8 MB, free: 3.164 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006833/0.08933, allocations: 0.8168 MB / 474.6 MB, free: 2.344 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00162/0.09095, allocations: 2.317 MB / 476.9 MB, free: 20 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.09097, allocations: 0 / 476.9 MB, free: 20 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.09098, allocations: 4 kB / 476.9 MB, free: 16 kB / 302.1 MB Notification: Performance of Transformations before backend: time 2.484e-05/0.09101, allocations: 0 / 476.9 MB, free: 16 kB / 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.002901/0.09391, allocations: 1.804 MB / 478.7 MB, free: 14.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.09396, allocations: 8.031 kB / 478.7 MB, free: 14.15 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002077/0.09418, allocations: 177.4 kB / 478.9 MB, free: 13.96 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002202/0.0944, allocations: 151.2 kB / 479 MB, free: 13.82 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001184/0.09559, allocations: 0.9503 MB / 480 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.704e-05/0.09566, allocations: 82.61 kB / 480.1 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001578/0.09582, allocations: 111.9 kB / 480.2 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002527/0.09836, allocations: 1.685 MB / 481.9 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.401e-05/0.0984, allocations: 0 / 481.9 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001156/0.09852, allocations: 47.97 kB / 481.9 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.406e-05/0.09858, allocations: 50.23 kB / 482 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002344/0.1009, allocations: 1.554 MB / 483.5 MB, free: 9.227 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006737/0.1077, allocations: 4.994 MB / 488.5 MB, free: 4.133 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00229/0.11, allocations: 2.584 MB / 491.1 MB, free: 1.266 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001101/0.1111, allocations: 0.8527 MB / 492 MB, free: 420 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.74e-05/0.1112, allocations: 9 kB / 492 MB, free: 412 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.1112, allocations: 47.56 kB / 492 MB, free: 356 kB / 318.1 MB Notification: Performance of pre-optimization done (n=92): time 2.605e-06/0.1112, allocations: 0 / 492 MB, free: 356 kB / 318.1 MB Notification: Performance of matching and sorting (n=93): time 0.007094/0.1183, allocations: 4.074 MB / 496.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.831e-05/0.1184, allocations: 64.41 kB / 496.1 MB, free: 12.08 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001014/0.1194, allocations: 0.8715 MB / 497 MB, free: 11.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.832e-05/0.1194, allocations: 45.69 kB / 497.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003118/0.1198, allocations: 0.5038 MB / 497.6 MB, free: 10.63 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002082/0.12, allocations: 307.5 kB / 497.9 MB, free: 10.33 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002242/0.1202, allocations: 150.6 kB / 498 MB, free: 10.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.1203, allocations: 341.9 kB / 498.3 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007453/0.1211, allocations: 0.4899 MB / 498.8 MB, free: 9.344 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007827/0.1219, allocations: 0.5723 MB / 499.4 MB, free: 8.762 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001511/0.1234, allocations: 1.061 MB / 0.4887 GB, free: 7.688 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.219e-06/0.1234, allocations: 8 kB / 0.4887 GB, free: 7.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002393/0.1258, allocations: 1.565 MB / 0.4903 GB, free: 6.094 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.1258, allocations: 7.938 kB / 0.4903 GB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.1259, allocations: 3.984 kB / 0.4903 GB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001037/0.1269, allocations: 487 kB / 0.4908 GB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005513/0.1275, allocations: 143.8 kB / 0.4909 GB, free: 5.453 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008372/0.1358, allocations: 9.593 MB / 0.5003 GB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005589/0.1364, allocations: 44.11 kB / 0.5003 GB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.953e-05/0.1365, allocations: 35.98 kB / 0.5003 GB, free: 11.22 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.0006791/0.1372, allocations: 0.4982 MB / 0.5008 GB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/0.1373, allocations: 98.86 kB / 0.5009 GB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002257/0.1376, allocations: 129.3 kB / 0.501 GB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.1376, allocations: 8.469 kB / 0.501 GB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.148e-05/0.1376, allocations: 4 kB / 0.501 GB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.567e-06/0.1376, allocations: 3.984 kB / 0.5011 GB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004571/0.1422, allocations: 3.181 MB / 0.5042 GB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.1422, allocations: 0 / 0.5042 GB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005174/0.1427, allocations: 123.8 kB / 0.5043 GB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009463/0.1437, allocations: 490.9 kB / 0.5047 GB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.376e-05/0.1437, allocations: 20 kB / 0.5048 GB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007978/0.1517, allocations: 9.534 MB / 0.5141 GB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.1518, allocations: 0 / 0.5141 GB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003314/0.1551, allocations: 2.347 MB / 0.5164 GB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004369/0.1555, allocations: 291.9 kB / 0.5166 GB, free: 9.805 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00012/0.1557, allocations: 20 kB / 0.5167 GB, free: 9.785 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004936/0.1562, allocations: 55.94 kB / 0.5167 GB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002065/0.1564, allocations: 88.81 kB / 0.5168 GB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-05/0.1564, allocations: 32.45 kB / 0.5168 GB, free: 9.613 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007578/0.1572, allocations: 0.6317 MB / 0.5175 GB, free: 8.984 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.343e-06/0.1572, allocations: 0 / 0.5175 GB, free: 8.984 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001129/0.1583, allocations: 311.9 kB / 0.5177 GB, free: 8.68 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.003496/0.1618, allocations: 2.922 MB / 0.5206 GB, free: 5.711 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003114/0.165, allocations: 2.084 MB / 0.5226 GB, free: 3.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.165, allocations: 0 / 0.5226 GB, free: 3.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001558/0.1666, allocations: 1.25 MB / 0.5239 GB, free: 2.273 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001203/0.1678, allocations: 288.1 kB / 0.5241 GB, free: 1.992 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1567/0.3245, allocations: 12.14 MB / 0.536 GB, free: 66.13 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009827/0.3255, allocations: 1.415 MB / 0.5374 GB, free: 65.42 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005222/0.326, allocations: 190.6 kB / 0.5375 GB, free: 65.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004561/0.3265, allocations: 413.1 kB / 0.5379 GB, free: 65.4 MB / 366.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3265, allocations: 0 / 0.5379 GB, free: 65.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04609/0.3726, allocations: 30.5 MB / 0.5677 GB, free: 43.09 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001538/0.3728, allocations: 221.5 kB / 0.5679 GB, free: 42.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.345/2.717, allocations: 7.625 kB / 0.5679 GB, free: 42.83 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)