Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.0007891/0.0007892, allocations: 90.55 kB / 16.65 MB, free: 6.535 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.0008907/0.0008907, allocations: 174 kB / 17.56 MB, free: 6.184 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.199/1.199, 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.1597/0.1597, allocations: 38.05 MB / 310.1 MB, free: 5.926 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.0004832/0.0004833, allocations: 16 kB / 377.3 MB, free: 2.625 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2152/0.2157, allocations: 56.32 MB / 433.6 MB, free: 18.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.003164/0.2189, allocations: 4.188 MB / 437.8 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001059/0.22, allocations: 1.096 MB / 438.9 MB, free: 13.35 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001543/0.2202, allocations: 23.81 kB / 438.9 MB, free: 13.33 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001176/0.2203, allocations: 35.7 kB / 438.9 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003027/0.2206, allocations: 151.3 kB / 439.1 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001313/0.2208, allocations: 71.92 kB / 439.2 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003228/0.2211, allocations: 0.4984 MB / 439.6 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001399/0.2212, allocations: 68.81 kB / 439.7 MB, free: 12.51 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001591/0.2214, allocations: 135.3 kB / 439.8 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002205/0.2216, allocations: 175.2 kB / 440 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.384e-05/0.2217, allocations: 12 kB / 440 MB, free: 12.19 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.978e-05/0.2217, allocations: 12 kB / 440 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.56e-05/0.2218, allocations: 71.8 kB / 440.1 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.997e-05/0.2219, allocations: 141 kB / 440.3 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001561/0.222, allocations: 235 kB / 440.5 MB, free: 11.73 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.222, allocations: 0 / 440.5 MB, free: 11.73 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.222, allocations: 0 / 440.5 MB, free: 11.73 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.2221, allocations: 4 kB / 440.5 MB, free: 11.73 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0006072/0.2227, allocations: 0.5233 MB / 441 MB, free: 11.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.2227, allocations: 8.031 kB / 441 MB, free: 11.15 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.562e-05/0.2228, allocations: 54.73 kB / 441.1 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.469e-05/0.2228, allocations: 36.56 kB / 441.1 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002867/0.2231, allocations: 303.7 kB / 441.4 MB, free: 10.72 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.2231, allocations: 16.44 kB / 441.4 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.373e-05/0.2232, allocations: 24 kB / 441.4 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002895/0.2235, allocations: 269.8 kB / 441.7 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.2235, allocations: 3.938 kB / 441.7 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.001e-05/0.2235, allocations: 12 kB / 441.7 MB, free: 10.37 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.2235, allocations: 4 kB / 441.7 MB, free: 10.37 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001989/0.2237, allocations: 155.8 kB / 441.9 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008214/0.2246, allocations: 1.179 MB / 443.1 MB, free: 8.945 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.973e-05/0.2247, allocations: 77.11 kB / 443.1 MB, free: 8.852 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.759e-05/0.2247, allocations: 33.75 kB / 443.2 MB, free: 8.812 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.254e-05/0.2247, allocations: 4 kB / 443.2 MB, free: 8.809 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.688e-05/0.2248, allocations: 30.56 kB / 443.2 MB, free: 8.77 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.2248, allocations: 4 kB / 443.2 MB, free: 8.766 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005115/0.2253, allocations: 416.7 kB / 443.6 MB, free: 8.305 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.515e-05/0.2253, allocations: 85.11 kB / 443.7 MB, free: 8.203 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.2255, allocations: 242.5 kB / 443.9 MB, free: 7.957 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.685e-06/0.2255, allocations: 25.7 kB / 444 MB, free: 7.926 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.697e-05/0.2256, allocations: 199.7 kB / 444.1 MB, free: 7.727 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.653e-05/0.2256, allocations: 27.64 kB / 444.2 MB, free: 7.699 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.421e-05/0.2256, allocations: 25.7 kB / 444.2 MB, free: 7.668 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.161e-05/0.2257, allocations: 330.8 kB / 444.5 MB, free: 7.336 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.984e-05/0.2257, allocations: 23.98 kB / 444.5 MB, free: 7.312 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.253e-05/0.2258, allocations: 136.7 kB / 444.7 MB, free: 7.133 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001181/0.2259, allocations: 164.7 kB / 444.8 MB, free: 6.926 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.2259, allocations: 0 / 444.8 MB, free: 6.926 MB / 318.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001906/0.2261, allocations: 181.5 kB / 445 MB, free: 6.742 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.2261, allocations: 12.03 kB / 445 MB, free: 6.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.2261, allocations: 7.938 kB / 445 MB, free: 6.723 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.2261, allocations: 4 kB / 445 MB, free: 6.719 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.2263, allocations: 43.92 kB / 445.1 MB, free: 6.676 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.2263, allocations: 4 kB / 445.1 MB, free: 6.672 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.471e-05/0.2264, allocations: 4 kB / 445.1 MB, free: 6.668 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.2264, allocations: 12 kB / 445.1 MB, free: 6.656 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 (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.657e-05/0.2265, allocations: 141.8 kB / 445.2 MB, free: 6.508 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.343e-05/0.2265, allocations: 27.72 kB / 445.3 MB, free: 6.48 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001221/0.2266, allocations: 103.2 kB / 445.4 MB, free: 6.375 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.2267, allocations: 4 kB / 445.4 MB, free: 6.371 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.2267, allocations: 0 / 445.4 MB, free: 6.371 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-06/0.2267, allocations: 0 / 445.4 MB, free: 6.371 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002913/0.227, allocations: 423.2 kB / 445.8 MB, free: 5.898 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.227, allocations: 0 / 445.8 MB, free: 5.898 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.865e-05/0.2271, allocations: 15.98 kB / 445.8 MB, free: 5.883 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.624e-06/0.2271, allocations: 4.422 kB / 445.8 MB, free: 5.879 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-06/0.2271, allocations: 8.031 kB / 445.8 MB, free: 5.871 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.2271, allocations: 0 / 445.8 MB, free: 5.871 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2271, allocations: 7.938 kB / 445.8 MB, free: 5.863 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001626/0.2273, allocations: 232.8 kB / 446 MB, free: 5.613 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.18e-05/0.2273, allocations: 92.94 kB / 446.1 MB, free: 5.504 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.252e-05/0.2273, allocations: 4 kB / 446.1 MB, free: 5.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.747e-05/0.2274, allocations: 4.062 kB / 446.1 MB, free: 5.496 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.597e-05/0.2274, allocations: 8 kB / 446.2 MB, free: 5.488 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-06/0.2274, allocations: 4 kB / 446.2 MB, free: 5.484 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001081/0.2276, allocations: 173.9 kB / 446.3 MB, free: 5.316 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2276, allocations: 4 kB / 446.3 MB, free: 5.312 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002703/0.2278, allocations: 36 kB / 446.4 MB, free: 5.277 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002861/0.2281, allocations: 0.7685 MB / 447.1 MB, free: 4.477 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001288/0.2283, allocations: 88.59 kB / 447.2 MB, free: 4.391 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.2283, allocations: 0 / 447.2 MB, free: 4.391 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.709e-05/0.2283, allocations: 36.03 kB / 447.3 MB, free: 4.355 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004313/0.2288, allocations: 49.05 kB / 447.3 MB, free: 4.305 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001618/0.2304, allocations: 2.412 MB / 449.7 MB, free: 1.719 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001444/0.2305, allocations: 0.756 MB / 450.5 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.099e-05/0.2306, allocations: 34.28 kB / 450.5 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.869e-05/0.2307, allocations: 75.41 kB / 450.6 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2307, allocations: 0 / 450.6 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04254/0.2733, allocations: 3.807 MB / 454.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001945/0.2735, allocations: 205.6 kB / 454.6 MB, free: 12.81 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.728/2.001, allocations: 0 / 454.6 MB, free: 12.81 MB / 334.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1)