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.000777/0.0007771, allocations: 88.3 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.0009146/0.0009146, allocations: 173.1 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.287/1.287, allocations: 205.4 MB / 223.7 MB, free: 12.98 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.173/0.173, 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.0006051/0.0006052, allocations: 16.56 kB / 377.3 MB, free: 2.605 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.2553, allocations: 56.33 MB / 433.6 MB, free: 18.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.003949/0.2593, allocations: 4.667 MB / 438.3 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002717/0.262, allocations: 1.731 MB / 440 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003083/0.2623, allocations: 27.81 kB / 440 MB, free: 12.19 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001939/0.2626, allocations: 55.55 kB / 440.1 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006044/0.2632, allocations: 262.9 kB / 440.3 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000574/0.2638, allocations: 223.6 kB / 440.6 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006075/0.2644, allocations: 0.9512 MB / 441.5 MB, free: 10.71 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006104/0.265, allocations: 463.5 kB / 442 MB, free: 10.22 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002644/0.2653, allocations: 211 kB / 442.2 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004079/0.2657, allocations: 370.8 kB / 442.5 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.124e-05/0.2657, allocations: 20 kB / 442.5 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003662/0.2661, allocations: 243.5 kB / 442.8 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00014/0.2663, allocations: 215.4 kB / 443 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001645/0.2664, allocations: 248.5 kB / 443.2 MB, free: 8.934 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004521/0.2669, allocations: 0.6424 MB / 443.9 MB, free: 8.289 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.2669, allocations: 0 / 443.9 MB, free: 8.289 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2669, allocations: 0 / 443.9 MB, free: 8.289 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.2669, allocations: 0 / 443.9 MB, free: 8.289 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.001066/0.268, allocations: 0.6881 MB / 444.6 MB, free: 7.555 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.268, allocations: 12.03 kB / 444.6 MB, free: 7.543 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.778e-05/0.2681, allocations: 86.64 kB / 444.7 MB, free: 7.449 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005815/0.2687, allocations: 92.2 kB / 444.8 MB, free: 7.359 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000454/0.2692, allocations: 399.2 kB / 445.1 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.2692, allocations: 29.36 kB / 445.2 MB, free: 6.902 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/0.2693, allocations: 51.91 kB / 445.2 MB, free: 6.852 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007613/0.2701, allocations: 0.6915 MB / 445.9 MB, free: 6.125 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.2701, allocations: 0 / 445.9 MB, free: 6.125 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.441e-05/0.2702, allocations: 19.98 kB / 445.9 MB, free: 6.105 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001881/0.2704, allocations: 68.94 kB / 446 MB, free: 6.035 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007719/0.2712, allocations: 0.6752 MB / 446.7 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00259/0.2738, allocations: 2.658 MB / 449.3 MB, free: 2.555 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004275/0.2742, allocations: 317.3 kB / 449.6 MB, free: 2.227 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002094/0.2744, allocations: 205.7 kB / 449.8 MB, free: 2.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.275e-05/0.2745, allocations: 8 kB / 449.9 MB, free: 2.012 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.2745, allocations: 38.56 kB / 449.9 MB, free: 1.965 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.773e-06/0.2745, allocations: 0 / 449.9 MB, free: 1.965 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.001544/0.2761, allocations: 1.296 MB / 451.2 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.402e-05/0.2761, allocations: 81.05 kB / 451.3 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002232/0.2763, allocations: 295.3 kB / 451.6 MB, free: 228 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/0.2764, allocations: 33.7 kB / 451.6 MB, free: 188 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001504/0.2765, allocations: 247.7 kB / 451.8 MB, free: 15.94 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000111/0.2766, allocations: 138 kB / 452 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.23e-05/0.2767, allocations: 45.69 kB / 452 MB, free: 15.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.2769, allocations: 346.8 kB / 452.3 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002637/0.2771, allocations: 188.9 kB / 452.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003642/0.2775, allocations: 329.2 kB / 452.9 MB, free: 14.83 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006759/0.2782, allocations: 0.5621 MB / 453.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.2782, allocations: 0 / 453.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001173/0.2794, allocations: 0.6896 MB / 454.1 MB, free: 13.51 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.2794, allocations: 4 kB / 454.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007985/0.2802, allocations: 487.5 kB / 454.6 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004461/0.2807, allocations: 113.9 kB / 454.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002863/0.281, allocations: 87.83 kB / 454.8 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0027/0.2837, allocations: 3.014 MB / 457.8 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002419/0.2839, allocations: 27.97 kB / 457.8 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.377e-05/0.284, allocations: 24.06 kB / 457.8 MB, free: 9.488 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.0002987/0.2843, allocations: 209.5 kB / 458 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.743e-05/0.2844, allocations: 43.52 kB / 458.1 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007084/0.2851, allocations: 464.6 kB / 458.5 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.481e-05/0.2851, allocations: 16 kB / 458.6 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-06/0.2852, allocations: 4 kB / 458.6 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.2852, allocations: 0 / 458.6 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001362/0.2865, allocations: 1.015 MB / 459.6 MB, free: 7.672 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.2866, allocations: 4 kB / 459.6 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003261/0.2869, allocations: 63.89 kB / 459.6 MB, free: 7.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.2869, allocations: 7.938 kB / 459.7 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.542e-05/0.2869, allocations: 12.06 kB / 459.7 MB, free: 7.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.2869, allocations: 0 / 459.7 MB, free: 7.586 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.2869, allocations: 3.984 kB / 459.7 MB, free: 7.582 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009466/0.2879, allocations: 0.7513 MB / 460.4 MB, free: 6.805 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/0.288, allocations: 136.7 kB / 460.6 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.367e-05/0.2881, allocations: 12 kB / 460.6 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/0.2883, allocations: 19.97 kB / 460.6 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.851e-05/0.2884, allocations: 19.92 kB / 460.6 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.516e-05/0.2884, allocations: 11.98 kB / 460.6 MB, free: 6.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002025/0.2886, allocations: 203.1 kB / 460.8 MB, free: 6.391 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2886, allocations: 0 / 460.8 MB, free: 6.391 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004892/0.2891, allocations: 116 kB / 460.9 MB, free: 6.277 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.001371/0.2905, allocations: 1.327 MB / 462.3 MB, free: 4.914 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00103/0.2915, allocations: 0.7088 MB / 463 MB, free: 4.18 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.2915, allocations: 0 / 463 MB, free: 4.18 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002708/0.2918, allocations: 213.4 kB / 463.2 MB, free: 3.973 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005482/0.2924, allocations: 73.16 kB / 463.2 MB, free: 3.902 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005417/0.2978, allocations: 4.637 MB / 467.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005045/0.2983, allocations: 0.8704 MB / 468.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003057/0.2987, allocations: 115.2 kB / 468.9 MB, free: 14.03 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001967/0.2989, allocations: 139.4 kB / 469 MB, free: 13.89 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2989, allocations: 0 / 469 MB, free: 13.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02062/0.3195, allocations: 7.568 MB / 476.6 MB, free: 6.379 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002421/0.3198, allocations: 219.7 kB / 476.8 MB, free: 6.117 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.886/2.206, allocations: 0 / 476.8 MB, free: 6.117 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)