Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.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.Inverters.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_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.001079/0.001079, allocations: 108.9 kB / 16.51 MB, free: 6.707 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.0009787/0.0009789, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.449/1.449, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1655/0.1655, allocations: 37.97 MB / 308.6 MB, free: 6.246 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.001351/0.001351, allocations: 75.41 kB / 374.7 MB, free: 4.008 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.2404, allocations: 55.24 MB / 430 MB, free: 19.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.009814/0.2503, allocations: 7.089 MB / 437.1 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00359/0.2539, allocations: 1.715 MB / 438.8 MB, free: 10.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009514/0.2549, allocations: 39.75 kB / 438.8 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007941/0.2557, allocations: 127.2 kB / 438.9 MB, free: 10.74 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001376/0.2572, allocations: 386.4 kB / 439.3 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006177/0.2578, allocations: 171.8 kB / 439.5 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001671/0.2595, allocations: 1.625 MB / 441.1 MB, free: 8.566 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005211/0.26, allocations: 283 kB / 441.4 MB, free: 8.289 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009013/0.261, allocations: 386.3 kB / 441.8 MB, free: 7.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001156/0.2621, allocations: 0.5451 MB / 442.3 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002419/0.2624, allocations: 40 kB / 442.3 MB, free: 7.324 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003211/0.2627, allocations: 40 kB / 442.4 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004311/0.2632, allocations: 291.2 kB / 442.7 MB, free: 7 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006681/0.2639, allocations: 338.4 kB / 443 MB, free: 6.668 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008695/0.2647, allocations: 0.8138 MB / 443.8 MB, free: 5.852 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2648, allocations: 0 / 443.8 MB, free: 5.852 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2648, allocations: 0 / 443.8 MB, free: 5.852 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.744e-05/0.2648, allocations: 0 / 443.8 MB, free: 5.852 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002853/0.2677, allocations: 1.004 MB / 444.8 MB, free: 4.797 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.2677, allocations: 12.03 kB / 444.8 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002078/0.268, allocations: 98.69 kB / 444.9 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002153/0.2682, allocations: 72.09 kB / 445 MB, free: 4.609 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/0.2694, allocations: 0.5419 MB / 445.5 MB, free: 4.027 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001927/0.2696, allocations: 124.6 kB / 445.7 MB, free: 3.891 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/0.2698, allocations: 55.94 kB / 445.7 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001701/0.2715, allocations: 0.7772 MB / 446.5 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.221e-05/0.2715, allocations: 4 kB / 446.5 MB, free: 3.023 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.465e-05/0.2716, allocations: 20 kB / 446.5 MB, free: 3.004 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001404/0.2717, allocations: 36.97 kB / 446.5 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001263/0.273, allocations: 0.722 MB / 447.3 MB, free: 2.246 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003115/0.2761, allocations: 2.62 MB / 449.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001479/0.2776, allocations: 0.7946 MB / 450.7 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006338/0.2783, allocations: 403.9 kB / 451.1 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.996e-05/0.2783, allocations: 12.42 kB / 451.1 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.2784, allocations: 42.94 kB / 451.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.735e-06/0.2784, allocations: 0 / 451.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=51): time 0.004048/0.2824, allocations: 2.131 MB / 453.3 MB, free: 11.99 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.862e-05/0.2825, allocations: 93.52 kB / 453.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004269/0.283, allocations: 397.9 kB / 453.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.694e-05/0.283, allocations: 33.7 kB / 453.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001999/0.2832, allocations: 284.5 kB / 454.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001503/0.2834, allocations: 181.4 kB / 454.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00016/0.2835, allocations: 94.25 kB / 454.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.2837, allocations: 358.8 kB / 454.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005236/0.2842, allocations: 280.9 kB / 454.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005701/0.2848, allocations: 381.1 kB / 455.3 MB, free: 9.84 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001332/0.2861, allocations: 0.6537 MB / 456 MB, free: 9.141 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.2862, allocations: 4 kB / 456 MB, free: 9.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001638/0.2878, allocations: 0.8756 MB / 456.9 MB, free: 8.234 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.2878, allocations: 8 kB / 456.9 MB, free: 8.227 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.2879, allocations: 4 kB / 456.9 MB, free: 8.223 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002845/0.2881, allocations: 77.97 kB / 456.9 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001456/0.2896, allocations: 307.5 kB / 457.2 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006572/0.2962, allocations: 6.026 MB / 463.3 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005346/0.2968, allocations: 39.95 kB / 463.3 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.971e-05/0.2968, allocations: 23.94 kB / 463.3 MB, free: 1.215 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (65): * Single equations (assignments): 61 * 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.0003796/0.2972, allocations: 241.7 kB / 463.6 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.619e-05/0.2973, allocations: 47.44 kB / 463.6 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001608/0.2989, allocations: 0.8281 MB / 464.4 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.2989, allocations: 4 kB / 464.4 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.2989, allocations: 4 kB / 464.4 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.299, allocations: 3.984 kB / 464.4 MB, free: 52 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00283/0.3018, allocations: 1.684 MB / 466.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.328e-06/0.3018, allocations: 4 kB / 466.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001533/0.3034, allocations: 319.8 kB / 466.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002884/0.3037, allocations: 93.56 kB / 466.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.08e-05/0.3037, allocations: 11.98 kB / 466.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002542/0.3063, allocations: 2.887 MB / 469.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/0.3063, allocations: 11.95 kB / 469.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00228/0.3086, allocations: 1.312 MB / 470.8 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001723/0.3087, allocations: 120.5 kB / 470.9 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.937e-05/0.3088, allocations: 12 kB / 470.9 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003553/0.3092, allocations: 43.98 kB / 470.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001441/0.3093, allocations: 47.88 kB / 471 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.62e-05/0.3094, allocations: 16 kB / 471 MB, free: 9.043 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003364/0.3097, allocations: 279.1 kB / 471.3 MB, free: 8.773 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.3097, allocations: 3.938 kB / 471.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007081/0.3104, allocations: 144 kB / 471.4 MB, free: 8.629 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (51): * Single equations (assignments): 48 * 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.002449/0.3129, allocations: 1.873 MB / 473.3 MB, free: 6.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002704/0.3156, allocations: 1.085 MB / 474.4 MB, free: 5.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.3156, allocations: 4.062 kB / 474.4 MB, free: 5.566 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001856/0.3175, allocations: 0.7943 MB / 475.2 MB, free: 4.746 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008338/0.3183, allocations: 125.7 kB / 475.3 MB, free: 4.625 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009161/0.3275, allocations: 6.129 MB / 481.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005568/0.3281, allocations: 0.9408 MB / 482.4 MB, free: 13.28 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004582/0.3286, allocations: 128.7 kB / 482.5 MB, free: 13.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002873/0.3289, allocations: 199.4 kB / 482.7 MB, free: 12.96 MB / 366.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3289, allocations: 3.938 kB / 482.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03005/0.359, allocations: 12.29 MB / 495 MB, free: 0.668 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002093/0.3592, allocations: 238.8 kB / 495.2 MB, free: 416 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.084/2.443, allocations: 0 / 495.2 MB, free: 416 kB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe 2>&1)