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.001368/0.001369, allocations: 105.6 kB / 17.06 MB, free: 6.012 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.001136/0.001136, allocations: 195 kB / 18 MB, free: 5.094 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.379/1.379, allocations: 205.1 MB / 223.9 MB, free: 12.28 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.19/0.19, allocations: 37.99 MB / 309.2 MB, free: 5.961 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.002792/0.002792, allocations: 63.91 kB / 431.4 MB, free: 16.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.1517, allocations: 55.25 MB / 486.6 MB, free: 8.855 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.01091/0.1626, allocations: 4.405 MB / 491 MB, free: 4.422 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004128/0.1668, allocations: 1.559 MB / 492.6 MB, free: 2.855 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003644/0.1672, allocations: 11.94 kB / 492.6 MB, free: 2.844 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001352/0.1686, allocations: 283.2 kB / 492.9 MB, free: 2.566 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001082/0.1698, allocations: 286.6 kB / 493.1 MB, free: 2.285 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009926/0.1708, allocations: 251.4 kB / 493.4 MB, free: 2.039 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001141/0.1719, allocations: 0.6079 MB / 494 MB, free: 1.43 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006246/0.1726, allocations: 235.8 kB / 494.2 MB, free: 1.203 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006868/0.1733, allocations: 271 kB / 494.5 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000942/0.1742, allocations: 370.8 kB / 494.8 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000139/0.1744, allocations: 36 kB / 494.9 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007792/0.1752, allocations: 227.7 kB / 495.1 MB, free: 324 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004824/0.1757, allocations: 231.4 kB / 495.3 MB, free: 92 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005627/0.1763, allocations: 250.8 kB / 495.6 MB, free: 15.84 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001189/0.1775, allocations: 0.6737 MB / 496.3 MB, free: 15.17 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1775, allocations: 0 / 496.3 MB, free: 15.17 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1775, allocations: 3.938 kB / 496.3 MB, free: 15.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.875e-05/0.1776, allocations: 0 / 496.3 MB, free: 15.16 MB / 382.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.002265/0.1798, allocations: 0.7699 MB / 497 MB, free: 14.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.1799, allocations: 11.89 kB / 497 MB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001561/0.1801, allocations: 90.69 kB / 497.1 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001072/0.1812, allocations: 96.22 kB / 497.2 MB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001144/0.1823, allocations: 415.2 kB / 497.6 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.362e-05/0.1824, allocations: 29.38 kB / 497.7 MB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002337/0.1826, allocations: 47.91 kB / 497.7 MB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001731/0.1844, allocations: 0.7032 MB / 498.4 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.807e-05/0.1844, allocations: 3.938 kB / 498.4 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.903e-05/0.1845, allocations: 12 kB / 498.4 MB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003238/0.1848, allocations: 64.94 kB / 498.5 MB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001714/0.1866, allocations: 0.6674 MB / 499.1 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005808/0.1924, allocations: 2.654 MB / 0.49 GB, free: 9.332 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009855/0.1934, allocations: 314.5 kB / 0.4903 GB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004885/0.1939, allocations: 205.7 kB / 0.4905 GB, free: 8.801 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.786e-05/0.194, allocations: 4 kB / 0.4905 GB, free: 8.797 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.622e-05/0.1941, allocations: 50.48 kB / 0.4906 GB, free: 8.738 MB / 382.1 MB Notification: Performance of pre-optimization done (n=39): time 5.159e-06/0.1941, allocations: 0 / 0.4906 GB, free: 8.738 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.003565/0.1977, allocations: 1.287 MB / 0.4918 GB, free: 7.398 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.815e-05/0.1978, allocations: 89.05 kB / 0.4919 GB, free: 7.293 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005725/0.1984, allocations: 295.1 kB / 0.4922 GB, free: 7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.283e-05/0.1985, allocations: 33.83 kB / 0.4922 GB, free: 6.961 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000314/0.1988, allocations: 255.7 kB / 0.4925 GB, free: 6.703 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001813/0.199, allocations: 134 kB / 0.4926 GB, free: 6.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002315/0.1992, allocations: 86.03 kB / 0.4927 GB, free: 6.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002371/0.1995, allocations: 350.7 kB / 0.493 GB, free: 6.129 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005247/0.2, allocations: 188.9 kB / 0.4932 GB, free: 5.945 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006114/0.2007, allocations: 325.3 kB / 0.4935 GB, free: 5.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001111/0.2018, allocations: 0.5585 MB / 0.4941 GB, free: 4.953 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.2018, allocations: 0 / 0.4941 GB, free: 4.953 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001956/0.2038, allocations: 0.678 MB / 0.4947 GB, free: 4.262 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.2038, allocations: 4 kB / 0.4947 GB, free: 4.258 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001295/0.2051, allocations: 491.5 kB / 0.4952 GB, free: 3.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006999/0.2058, allocations: 117.6 kB / 0.4953 GB, free: 3.648 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004961/0.2064, allocations: 88.12 kB / 0.4954 GB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00428/0.2107, allocations: 3.266 MB / 0.4986 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003962/0.2111, allocations: 15.98 kB / 0.4986 GB, free: 0 / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.732e-05/0.2112, allocations: 20.05 kB / 0.4986 GB, free: 15.98 MB / 398.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.0003928/0.2116, allocations: 213.5 kB / 0.4988 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001754/0.2118, allocations: 39.47 kB / 0.4989 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001058/0.2129, allocations: 468.8 kB / 0.4993 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.342e-05/0.2129, allocations: 12 kB / 0.4993 GB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.2129, allocations: 3.938 kB / 0.4993 GB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.2129, allocations: 3.984 kB / 0.4993 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002338/0.2153, allocations: 1.015 MB / 0.5003 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/0.2153, allocations: 4 kB / 0.5003 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006554/0.216, allocations: 64.02 kB / 0.5004 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.48e-05/0.216, allocations: 19.86 kB / 0.5004 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.008e-05/0.2161, allocations: 8 kB / 0.5004 GB, free: 14.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/0.2161, allocations: 7.938 kB / 0.5004 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.2161, allocations: 0 / 0.5004 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001444/0.2175, allocations: 0.7357 MB / 0.5011 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002523/0.2178, allocations: 144.6 kB / 0.5013 GB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.561e-05/0.2179, allocations: 7.984 kB / 0.5013 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003348/0.2183, allocations: 15.98 kB / 0.5013 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.807e-05/0.2184, allocations: 23.91 kB / 0.5013 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.115e-05/0.2184, allocations: 11.98 kB / 0.5013 GB, free: 13.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003327/0.2188, allocations: 207.1 kB / 0.5015 GB, free: 12.87 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.2188, allocations: 4 kB / 0.5015 GB, free: 12.87 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000901/0.2197, allocations: 108 kB / 0.5016 GB, free: 12.76 MB / 398.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.002161/0.2219, allocations: 1.329 MB / 0.5029 GB, free: 11.4 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001673/0.2236, allocations: 0.7081 MB / 0.5036 GB, free: 10.66 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.2236, allocations: 1.125 kB / 0.5036 GB, free: 10.66 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004745/0.2241, allocations: 212.4 kB / 0.5038 GB, free: 10.46 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008571/0.2249, allocations: 76.47 kB / 0.5039 GB, free: 10.38 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009493/0.2345, allocations: 4.393 MB / 0.5082 GB, free: 5.766 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008691/0.2354, allocations: 0.8743 MB / 0.509 GB, free: 4.867 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005412/0.2359, allocations: 103.2 kB / 0.5091 GB, free: 4.766 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000336/0.2363, allocations: 143.4 kB / 0.5093 GB, free: 4.625 MB / 398.1 MB Notification: Performance of SimCode: time 8.61e-07/0.2363, allocations: 0 / 0.5093 GB, free: 4.625 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03138/0.2677, allocations: 8.287 MB / 0.5174 GB, free: 12.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/10.66, allocations: 4 kB / 0.5174 GB, free: 12.27 MB / 414.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)