Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_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.0008436/0.0008438, allocations: 91.56 kB / 16.65 MB, free: 6.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009904/0.0009906, allocations: 183.4 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.261/1.261, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1764/0.1764, allocations: 38.05 MB / 310.1 MB, free: 5.902 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004799/0.00048, allocations: 16 kB / 377.3 MB, free: 2.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2034/0.2039, allocations: 56.32 MB / 433.6 MB, free: 18.62 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.005139/0.209, allocations: 6.945 MB / 440.5 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002196/0.2113, allocations: 1.785 MB / 442.3 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003767/0.2117, allocations: 39.69 kB / 442.4 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003965/0.2121, allocations: 127.2 kB / 442.5 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006085/0.2127, allocations: 398.3 kB / 442.9 MB, free: 9.301 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003613/0.2131, allocations: 187.7 kB / 443.1 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001042/0.2141, allocations: 1.668 MB / 444.7 MB, free: 7.445 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003106/0.2144, allocations: 279 kB / 445 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004369/0.2149, allocations: 386.2 kB / 445.4 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005589/0.2155, allocations: 0.5373 MB / 445.9 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.86e-05/0.2155, allocations: 32 kB / 446 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.484e-05/0.2156, allocations: 32 kB / 446 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001827/0.2158, allocations: 275.3 kB / 446.3 MB, free: 5.922 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002273/0.216, allocations: 360 kB / 446.6 MB, free: 5.562 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004436/0.2165, allocations: 0.8212 MB / 447.4 MB, free: 4.738 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.2165, allocations: 0 / 447.4 MB, free: 4.738 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2165, allocations: 0 / 447.4 MB, free: 4.738 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.2165, allocations: 0 / 447.4 MB, free: 4.738 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001387/0.2179, allocations: 0.918 MB / 448.3 MB, free: 3.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.218, allocations: 8.031 kB / 448.4 MB, free: 3.762 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.205e-05/0.218, allocations: 102.7 kB / 448.5 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.279e-05/0.2181, allocations: 80 kB / 448.5 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006563/0.2188, allocations: 0.5535 MB / 449.1 MB, free: 2.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001239/0.2189, allocations: 120.6 kB / 449.2 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.283e-05/0.219, allocations: 52 kB / 449.3 MB, free: 2.797 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00101/0.22, allocations: 0.7967 MB / 450.1 MB, free: 1.969 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.2201, allocations: 11.94 kB / 450.1 MB, free: 1.957 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.758e-05/0.2201, allocations: 20 kB / 450.1 MB, free: 1.938 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-05/0.2202, allocations: 40.97 kB / 450.1 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/0.2213, allocations: 0.722 MB / 450.8 MB, free: 1.176 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003301/0.2246, allocations: 2.763 MB / 453.6 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001696/0.2263, allocations: 0.9248 MB / 454.5 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005725/0.2269, allocations: 353.2 kB / 454.9 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.083e-05/0.2269, allocations: 4 kB / 454.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.518e-05/0.227, allocations: 38.5 kB / 454.9 MB, free: 12.92 MB / 334.1 MB Notification: Performance of pre-optimization done (n=38): time 1.383e-06/0.227, allocations: 4 kB / 454.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=39): time 0.003464/0.2304, allocations: 2.023 MB / 456.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.343e-05/0.2305, allocations: 89.05 kB / 457 MB, free: 10.67 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003735/0.2309, allocations: 417.9 kB / 457.4 MB, free: 10.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.534e-05/0.2309, allocations: 33.7 kB / 457.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001788/0.2311, allocations: 316.2 kB / 457.8 MB, free: 9.898 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.91e-05/0.2312, allocations: 142 kB / 457.9 MB, free: 9.758 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.116e-05/0.2313, allocations: 45.69 kB / 458 MB, free: 9.707 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.2314, allocations: 354.8 kB / 458.3 MB, free: 9.352 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004675/0.2319, allocations: 257 kB / 458.6 MB, free: 9.102 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005454/0.2324, allocations: 370.3 kB / 458.9 MB, free: 8.695 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009925/0.2334, allocations: 0.6169 MB / 459.5 MB, free: 8.031 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2335, allocations: 0 / 459.5 MB, free: 8.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001297/0.2348, allocations: 0.8232 MB / 460.4 MB, free: 7.176 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.2348, allocations: 8 kB / 460.4 MB, free: 7.168 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.2348, allocations: 4 kB / 460.4 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002276/0.235, allocations: 77.66 kB / 460.5 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001434/0.2365, allocations: 371.8 kB / 460.8 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005137/0.2416, allocations: 6.162 MB / 467 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003346/0.242, allocations: 48.2 kB / 467 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.253e-05/0.242, allocations: 20 kB / 467 MB, free: 15.95 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002457/0.2423, allocations: 237.6 kB / 467.3 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.449e-05/0.2423, allocations: 55.34 kB / 467.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001247/0.2436, allocations: 0.7572 MB / 468.1 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.2436, allocations: 8 kB / 468.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.2436, allocations: 4 kB / 468.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.2436, allocations: 0 / 468.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002196/0.2458, allocations: 1.538 MB / 469.6 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.2459, allocations: 0 / 469.6 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001627/0.2475, allocations: 403.6 kB / 470 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002242/0.2477, allocations: 97.52 kB / 470.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.137e-05/0.2478, allocations: 11.94 kB / 470.1 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00182/0.2496, allocations: 2.883 MB / 473 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.2496, allocations: 3.938 kB / 473 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001712/0.2513, allocations: 1.172 MB / 474.2 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.65e-05/0.2514, allocations: 120.5 kB / 474.3 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.941e-05/0.2515, allocations: 8 kB / 474.3 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003085/0.2518, allocations: 43.95 kB / 474.4 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.2519, allocations: 39.94 kB / 474.4 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-05/0.252, allocations: 8 kB / 474.4 MB, free: 8.117 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002658/0.2522, allocations: 299.1 kB / 474.7 MB, free: 7.828 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2522, allocations: 3.938 kB / 474.7 MB, free: 7.824 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005396/0.2528, allocations: 136 kB / 474.8 MB, free: 7.691 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001967/0.2548, allocations: 1.724 MB / 476.6 MB, free: 5.906 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002477/0.2572, allocations: 1.107 MB / 477.7 MB, free: 4.773 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.2573, allocations: 0 / 477.7 MB, free: 4.773 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001888/0.2591, allocations: 0.8254 MB / 478.5 MB, free: 3.922 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007608/0.2599, allocations: 138.6 kB / 478.6 MB, free: 3.785 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007125/0.2671, allocations: 5.972 MB / 484.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004638/0.2675, allocations: 0.9522 MB / 485.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002947/0.2678, allocations: 96.55 kB / 485.6 MB, free: 12.51 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002593/0.2681, allocations: 203.4 kB / 485.8 MB, free: 12.31 MB / 366.1 MB Notification: Performance of SimCode: time 4e-07/0.2681, allocations: 3.938 kB / 485.9 MB, free: 12.3 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.4/1.668, allocations: 11.99 MB / 497.8 MB, free: 372 kB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002162/1.668, allocations: 239.6 kB / 498.1 MB, free: 104 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.036/3.704, allocations: 4 kB / 498.1 MB, free: 100 kB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe 2>&1)