Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.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.Generic.Network.NetworkLoop_d,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_d,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_d",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.0009865/0.0009865, allocations: 92.33 kB / 16.31 MB, free: 6.457 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.001085/0.001085, allocations: 183 kB / 17.21 MB, free: 6.328 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.557/1.557, allocations: 205.4 MB / 223.4 MB, free: 5.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3221/0.3221, allocations: 38.05 MB / 309.7 MB, free: 8.852 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.0005066/0.0005067, allocations: 16 kB / 376.6 MB, free: 15.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1073, allocations: 56.33 MB / 432.9 MB, free: 6.613 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_d): time 0.00638/0.1137, allocations: 6.89 MB / 439.8 MB, free: 15.7 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00462/0.1184, allocations: 3.957 MB / 443.8 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003754/0.1188, allocations: 19.94 kB / 443.8 MB, free: 11.71 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000372/0.1192, allocations: 135 kB / 443.9 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001993/0.1212, allocations: 0.7937 MB / 444.7 MB, free: 10.78 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006821/0.1219, allocations: 223.4 kB / 445 MB, free: 10.56 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001824/0.1237, allocations: 1.874 MB / 446.8 MB, free: 8.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00048/0.1242, allocations: 324 kB / 447.1 MB, free: 8.336 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007685/0.125, allocations: 465.7 kB / 447.6 MB, free: 7.879 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007403/0.1257, allocations: 0.5683 MB / 448.2 MB, free: 7.309 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.991e-05/0.1258, allocations: 24 kB / 448.2 MB, free: 7.285 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001041/0.1268, allocations: 470.3 kB / 448.7 MB, free: 6.824 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002832/0.1271, allocations: 251.3 kB / 448.9 MB, free: 6.578 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001052/0.1272, allocations: 109.5 kB / 449 MB, free: 6.465 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006216/0.1279, allocations: 0.5806 MB / 449.6 MB, free: 5.883 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1279, allocations: 0 / 449.6 MB, free: 5.883 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1279, allocations: 0 / 449.6 MB, free: 5.883 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.1279, allocations: 0 / 449.6 MB, free: 5.883 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: 101 * Number of variables: 101 Notification: Performance of Generate backend data structure: time 0.0009595/0.1289, allocations: 0.7219 MB / 450.3 MB, free: 5.109 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.1289, allocations: 12.03 kB / 450.3 MB, free: 5.098 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.355e-05/0.129, allocations: 86.45 kB / 450.4 MB, free: 5.004 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001452/0.1305, allocations: 131.3 kB / 450.5 MB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004279/0.1309, allocations: 317.3 kB / 450.8 MB, free: 4.527 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.734e-05/0.131, allocations: 32.98 kB / 450.9 MB, free: 4.496 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.385e-05/0.131, allocations: 47.91 kB / 450.9 MB, free: 4.449 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008733/0.1319, allocations: 0.5749 MB / 451.5 MB, free: 3.805 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.1319, allocations: 7.938 kB / 451.5 MB, free: 3.797 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.309e-05/0.132, allocations: 19.98 kB / 451.5 MB, free: 3.777 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.511e-05/0.1321, allocations: 36.62 kB / 451.6 MB, free: 3.738 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005565/0.1326, allocations: 386.1 kB / 451.9 MB, free: 3.359 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002345/0.135, allocations: 2.603 MB / 454.5 MB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006649/0.1357, allocations: 439.8 kB / 455 MB, free: 176 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2088/0.3445, allocations: 201.9 kB / 455.2 MB, free: 51.92 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.622e-05/0.3446, allocations: 8.312 kB / 455.2 MB, free: 51.92 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.3446, allocations: 38.25 kB / 455.2 MB, free: 51.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 3.106e-06/0.3446, allocations: 0 / 455.2 MB, free: 51.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.00174/0.3464, allocations: 0.7543 MB / 456 MB, free: 51.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/0.3464, allocations: 110 kB / 456.1 MB, free: 51.62 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002979/0.3467, allocations: 317.6 kB / 456.4 MB, free: 51.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/0.3468, allocations: 32.55 kB / 456.4 MB, free: 51.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.3469, allocations: 246.7 kB / 456.7 MB, free: 51.37 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.99e-05/0.347, allocations: 120.1 kB / 456.8 MB, free: 51.3 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.459e-05/0.347, allocations: 10.09 kB / 456.8 MB, free: 51.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.213e-05/0.3471, allocations: 345 kB / 457.1 MB, free: 50.99 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001681/0.3473, allocations: 130.2 kB / 457.2 MB, free: 50.99 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002326/0.3475, allocations: 282.3 kB / 457.5 MB, free: 50.81 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002311/0.3478, allocations: 179.7 kB / 457.7 MB, free: 50.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.3478, allocations: 6.922 kB / 457.7 MB, free: 50.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0007395/0.3485, allocations: 0.5463 MB / 458.3 MB, free: 50.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.3485, allocations: 11.84 kB / 458.3 MB, free: 50.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.128e-06/0.3486, allocations: 3.125 kB / 458.3 MB, free: 50.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003327/0.3489, allocations: 125.2 kB / 458.4 MB, free: 50.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002218/0.3491, allocations: 75.69 kB / 458.5 MB, free: 50.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002131/0.3513, allocations: 2.343 MB / 460.8 MB, free: 49.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002009/0.3515, allocations: 44.72 kB / 460.8 MB, free: 49.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.462e-05/0.3515, allocations: 18.94 kB / 460.9 MB, free: 49.25 MB / 382.1 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.0001976/0.3517, allocations: 204.3 kB / 461.1 MB, free: 49.12 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.353e-05/0.3518, allocations: 41.73 kB / 461.1 MB, free: 49.1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.553e-05/0.3519, allocations: 50.91 kB / 461.2 MB, free: 49.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.3519, allocations: 5.719 kB / 461.2 MB, free: 49.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.395e-05/0.3519, allocations: 6.469 kB / 461.2 MB, free: 49.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.352, allocations: 3.375 kB / 461.2 MB, free: 49.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001119/0.3531, allocations: 0.9358 MB / 462.1 MB, free: 48.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.3531, allocations: 3.594 kB / 462.1 MB, free: 48.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001209/0.3532, allocations: 33.34 kB / 462.1 MB, free: 48.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002354/0.3535, allocations: 102 kB / 462.2 MB, free: 48.74 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.3535, allocations: 14.02 kB / 462.3 MB, free: 48.74 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001807/0.3553, allocations: 2.334 MB / 464.6 MB, free: 47.3 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.3553, allocations: 0 / 464.6 MB, free: 47.3 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006883/0.356, allocations: 0.6247 MB / 465.2 MB, free: 47.01 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.691e-05/0.3561, allocations: 112.3 kB / 465.3 MB, free: 46.9 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.843e-05/0.3561, allocations: 9.281 kB / 465.3 MB, free: 46.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000157/0.3563, allocations: 10.8 kB / 465.3 MB, free: 46.9 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.592e-05/0.3564, allocations: 24.94 kB / 465.4 MB, free: 46.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.975e-05/0.3564, allocations: 8.156 kB / 465.4 MB, free: 46.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002344/0.3566, allocations: 223.8 kB / 465.6 MB, free: 46.81 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3566, allocations: 0 / 465.6 MB, free: 46.81 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006746/0.3573, allocations: 164 kB / 465.8 MB, free: 46.8 MB / 382.1 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.0008407/0.3582, allocations: 1.168 MB / 466.9 MB, free: 45.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006933/0.3589, allocations: 0.5079 MB / 467.4 MB, free: 45.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3589, allocations: 320 / 467.4 MB, free: 45.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003337/0.3592, allocations: 339.9 kB / 467.8 MB, free: 45.62 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005071/0.3597, allocations: 68.69 kB / 467.8 MB, free: 45.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002809/0.3626, allocations: 2.449 MB / 470.3 MB, free: 44.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003926/0.363, allocations: 0.8836 MB / 471.2 MB, free: 43.52 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001659/0.3631, allocations: 69.55 kB / 471.2 MB, free: 43.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.3633, allocations: 119.8 kB / 471.3 MB, free: 43.42 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3633, allocations: 4 kB / 471.4 MB, free: 43.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01957/0.3829, allocations: 6.917 MB / 478.3 MB, free: 42.82 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001646/0.3831, allocations: 199.7 kB / 478.5 MB, free: 42.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.994/2.377, allocations: 7.062 kB / 478.5 MB, free: 42.59 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_d.fmu > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe 2>&1) Environment - environmentSimulation: