Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.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.AC3ph.Transmission.PowerTransfer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.PowerTransfer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer",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.001038/0.001038, allocations: 105.9 kB / 16.5 MB, free: 6.688 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.001023/0.001023, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.391/1.391, 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.1743/0.1743, allocations: 38.01 MB / 308.6 MB, free: 6.227 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.001398/0.001398, allocations: 63.91 kB / 374.7 MB, free: 4.004 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.2352, allocations: 55.24 MB / 430 MB, free: 19.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.PowerTransfer): time 0.006503/0.2417, allocations: 5.356 MB / 435.3 MB, free: 14.37 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002014/0.2438, allocations: 1.571 MB / 436.9 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002186/0.244, allocations: 27.81 kB / 436.9 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009648/0.245, allocations: 386.5 kB / 437.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000378/0.2454, allocations: 215 kB / 437.5 MB, free: 12.17 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003408/0.2457, allocations: 159.7 kB / 437.7 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004891/0.2462, allocations: 0.7947 MB / 438.5 MB, free: 11.22 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004211/0.2467, allocations: 325.4 kB / 438.8 MB, free: 10.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002294/0.2469, allocations: 226.9 kB / 439 MB, free: 10.68 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003139/0.2472, allocations: 287 kB / 439.3 MB, free: 10.4 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.164e-05/0.2473, allocations: 24 kB / 439.3 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002403/0.2475, allocations: 131.7 kB / 439.4 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001337/0.2477, allocations: 175.5 kB / 439.6 MB, free: 10.08 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001694/0.2478, allocations: 218.9 kB / 439.8 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003781/0.2482, allocations: 0.5139 MB / 440.3 MB, free: 9.348 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2482, allocations: 0 / 440.3 MB, free: 9.348 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.81e-07/0.2483, allocations: 0 / 440.3 MB, free: 9.348 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.2483, allocations: 0 / 440.3 MB, free: 9.348 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.0009433/0.2492, allocations: 0.7223 MB / 441.1 MB, free: 8.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.328e-05/0.2493, allocations: 8.031 kB / 441.1 MB, free: 8.562 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.661e-05/0.2494, allocations: 78.7 kB / 441.1 MB, free: 8.477 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000656/0.25, allocations: 84.31 kB / 441.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004805/0.2505, allocations: 408 kB / 441.6 MB, free: 7.961 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.2505, allocations: 25.38 kB / 441.6 MB, free: 7.938 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/0.2506, allocations: 43.94 kB / 441.7 MB, free: 7.895 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005382/0.2512, allocations: 484.8 kB / 442.2 MB, free: 7.391 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.2512, allocations: 4 kB / 442.2 MB, free: 7.387 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.144e-05/0.2513, allocations: 11.98 kB / 442.2 MB, free: 7.375 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.709e-05/0.2514, allocations: 25 kB / 442.2 MB, free: 7.352 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004283/0.2518, allocations: 351.7 kB / 442.5 MB, free: 7.008 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001629/0.2534, allocations: 1.633 MB / 444.2 MB, free: 5.281 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002757/0.2537, allocations: 185 kB / 444.4 MB, free: 5.082 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001311/0.2539, allocations: 109.7 kB / 444.5 MB, free: 4.969 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/0.2539, allocations: 0 / 444.5 MB, free: 4.969 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.2539, allocations: 46.44 kB / 444.5 MB, free: 4.914 MB / 318.1 MB Notification: Performance of pre-optimization done (n=19): time 1.142e-06/0.2539, allocations: 0 / 444.5 MB, free: 4.914 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.001077/0.255, allocations: 0.7863 MB / 445.3 MB, free: 4.074 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.456e-05/0.2551, allocations: 77.11 kB / 445.4 MB, free: 3.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002149/0.2553, allocations: 308.5 kB / 445.7 MB, free: 3.676 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.837e-05/0.2553, allocations: 33.64 kB / 445.7 MB, free: 3.637 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.2554, allocations: 255.6 kB / 446 MB, free: 3.383 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.988e-05/0.2555, allocations: 71 kB / 446 MB, free: 3.312 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.58e-05/0.2555, allocations: 65.59 kB / 446.1 MB, free: 3.242 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.41e-05/0.2556, allocations: 342.8 kB / 446.4 MB, free: 2.898 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.2557, allocations: 91.95 kB / 446.5 MB, free: 2.809 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.2559, allocations: 208.5 kB / 446.7 MB, free: 2.559 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003094/0.2562, allocations: 329.2 kB / 447 MB, free: 2.191 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2562, allocations: 0 / 447 MB, free: 2.191 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006441/0.2569, allocations: 433.7 kB / 447.5 MB, free: 1.758 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.2569, allocations: 4 kB / 447.5 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004153/0.2573, allocations: 260.5 kB / 447.7 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003155/0.2576, allocations: 76.78 kB / 447.8 MB, free: 1.418 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002107/0.2579, allocations: 67.89 kB / 447.9 MB, free: 1.352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001316/0.2592, allocations: 1.585 MB / 449.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001769/0.2594, allocations: 8 kB / 449.5 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.663e-05/0.2594, allocations: 24.03 kB / 449.5 MB, free: 15.59 MB / 334.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 (34): * Single equations (assignments): 33 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002202/0.2596, allocations: 197.6 kB / 449.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.517e-05/0.2597, allocations: 27.62 kB / 449.7 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004369/0.2602, allocations: 264.6 kB / 450 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.2602, allocations: 4 kB / 450 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.2602, allocations: 0 / 450 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.2602, allocations: 7.984 kB / 450 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001091/0.2613, allocations: 0.7497 MB / 450.7 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.2613, allocations: 3.938 kB / 450.7 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002678/0.2616, allocations: 51.97 kB / 450.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.2616, allocations: 0 / 450.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/0.2616, allocations: 8 kB / 450.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.2616, allocations: 8.062 kB / 450.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.2616, allocations: 7.875 kB / 450.8 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005534/0.2622, allocations: 445.5 kB / 451.2 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.864e-05/0.2623, allocations: 116.6 kB / 451.3 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.124e-05/0.2623, allocations: 8 kB / 451.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001558/0.2625, allocations: 11.94 kB / 451.4 MB, free: 13.58 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.989e-05/0.2626, allocations: 11.98 kB / 451.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.998e-05/0.2626, allocations: 11.98 kB / 451.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002027/0.2628, allocations: 215 kB / 451.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2628, allocations: 4 kB / 451.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003881/0.2632, allocations: 84 kB / 451.7 MB, free: 13.26 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (line.i[1],line.i[2],line.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 (23): * Single equations (assignments): 22 * 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.0008287/0.264, allocations: 0.9841 MB / 452.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006377/0.2647, allocations: 382.5 kB / 453 MB, free: 11.85 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2647, allocations: 0 / 453 MB, free: 11.85 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001473/0.2648, allocations: 99.84 kB / 453.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005071/0.2654, allocations: 66.2 kB / 453.2 MB, free: 11.69 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004473/0.2698, allocations: 3.712 MB / 456.9 MB, free: 7.797 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004232/0.2703, allocations: 0.8497 MB / 457.8 MB, free: 6.918 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002264/0.2705, allocations: 74.91 kB / 457.8 MB, free: 6.848 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001796/0.2707, allocations: 135.4 kB / 458 MB, free: 6.715 MB / 334.1 MB Notification: Performance of SimCode: time 1.573e-06/0.2707, allocations: 0 / 458 MB, free: 6.715 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01877/0.2895, allocations: 6.796 MB / 464.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002415/0.2898, allocations: 223.5 kB / 465 MB, free: 15.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.911/2.201, allocations: 0 / 465 MB, free: 15.68 MB / 350.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe 2>&1)