Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.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.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron",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.001215/0.001215, allocations: 103.2 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.001354/0.001354, allocations: 188.1 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.331/1.331, allocations: 205.1 MB / 223.3 MB, free: 12.49 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1645/0.1645, allocations: 37.99 MB / 308.6 MB, free: 6.223 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.001322/0.001322, allocations: 67.03 kB / 374.7 MB, free: 4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2143/0.2157, allocations: 55.24 MB / 430 MB, free: 19.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.004947/0.2207, allocations: 5.072 MB / 435 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001884/0.2226, allocations: 1.66 MB / 436.7 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002013/0.2228, allocations: 27.81 kB / 436.7 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008264/0.2236, allocations: 354.8 kB / 437.1 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003523/0.224, allocations: 235 kB / 437.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004104/0.2244, allocations: 215.6 kB / 437.5 MB, free: 12.17 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004634/0.2249, allocations: 0.877 MB / 438.4 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003496/0.2252, allocations: 276.6 kB / 438.7 MB, free: 11.03 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002023/0.2255, allocations: 219 kB / 438.9 MB, free: 10.81 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000343/0.2258, allocations: 370.9 kB / 439.2 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.973e-05/0.2259, allocations: 28 kB / 439.3 MB, free: 10.42 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003401/0.2262, allocations: 243.5 kB / 439.5 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001406/0.2264, allocations: 227.5 kB / 439.7 MB, free: 9.961 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001754/0.2265, allocations: 242.7 kB / 440 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004128/0.227, allocations: 0.6503 MB / 440.6 MB, free: 9.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.227, allocations: 0 / 440.6 MB, free: 9.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.227, allocations: 8 kB / 440.6 MB, free: 9.062 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.227, allocations: 0 / 440.6 MB, free: 9.062 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001065/0.2281, allocations: 0.77 MB / 441.4 MB, free: 8.242 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.2281, allocations: 12.03 kB / 441.4 MB, free: 8.23 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.173e-05/0.2282, allocations: 86.7 kB / 441.5 MB, free: 8.137 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004954/0.2287, allocations: 88.23 kB / 441.6 MB, free: 8.051 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004571/0.2292, allocations: 411.2 kB / 442 MB, free: 7.609 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.622e-05/0.2292, allocations: 29.38 kB / 442 MB, free: 7.582 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.733e-05/0.2293, allocations: 47.92 kB / 442 MB, free: 7.535 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000697/0.23, allocations: 0.6804 MB / 442.7 MB, free: 6.816 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.23, allocations: 0 / 442.7 MB, free: 6.816 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.101e-05/0.2301, allocations: 16 kB / 442.7 MB, free: 6.801 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001537/0.2302, allocations: 44.97 kB / 442.8 MB, free: 6.754 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007351/0.231, allocations: 0.6752 MB / 443.5 MB, free: 6.082 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002482/0.2335, allocations: 2.52 MB / 446 MB, free: 3.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004053/0.2339, allocations: 345.3 kB / 446.3 MB, free: 3.074 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002174/0.2341, allocations: 217.7 kB / 446.5 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.111e-05/0.2341, allocations: 11.92 kB / 446.5 MB, free: 2.844 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.628e-05/0.2342, allocations: 38.56 kB / 446.6 MB, free: 2.797 MB / 318.1 MB Notification: Performance of pre-optimization done (n=42): time 1.643e-06/0.2342, allocations: 0 / 446.6 MB, free: 2.797 MB / 318.1 MB Notification: Performance of matching and sorting (n=43): time 0.001551/0.2357, allocations: 1.356 MB / 447.9 MB, free: 1.383 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.571e-05/0.2358, allocations: 81.11 kB / 448 MB, free: 1.285 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002008/0.236, allocations: 304.4 kB / 448.3 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.937e-05/0.236, allocations: 33.64 kB / 448.3 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.531e-05/0.2361, allocations: 255.6 kB / 448.6 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.64e-05/0.2362, allocations: 153.8 kB / 448.7 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.2363, allocations: 94.16 kB / 448.8 MB, free: 444 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.99e-05/0.2363, allocations: 350.9 kB / 449.2 MB, free: 84 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002624/0.2366, allocations: 197 kB / 449.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003721/0.237, allocations: 365.2 kB / 449.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006704/0.2376, allocations: 0.606 MB / 450.3 MB, free: 14.79 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2377, allocations: 0 / 450.3 MB, free: 14.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008395/0.2385, allocations: 0.6304 MB / 451 MB, free: 14.15 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.2385, allocations: 4 kB / 451 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.2385, allocations: 8 kB / 451 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.2386, allocations: 11.94 kB / 451 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004013/0.239, allocations: 115.8 kB / 451.1 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.293e-05/0.239, allocations: 11.94 kB / 451.1 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002275/0.2392, allocations: 20.45 kB / 451.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.233e-05/0.2393, allocations: 27.98 kB / 451.2 MB, free: 13.96 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 55 * Array equations: 2 * 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 0.0002118/0.2395, allocations: 217.6 kB / 451.4 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.049e-05/0.2396, allocations: 43.45 kB / 451.4 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007041/0.2403, allocations: 497.5 kB / 451.9 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.101e-05/0.2403, allocations: 12 kB / 451.9 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.2403, allocations: 0 / 451.9 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.2404, allocations: 3.984 kB / 451.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001554/0.2419, allocations: 1.104 MB / 453 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.2419, allocations: 4 kB / 453 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003463/0.2423, allocations: 75.88 kB / 453.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.2423, allocations: 4 kB / 453.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.621e-05/0.2423, allocations: 12.09 kB / 453.1 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.2423, allocations: 4 kB / 453.1 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.2423, allocations: 7.938 kB / 453.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.2434, allocations: 0.832 MB / 454 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.912e-05/0.2434, allocations: 104.7 kB / 454.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.471e-05/0.2435, allocations: 15.94 kB / 454.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001932/0.2437, allocations: 15.98 kB / 454.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.117e-05/0.2438, allocations: 27.91 kB / 454.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.353e-05/0.2438, allocations: 8 kB / 454.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001854/0.244, allocations: 211.1 kB / 454.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of sort global known variables: time 4e-07/0.244, allocations: 0 / 454.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004369/0.2444, allocations: 112 kB / 454.4 MB, free: 10.55 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (33): * Single equations (assignments): 30 * Array equations: 2 * 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.001307/0.2457, allocations: 1.395 MB / 455.8 MB, free: 9.113 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006365/0.2464, allocations: 483.5 kB / 456.3 MB, free: 8.641 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.2464, allocations: 1.375 kB / 456.3 MB, free: 8.641 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002707/0.2467, allocations: 227.8 kB / 456.5 MB, free: 8.418 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004962/0.2472, allocations: 73.69 kB / 456.6 MB, free: 8.344 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00486/0.2521, allocations: 4.575 MB / 461.2 MB, free: 3.531 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004148/0.2525, allocations: 0.882 MB / 462.1 MB, free: 2.625 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003314/0.2528, allocations: 123.2 kB / 462.2 MB, free: 2.504 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001954/0.253, allocations: 154.7 kB / 462.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of SimCode: time 7.21e-07/0.253, allocations: 0 / 462.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0181/0.2712, allocations: 7.426 MB / 469.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001708/0.2714, allocations: 203 kB / 470 MB, free: 10.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.976/2.247, allocations: 0 / 470 MB, free: 10.68 MB / 350.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1)