Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest.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.Generic.Test.PMeterTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_PMeterTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.PMeterTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_PMeterTest",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.0011/0.0011, allocations: 91.25 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.001394/0.001394, allocations: 184.5 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.314/1.314, 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.1832/0.1832, allocations: 38.06 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.0004922/0.0004921, allocations: 16 kB / 377.3 MB, free: 2.609 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.2204, allocations: 56.32 MB / 433.6 MB, free: 18.8 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.002896/0.2233, allocations: 3.327 MB / 436.9 MB, free: 15.45 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001432/0.2248, allocations: 1.591 MB / 438.5 MB, free: 13.85 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.2249, allocations: 11.94 kB / 438.5 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001323/0.2251, allocations: 27.78 kB / 438.5 MB, free: 13.81 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004517/0.2255, allocations: 267.2 kB / 438.8 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002006/0.2257, allocations: 115.7 kB / 438.9 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003604/0.2261, allocations: 0.5573 MB / 439.5 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004936/0.2266, allocations: 341.2 kB / 439.8 MB, free: 12.53 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001451/0.2268, allocations: 115.4 kB / 439.9 MB, free: 12.42 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001743/0.2269, allocations: 155.5 kB / 440.1 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.771e-05/0.227, allocations: 8 kB / 440.1 MB, free: 12.26 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003998/0.2274, allocations: 415 kB / 440.5 MB, free: 11.85 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.764e-05/0.2275, allocations: 95.77 kB / 440.6 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.007e-05/0.2276, allocations: 129.1 kB / 440.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003098/0.2279, allocations: 370.8 kB / 441.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2279, allocations: 0 / 441.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2279, allocations: 0 / 441.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.438e-06/0.2279, allocations: 0 / 441.1 MB, free: 11.26 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.0004617/0.2284, allocations: 486.7 kB / 441.5 MB, free: 10.74 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.2284, allocations: 8.031 kB / 441.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.672e-05/0.2285, allocations: 58.72 kB / 441.6 MB, free: 10.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008079/0.2293, allocations: 104.5 kB / 441.7 MB, free: 10.56 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002134/0.2295, allocations: 256.5 kB / 442 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.2295, allocations: 16.11 kB / 442 MB, free: 10.26 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.174e-05/0.2296, allocations: 19.98 kB / 442 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003828/0.23, allocations: 326.3 kB / 442.3 MB, free: 9.895 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.23, allocations: 0 / 442.3 MB, free: 9.895 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.23, allocations: 7.984 kB / 442.3 MB, free: 9.887 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.813e-05/0.23, allocations: 23.92 kB / 442.3 MB, free: 9.863 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003485/0.2304, allocations: 299.7 kB / 442.6 MB, free: 9.57 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001219/0.2316, allocations: 1.297 MB / 443.9 MB, free: 8.176 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002333/0.2319, allocations: 202.3 kB / 444.1 MB, free: 7.941 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.721e-05/0.2319, allocations: 45.77 kB / 444.2 MB, free: 7.891 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.703e-05/0.232, allocations: 0 / 444.2 MB, free: 7.891 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.731e-05/0.232, allocations: 34.56 kB / 444.2 MB, free: 7.848 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.032e-06/0.232, allocations: 0 / 444.2 MB, free: 7.848 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002537/0.2322, allocations: 141.6 kB / 444.4 MB, free: 7.703 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.167e-05/0.2323, allocations: 85.12 kB / 444.4 MB, free: 7.602 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001429/0.2324, allocations: 211.7 kB / 444.6 MB, free: 7.383 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.588e-06/0.2324, allocations: 25.7 kB / 444.7 MB, free: 7.352 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.609e-05/0.2325, allocations: 171.6 kB / 444.8 MB, free: 7.18 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.902e-05/0.2325, allocations: 31.47 kB / 444.9 MB, free: 7.148 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.862e-05/0.2326, allocations: 25.7 kB / 444.9 MB, free: 7.117 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.862e-05/0.2326, allocations: 326.8 kB / 445.2 MB, free: 6.789 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.377e-05/0.2327, allocations: 44.34 kB / 445.3 MB, free: 6.746 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.851e-05/0.2328, allocations: 136.7 kB / 445.4 MB, free: 6.566 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001571/0.2329, allocations: 200.6 kB / 445.6 MB, free: 6.324 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2329, allocations: 0 / 445.6 MB, free: 6.324 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002262/0.2332, allocations: 209.1 kB / 445.8 MB, free: 6.113 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.2332, allocations: 4 kB / 445.8 MB, free: 6.109 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.2332, allocations: 7.938 kB / 445.8 MB, free: 6.102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.2332, allocations: 4 kB / 445.8 MB, free: 6.098 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001371/0.2334, allocations: 47.91 kB / 445.8 MB, free: 6.051 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.2334, allocations: 4.438 kB / 445.9 MB, free: 6.047 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.947e-05/0.2335, allocations: 27.78 kB / 445.9 MB, free: 6.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/0.2335, allocations: 12 kB / 445.9 MB, free: 6.008 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 (23): * Single equations (assignments): 23 * 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 9.046e-05/0.2336, allocations: 157.6 kB / 446 MB, free: 5.844 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.319e-05/0.2336, allocations: 15.81 kB / 446.1 MB, free: 5.828 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001679/0.2338, allocations: 123 kB / 446.2 MB, free: 5.703 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.2338, allocations: 4.031 kB / 446.2 MB, free: 5.699 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.2338, allocations: 7.984 kB / 446.2 MB, free: 5.691 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.2339, allocations: 0 / 446.2 MB, free: 5.691 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005025/0.2344, allocations: 0.576 MB / 446.8 MB, free: 5.031 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.2344, allocations: 4.031 kB / 446.8 MB, free: 5.027 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.49e-05/0.2344, allocations: 20.05 kB / 446.8 MB, free: 5.008 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.2345, allocations: 11.94 kB / 446.8 MB, free: 4.996 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.2345, allocations: 4 kB / 446.8 MB, free: 4.992 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.277e-06/0.2345, allocations: 7.938 kB / 446.8 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.2345, allocations: 4.188 kB / 446.8 MB, free: 4.98 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001694/0.2347, allocations: 279.8 kB / 447.1 MB, free: 4.66 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.623e-05/0.2347, allocations: 108.8 kB / 447.2 MB, free: 4.535 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.494e-05/0.2347, allocations: 4 kB / 447.2 MB, free: 4.531 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.2348, allocations: 8 kB / 447.2 MB, free: 4.523 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.24e-05/0.2349, allocations: 15.92 kB / 447.2 MB, free: 4.508 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-06/0.2349, allocations: 8 kB / 447.2 MB, free: 4.5 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.437e-05/0.235, allocations: 149.5 kB / 447.4 MB, free: 4.355 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.235, allocations: 0 / 447.4 MB, free: 4.355 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003033/0.2353, allocations: 59.78 kB / 447.4 MB, free: 4.297 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 simulation (11): * Single equations (assignments): 10 * 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.0002791/0.2356, allocations: 0.8027 MB / 448.2 MB, free: 3.438 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001681/0.2357, allocations: 116 kB / 448.4 MB, free: 3.324 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.2358, allocations: 4 kB / 448.4 MB, free: 3.32 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.468e-05/0.2358, allocations: 43.86 kB / 448.4 MB, free: 3.277 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004093/0.2362, allocations: 35.97 kB / 448.4 MB, free: 3.242 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001647/0.2379, allocations: 2.4 MB / 450.8 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002015/0.2381, allocations: 0.7518 MB / 451.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001068/0.2382, allocations: 37.52 kB / 451.6 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.512e-05/0.2383, allocations: 63.41 kB / 451.7 MB, free: 15.74 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2383, allocations: 0 / 451.7 MB, free: 15.74 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01286/0.2512, allocations: 3.019 MB / 454.7 MB, free: 12.78 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000211/0.2514, allocations: 198 kB / 454.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.713/1.964, allocations: 4 kB / 454.9 MB, free: 12.51 MB / 334.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Test_PMeterTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Test_PMeterTest.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest.pipe 2>&1)