Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",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.001073/0.001073, allocations: 92.06 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.001283/0.001283, allocations: 182.2 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.267/1.267, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1817/0.1817, allocations: 38.06 MB / 310.1 MB, free: 5.906 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.000479/0.0004791, allocations: 12 kB / 377.3 MB, free: 2.609 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2137/0.2142, allocations: 56.33 MB / 433.6 MB, free: 18.63 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.003948/0.2182, allocations: 4.593 MB / 438.2 MB, free: 14.01 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001711/0.22, allocations: 1.162 MB / 439.4 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000378/0.2204, allocations: 27.81 kB / 439.4 MB, free: 12.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000223/0.2206, allocations: 39.69 kB / 439.4 MB, free: 12.78 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005823/0.2212, allocations: 227.1 kB / 439.6 MB, free: 12.55 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000221/0.2214, allocations: 83.84 kB / 439.7 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006168/0.2221, allocations: 0.8066 MB / 440.5 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000228/0.2223, allocations: 114.9 kB / 440.6 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002992/0.2226, allocations: 191 kB / 440.8 MB, free: 11.37 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000408/0.223, allocations: 271.1 kB / 441.1 MB, free: 11.1 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.094e-05/0.2231, allocations: 12 kB / 441.1 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.06e-05/0.2231, allocations: 12 kB / 441.1 MB, free: 11.08 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001257/0.2233, allocations: 131.6 kB / 441.2 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001668/0.2235, allocations: 192.8 kB / 441.4 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002486/0.2237, allocations: 338.7 kB / 441.8 MB, free: 10.42 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.2237, allocations: 4 kB / 441.8 MB, free: 10.42 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2237, allocations: 0 / 441.8 MB, free: 10.42 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.441e-05/0.2237, allocations: 0 / 441.8 MB, free: 10.42 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0009039/0.2247, allocations: 0.6011 MB / 442.4 MB, free: 9.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.2247, allocations: 16.03 kB / 442.4 MB, free: 9.754 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.41e-05/0.2248, allocations: 62.72 kB / 442.4 MB, free: 9.684 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.437e-05/0.2248, allocations: 40.47 kB / 442.5 MB, free: 9.645 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000395/0.2252, allocations: 355.7 kB / 442.8 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.82e-05/0.2253, allocations: 24.5 kB / 442.9 MB, free: 9.234 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.285e-05/0.2253, allocations: 24 kB / 442.9 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004122/0.2257, allocations: 352.7 kB / 443.2 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.2258, allocations: 0 / 443.2 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.593e-05/0.2258, allocations: 15.98 kB / 443.2 MB, free: 8.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.248e-05/0.2259, allocations: 20.55 kB / 443.3 MB, free: 8.801 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003128/0.2262, allocations: 249.9 kB / 443.5 MB, free: 8.555 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00127/0.2275, allocations: 1.39 MB / 444.9 MB, free: 7.086 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002892/0.2278, allocations: 157.1 kB / 445.1 MB, free: 6.914 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001652/0.228, allocations: 105.7 kB / 445.2 MB, free: 6.805 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.228, allocations: 4 kB / 445.2 MB, free: 6.801 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.929e-05/0.228, allocations: 38.56 kB / 445.2 MB, free: 6.754 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.693e-06/0.228, allocations: 0 / 445.2 MB, free: 6.754 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.001039/0.2291, allocations: 0.7589 MB / 446 MB, free: 5.922 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.634e-05/0.2291, allocations: 81.11 kB / 446 MB, free: 5.824 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001979/0.2293, allocations: 300.7 kB / 446.3 MB, free: 5.52 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.364e-05/0.2293, allocations: 29.7 kB / 446.4 MB, free: 5.484 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.179e-05/0.2294, allocations: 215.5 kB / 446.6 MB, free: 5.27 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.01e-05/0.2295, allocations: 63.12 kB / 446.6 MB, free: 5.207 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.122e-05/0.2295, allocations: 29.7 kB / 446.7 MB, free: 5.172 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.103e-05/0.2296, allocations: 338.8 kB / 447 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.471e-05/0.2297, allocations: 67.95 kB / 447.1 MB, free: 4.766 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001089/0.2298, allocations: 156.8 kB / 447.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002119/0.23, allocations: 256.6 kB / 447.5 MB, free: 4.27 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.23, allocations: 0 / 447.5 MB, free: 4.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003695/0.2304, allocations: 321.8 kB / 447.8 MB, free: 3.945 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.2304, allocations: 4 kB / 447.8 MB, free: 3.941 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.2304, allocations: 7.984 kB / 447.8 MB, free: 3.934 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001675/0.2306, allocations: 48.83 kB / 447.8 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001451/0.2307, allocations: 47.91 kB / 447.9 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008506/0.2316, allocations: 1.499 MB / 449.4 MB, free: 2.203 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001303/0.2317, allocations: 15.92 kB / 449.4 MB, free: 2.188 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.421e-05/0.2318, allocations: 12 kB / 449.4 MB, free: 2.176 MB / 318.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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001225/0.2319, allocations: 173.9 kB / 449.6 MB, free: 1.996 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.115e-05/0.2319, allocations: 27.62 kB / 449.6 MB, free: 1.969 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003316/0.2323, allocations: 244.4 kB / 449.8 MB, free: 1.719 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.2323, allocations: 3.938 kB / 449.8 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.2323, allocations: 4 kB / 449.8 MB, free: 1.711 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.2323, allocations: 0 / 449.8 MB, free: 1.711 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000613/0.2329, allocations: 0.6482 MB / 450.5 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.2329, allocations: 0 / 450.5 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.269e-05/0.233, allocations: 27.92 kB / 450.5 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001525/0.2332, allocations: 56.8 kB / 450.6 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.2332, allocations: 11.98 kB / 450.6 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009547/0.2342, allocations: 1.475 MB / 452.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2342, allocations: 4.031 kB / 452.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004665/0.2347, allocations: 409.6 kB / 452.5 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.442e-05/0.2347, allocations: 104.8 kB / 452.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.433e-05/0.2348, allocations: 12 kB / 452.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001345/0.2349, allocations: 11.92 kB / 452.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.087e-05/0.2349, allocations: 11.98 kB / 452.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/0.235, allocations: 8.062 kB / 452.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001726/0.2351, allocations: 207.1 kB / 452.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2352, allocations: 0 / 452.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004771/0.2356, allocations: 72 kB / 452.9 MB, free: 14.42 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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,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.0006917/0.2363, allocations: 0.9398 MB / 453.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004935/0.2368, allocations: 311.2 kB / 454.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2369, allocations: 0 / 454.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003009/0.2372, allocations: 214.5 kB / 454.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004754/0.2376, allocations: 57.09 kB / 454.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003171/0.2408, allocations: 3.23 MB / 457.6 MB, free: 9.445 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003232/0.2412, allocations: 0.8142 MB / 458.4 MB, free: 8.605 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000142/0.2413, allocations: 42.95 kB / 458.5 MB, free: 8.562 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.2414, allocations: 95.41 kB / 458.6 MB, free: 8.469 MB / 334.1 MB Notification: Performance of SimCode: time 7.61e-07/0.2415, allocations: 0 / 458.6 MB, free: 8.469 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01717/0.2586, allocations: 5.639 MB / 464.2 MB, free: 2.883 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000241/0.2589, allocations: 227.3 kB / 464.4 MB, free: 2.621 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.799/2.058, allocations: 4 kB / 464.4 MB, free: 2.617 MB / 334.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1)