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.001059/0.001058, allocations: 95.52 kB / 16.31 MB, free: 5.996 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.001396/0.001396, allocations: 185.2 kB / 17.2 MB, free: 5.914 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.283/1.283, allocations: 205.4 MB / 223.4 MB, free: 13.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1648/0.1648, allocations: 38.05 MB / 309.7 MB, free: 6.121 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.0004724/0.0004726, allocations: 16 kB / 376.6 MB, free: 3.105 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.226/0.2265, allocations: 56.33 MB / 432.9 MB, free: 18.81 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.003554/0.2301, allocations: 4.287 MB / 437.2 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002072/0.2322, allocations: 1.654 MB / 438.9 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002007/0.2324, allocations: 23.81 kB / 438.9 MB, free: 12.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001583/0.2326, allocations: 63.58 kB / 438.9 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005136/0.2331, allocations: 243.2 kB / 439.2 MB, free: 12.52 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005327/0.2337, allocations: 219.5 kB / 439.4 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003865/0.2341, allocations: 327.7 kB / 439.7 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005704/0.2346, allocations: 422.6 kB / 440.1 MB, free: 11.54 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000219/0.2349, allocations: 195.2 kB / 440.3 MB, free: 11.35 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003045/0.2352, allocations: 255.3 kB / 440.6 MB, free: 11.1 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.075e-05/0.2352, allocations: 20 kB / 440.6 MB, free: 11.08 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002679/0.2355, allocations: 159.7 kB / 440.7 MB, free: 10.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001338/0.2357, allocations: 199.5 kB / 440.9 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.747e-05/0.2357, allocations: 109.5 kB / 441 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003453/0.2361, allocations: 486.9 kB / 441.5 MB, free: 10.14 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.736e-06/0.2361, allocations: 0 / 441.5 MB, free: 10.14 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.2361, allocations: 0 / 441.5 MB, free: 10.14 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.2361, allocations: 0 / 441.5 MB, free: 10.14 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.001064/0.2372, allocations: 0.6996 MB / 442.2 MB, free: 9.395 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.2372, allocations: 8.031 kB / 442.2 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.919e-05/0.2373, allocations: 90.45 kB / 442.3 MB, free: 9.289 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005821/0.2379, allocations: 103.3 kB / 442.4 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000561/0.2385, allocations: 386.1 kB / 442.8 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.2385, allocations: 29 kB / 442.8 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/0.2387, allocations: 51.97 kB / 442.9 MB, free: 8.691 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007239/0.2394, allocations: 0.6836 MB / 443.6 MB, free: 7.973 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.702e-05/0.2394, allocations: 4 kB / 443.6 MB, free: 7.969 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.08e-05/0.2395, allocations: 15.95 kB / 443.6 MB, free: 7.953 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001844/0.2396, allocations: 68.94 kB / 443.6 MB, free: 7.883 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007726/0.2404, allocations: 0.6596 MB / 444.3 MB, free: 7.227 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002779/0.2432, allocations: 2.662 MB / 447 MB, free: 4.41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003979/0.2436, allocations: 309.3 kB / 447.3 MB, free: 4.09 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.921e-05/0.2437, allocations: 4.062 kB / 447.3 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.755e-05/0.2437, allocations: 42.56 kB / 447.3 MB, free: 4.035 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.094e-06/0.2437, allocations: 0 / 447.3 MB, free: 4.035 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.001579/0.2453, allocations: 1.454 MB / 448.8 MB, free: 2.492 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.069e-05/0.2453, allocations: 92.98 kB / 448.9 MB, free: 2.383 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002042/0.2455, allocations: 283.2 kB / 449.1 MB, free: 2.098 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.223e-05/0.2456, allocations: 33.83 kB / 449.2 MB, free: 2.059 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.242e-05/0.2457, allocations: 263.6 kB / 449.4 MB, free: 1.797 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.064e-05/0.2457, allocations: 130.1 kB / 449.5 MB, free: 1.668 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.76e-05/0.2458, allocations: 8 kB / 449.6 MB, free: 1.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.504e-05/0.2458, allocations: 346.8 kB / 449.9 MB, free: 1.312 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000212/0.246, allocations: 184.9 kB / 450.1 MB, free: 1.129 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002349/0.2463, allocations: 321.3 kB / 450.4 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002467/0.2465, allocations: 247.8 kB / 450.6 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.2465, allocations: 4 kB / 450.6 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000963/0.2475, allocations: 0.6704 MB / 451.3 MB, free: 15.83 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.2475, allocations: 8 kB / 451.3 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007602/0.2483, allocations: 495.4 kB / 451.8 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003916/0.2487, allocations: 113.6 kB / 451.9 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000287/0.249, allocations: 79.89 kB / 452 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002515/0.2515, allocations: 3.065 MB / 455 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002253/0.2518, allocations: 19.98 kB / 455.1 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.605e-05/0.2518, allocations: 16 kB / 455.1 MB, free: 11.77 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002302/0.2521, allocations: 213.7 kB / 455.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.841e-05/0.2521, allocations: 39.48 kB / 455.3 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006706/0.2528, allocations: 472.6 kB / 455.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.06e-05/0.2529, allocations: 11.98 kB / 455.8 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.2529, allocations: 4 kB / 455.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.2529, allocations: 4 kB / 455.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001389/0.2543, allocations: 1.023 MB / 456.8 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.2543, allocations: 4 kB / 456.8 MB, free: 9.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003428/0.2546, allocations: 67.89 kB / 456.9 MB, free: 9.863 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.2547, allocations: 7.938 kB / 456.9 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.493e-05/0.2547, allocations: 8 kB / 456.9 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.2547, allocations: 0 / 456.9 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2547, allocations: 4.062 kB / 456.9 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009237/0.2556, allocations: 0.7719 MB / 457.7 MB, free: 9.027 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001747/0.2558, allocations: 140.7 kB / 457.8 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.59e-05/0.2559, allocations: 8 kB / 457.8 MB, free: 8.863 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001926/0.2561, allocations: 15.98 kB / 457.9 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.719e-05/0.2561, allocations: 24.3 kB / 457.9 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.23e-05/0.2562, allocations: 8 kB / 457.9 MB, free: 8.816 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001982/0.2564, allocations: 203.1 kB / 458.1 MB, free: 8.613 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2564, allocations: 0 / 458.1 MB, free: 8.613 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004951/0.2569, allocations: 108 kB / 458.2 MB, free: 8.508 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00136/0.2582, allocations: 1.574 MB / 459.8 MB, free: 6.887 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009901/0.2592, allocations: 0.6899 MB / 460.5 MB, free: 6.172 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.2592, allocations: 0 / 460.5 MB, free: 6.172 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002597/0.2595, allocations: 216.5 kB / 460.7 MB, free: 5.961 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003654/0.2599, allocations: 57.06 kB / 460.7 MB, free: 5.906 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004881/0.2648, allocations: 5.667 MB / 466.4 MB, free: 104 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005105/0.2653, allocations: 0.8866 MB / 467.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003095/0.2656, allocations: 103.2 kB / 467.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002051/0.2658, allocations: 139.4 kB / 467.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2659, allocations: 0 / 467.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02009/0.2859, allocations: 7.716 MB / 475.2 MB, free: 7.285 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002161/0.2862, allocations: 191.7 kB / 475.4 MB, free: 7.047 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.865/2.151, allocations: 0 / 475.4 MB, free: 7.047 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/linux/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) Environment - environmentSimulation: