Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkLoop_d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_d,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Network_NetworkLoop_d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_d,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Network_NetworkLoop_d",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00158/0.001586, allocations: 191.3 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.019/2.019, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001157/0.001157, allocations: 94.81 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2654/0.2654, allocations: 38.06 MB / 356.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004638/0.0004639, allocations: 12 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.108, allocations: 56.33 MB / 479.1 MB, free: 1.945 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_d): time 0.01015/0.1182, allocations: 6.621 MB / 485.8 MB, free: 11.3 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.007884/0.1262, allocations: 3.821 MB / 489.6 MB, free: 7.461 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006064/0.1268, allocations: 15.94 kB / 489.6 MB, free: 7.445 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00056/0.1274, allocations: 143.2 kB / 489.7 MB, free: 7.305 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002581/0.13, allocations: 0.549 MB / 490.3 MB, free: 6.754 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001105/0.1311, allocations: 227.4 kB / 490.5 MB, free: 6.531 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001267/0.1324, allocations: 0.5536 MB / 491.1 MB, free: 5.977 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006578/0.1331, allocations: 320.1 kB / 491.4 MB, free: 5.645 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009212/0.1341, allocations: 358.6 kB / 491.7 MB, free: 5.293 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006399/0.1347, allocations: 286.9 kB / 492 MB, free: 5.012 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 7.502e-05/0.1348, allocations: 20 kB / 492 MB, free: 4.992 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001588/0.1364, allocations: 446.9 kB / 492.5 MB, free: 4.555 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003774/0.1368, allocations: 223.5 kB / 492.7 MB, free: 4.336 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001915/0.137, allocations: 109.5 kB / 492.8 MB, free: 4.223 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001423/0.1385, allocations: 0.5845 MB / 493.4 MB, free: 3.637 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1385, allocations: 0 / 493.4 MB, free: 3.637 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1386, allocations: 0 / 493.4 MB, free: 3.637 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.388e-06/0.1386, allocations: 0 / 493.4 MB, free: 3.637 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 101 * Number of variables: 101 Notification: Performance of Generate backend data structure: time 0.001481/0.1401, allocations: 0.718 MB / 494.1 MB, free: 2.871 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.1401, allocations: 8.031 kB / 494.1 MB, free: 2.863 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001447/0.1403, allocations: 86.52 kB / 494.2 MB, free: 2.77 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002217/0.1425, allocations: 147.2 kB / 494.3 MB, free: 2.625 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006679/0.1432, allocations: 321.2 kB / 494.6 MB, free: 2.273 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.024e-05/0.1433, allocations: 28.98 kB / 494.7 MB, free: 2.246 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.843e-05/0.1434, allocations: 43.97 kB / 494.7 MB, free: 2.203 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001349/0.1447, allocations: 0.5749 MB / 495.3 MB, free: 1.559 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.238e-05/0.1448, allocations: 0 / 495.3 MB, free: 1.559 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.763e-05/0.1449, allocations: 23.94 kB / 495.3 MB, free: 1.535 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001102/0.145, allocations: 40.62 kB / 495.3 MB, free: 1.496 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009656/0.146, allocations: 382.1 kB / 495.7 MB, free: 1.117 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003864/0.1498, allocations: 2.6 MB / 498.3 MB, free: 14.39 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.151, allocations: 435.8 kB / 498.7 MB, free: 13.94 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.008e-05/0.1511, allocations: 4.062 kB / 498.7 MB, free: 13.94 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.533e-05/0.1511, allocations: 42.5 kB / 498.8 MB, free: 13.89 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 3.928e-06/0.1511, allocations: 0 / 498.8 MB, free: 13.89 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.002893/0.154, allocations: 0.754 MB / 499.5 MB, free: 13.11 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.752e-05/0.1541, allocations: 110.8 kB / 499.6 MB, free: 12.97 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005199/0.1547, allocations: 316.5 kB / 500 MB, free: 12.65 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.582e-05/0.1547, allocations: 29.7 kB / 500 MB, free: 12.62 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002272/0.155, allocations: 298.2 kB / 0.4885 GB, free: 12.32 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001496/0.1551, allocations: 114.4 kB / 0.4887 GB, free: 12.21 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.973e-05/0.1552, allocations: 12 kB / 0.4887 GB, free: 12.2 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.1553, allocations: 330.9 kB / 0.489 GB, free: 11.87 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003351/0.1557, allocations: 128.8 kB / 0.4891 GB, free: 11.74 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004698/0.1562, allocations: 276 kB / 0.4894 GB, free: 11.4 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004528/0.1566, allocations: 185.1 kB / 0.4895 GB, free: 11.22 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.1567, allocations: 0 / 0.4895 GB, free: 11.22 MB / 346.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001434/0.1581, allocations: 0.5421 MB / 0.4901 GB, free: 10.67 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.1581, allocations: 8 kB / 0.4901 GB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.1582, allocations: 4 kB / 0.4901 GB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000581/0.1588, allocations: 120.8 kB / 0.4902 GB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004808/0.1593, allocations: 76.19 kB / 0.4903 GB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003966/0.1632, allocations: 2.377 MB / 0.4926 GB, free: 7.938 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004029/0.1637, allocations: 47.81 kB / 0.4926 GB, free: 7.891 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.142e-05/0.1638, allocations: 16 kB / 0.4927 GB, free: 7.875 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000338/0.1641, allocations: 213.6 kB / 0.4929 GB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/0.1642, allocations: 39.58 kB / 0.4929 GB, free: 7.617 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001163/0.1644, allocations: 51.89 kB / 0.4929 GB, free: 7.566 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.293e-06/0.1644, allocations: 4 kB / 0.493 GB, free: 7.562 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/0.1644, allocations: 4 kB / 0.493 GB, free: 7.559 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.1644, allocations: 3.984 kB / 0.493 GB, free: 7.555 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002055/0.1665, allocations: 0.9338 MB / 0.4939 GB, free: 6.555 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.1665, allocations: 4 kB / 0.4939 GB, free: 6.551 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002829/0.1668, allocations: 39.92 kB / 0.4939 GB, free: 6.512 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004455/0.1673, allocations: 108.3 kB / 0.494 GB, free: 6.406 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.084e-05/0.1673, allocations: 12.06 kB / 0.494 GB, free: 6.395 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003903/0.1712, allocations: 2.365 MB / 0.4963 GB, free: 3.887 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.1713, allocations: 0 / 0.4963 GB, free: 3.887 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0013/0.1726, allocations: 0.6682 MB / 0.497 GB, free: 3.164 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001586/0.1728, allocations: 128.5 kB / 0.4971 GB, free: 3.02 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.23e-05/0.1729, allocations: 4 kB / 0.4971 GB, free: 3.016 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003038/0.1732, allocations: 8 kB / 0.4971 GB, free: 3.008 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.117e-05/0.1733, allocations: 23.97 kB / 0.4971 GB, free: 2.984 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.531e-05/0.1733, allocations: 4 kB / 0.4972 GB, free: 2.98 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000346/0.1737, allocations: 223 kB / 0.4974 GB, free: 2.762 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.1737, allocations: 4 kB / 0.4974 GB, free: 2.758 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001009/0.1747, allocations: 155.8 kB / 0.4975 GB, free: 2.605 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001702/0.1764, allocations: 1.489 MB / 0.499 GB, free: 1.059 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001332/0.1778, allocations: 0.5188 MB / 0.4995 GB, free: 0.5273 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.1778, allocations: 4.25 kB / 0.4995 GB, free: 0.5234 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000769/0.1786, allocations: 338.5 kB / 0.4998 GB, free: 184 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005953/0.1792, allocations: 53.8 kB / 0.4999 GB, free: 128 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006499/0.1857, allocations: 5.672 MB / 0.5054 GB, free: 10.29 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006382/0.1864, allocations: 0.8863 MB / 0.5063 GB, free: 9.375 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002989/0.1867, allocations: 119.4 kB / 0.5064 GB, free: 9.258 MB / 362.7 MB Notification: Performance of SimCode: time 9.82e-07/0.1867, allocations: 384 / 0.5064 GB, free: 9.258 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.68/2.866, allocations: 7.754 MB / 0.5139 GB, free: 1.488 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkLoop_d.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Generic_Network_NetworkLoop_d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Generic_Network_NetworkLoop_d.fmu > PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe 2>&1)