Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_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.001068/0.001068, allocations: 102.5 kB / 16.51 MB, free: 6.645 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.001319/0.001319, allocations: 195 kB / 17.42 MB, free: 6.066 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.425/1.425, allocations: 205.1 MB / 223.3 MB, free: 12.46 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1668/0.1668, allocations: 37.98 MB / 308.6 MB, free: 6.25 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.00137/0.00137, allocations: 67.03 kB / 374.7 MB, free: 4.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2391, allocations: 55.24 MB / 430 MB, free: 19.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.004887/0.244, allocations: 5.06 MB / 435 MB, free: 14.69 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002134/0.2462, allocations: 1.758 MB / 436.8 MB, free: 12.92 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002328/0.2464, allocations: 23.81 kB / 436.8 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006887/0.2471, allocations: 263.1 kB / 437.1 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004611/0.2476, allocations: 258.9 kB / 437.3 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000471/0.2481, allocations: 227.6 kB / 437.5 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005238/0.2486, allocations: 0.9473 MB / 438.5 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003045/0.2489, allocations: 223.3 kB / 438.7 MB, free: 11 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002178/0.2491, allocations: 223 kB / 438.9 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003673/0.2495, allocations: 386.8 kB / 439.3 MB, free: 10.4 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.906e-05/0.2496, allocations: 24 kB / 439.3 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003734/0.25, allocations: 239.5 kB / 439.6 MB, free: 10.14 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001416/0.2501, allocations: 223.4 kB / 439.8 MB, free: 9.922 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001668/0.2503, allocations: 238.7 kB / 440 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004397/0.2507, allocations: 0.6464 MB / 440.7 MB, free: 9.039 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.2507, allocations: 4 kB / 440.7 MB, free: 9.035 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2508, allocations: 0 / 440.7 MB, free: 9.035 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.2508, allocations: 0 / 440.7 MB, free: 9.035 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001115/0.2519, allocations: 0.7738 MB / 441.4 MB, free: 8.215 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.2519, allocations: 8.031 kB / 441.4 MB, free: 8.207 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.959e-05/0.252, allocations: 86.7 kB / 441.5 MB, free: 8.113 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005719/0.2526, allocations: 88.22 kB / 441.6 MB, free: 8.027 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000465/0.2531, allocations: 411.2 kB / 442 MB, free: 7.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.2531, allocations: 25.36 kB / 442 MB, free: 7.562 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.2532, allocations: 59.91 kB / 442.1 MB, free: 7.504 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007625/0.254, allocations: 0.6876 MB / 442.8 MB, free: 6.781 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.254, allocations: 3.938 kB / 442.8 MB, free: 6.777 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.229e-05/0.2541, allocations: 19.98 kB / 442.8 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001789/0.2543, allocations: 68.94 kB / 442.9 MB, free: 6.688 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007506/0.255, allocations: 0.6674 MB / 443.5 MB, free: 6.023 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002583/0.2576, allocations: 2.658 MB / 446.2 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000433/0.2581, allocations: 318.7 kB / 446.5 MB, free: 2.887 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002074/0.2583, allocations: 205.7 kB / 446.7 MB, free: 2.68 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.239e-05/0.2583, allocations: 4 kB / 446.7 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.284e-05/0.2584, allocations: 38.5 kB / 446.8 MB, free: 2.629 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.774e-06/0.2584, allocations: 0 / 446.8 MB, free: 2.629 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.001592/0.26, allocations: 1.292 MB / 448 MB, free: 1.285 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.775e-05/0.26, allocations: 85.09 kB / 448.1 MB, free: 1.184 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002108/0.2602, allocations: 291.2 kB / 448.4 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.2603, allocations: 33.7 kB / 448.4 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.38e-05/0.2604, allocations: 247.7 kB / 448.7 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.773e-05/0.2604, allocations: 138 kB / 448.8 MB, free: 480 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.578e-05/0.2605, allocations: 94.14 kB / 448.9 MB, free: 376 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.53e-05/0.2606, allocations: 350.7 kB / 449.3 MB, free: 16 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002642/0.2608, allocations: 188.8 kB / 449.4 MB, free: 15.83 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003199/0.2612, allocations: 321.3 kB / 449.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006096/0.2618, allocations: 0.5582 MB / 450.3 MB, free: 14.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2618, allocations: 0 / 450.3 MB, free: 14.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001142/0.263, allocations: 0.6855 MB / 451 MB, free: 14.14 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.263, allocations: 8.562 kB / 451 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007795/0.2638, allocations: 483.5 kB / 451.5 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004276/0.2642, allocations: 125.5 kB / 451.6 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002749/0.2645, allocations: 75.89 kB / 451.7 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002603/0.2671, allocations: 3.026 MB / 454.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002316/0.2674, allocations: 23.97 kB / 454.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.898e-05/0.2674, allocations: 16 kB / 454.7 MB, free: 10.12 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002699/0.2677, allocations: 237.5 kB / 455 MB, free: 9.879 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.741e-05/0.2678, allocations: 27.62 kB / 455 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000686/0.2685, allocations: 472.5 kB / 455.5 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.852e-05/0.2685, allocations: 8 kB / 455.5 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-06/0.2685, allocations: 0 / 455.5 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.2685, allocations: 7.984 kB / 455.5 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001326/0.2699, allocations: 1.011 MB / 456.5 MB, free: 8.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.2699, allocations: 0 / 456.5 MB, free: 8.293 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003257/0.2702, allocations: 71.89 kB / 456.6 MB, free: 8.223 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.2702, allocations: 0 / 456.6 MB, free: 8.223 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.847e-05/0.2702, allocations: 11.98 kB / 456.6 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.81e-06/0.2703, allocations: 4 kB / 456.6 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.2703, allocations: 0 / 456.6 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008823/0.2712, allocations: 0.7512 MB / 457.3 MB, free: 7.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001284/0.2713, allocations: 132.8 kB / 457.5 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.664e-05/0.2713, allocations: 11.98 kB / 457.5 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001822/0.2715, allocations: 15.98 kB / 457.5 MB, free: 7.254 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.406e-05/0.2716, allocations: 23.91 kB / 457.5 MB, free: 7.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.306e-05/0.2716, allocations: 8 kB / 457.5 MB, free: 7.223 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001854/0.2718, allocations: 211.1 kB / 457.7 MB, free: 7.016 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2718, allocations: 0 / 457.7 MB, free: 7.016 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004839/0.2723, allocations: 108 kB / 457.8 MB, free: 6.91 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.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 (30): * Single equations (assignments): 27 * 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.001229/0.2735, allocations: 1.335 MB / 459.2 MB, free: 5.539 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009342/0.2745, allocations: 0.7134 MB / 459.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2745, allocations: 0 / 459.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002514/0.2748, allocations: 208.2 kB / 460.1 MB, free: 4.598 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004718/0.2752, allocations: 80.88 kB / 460.2 MB, free: 4.52 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006043/0.2813, allocations: 4.554 MB / 464.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004475/0.2818, allocations: 0.8743 MB / 465.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003151/0.2821, allocations: 107.2 kB / 465.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00019/0.2823, allocations: 139.4 kB / 465.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2823, allocations: 0 / 465.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02037/0.3027, allocations: 7.698 MB / 473.5 MB, free: 6.926 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002198/0.3029, allocations: 212.2 kB / 473.7 MB, free: 6.672 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.862/2.165, allocations: 4.062 kB / 473.7 MB, free: 6.668 MB / 350.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Source_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Source.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1)