Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.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_dq,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_dq",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_dq,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_dq",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.001387/0.001387, allocations: 93.3 kB / 16.3 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.001377/0.001377, allocations: 181.1 kB / 17.2 MB, free: 5.906 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.888/1.888, allocations: 205.4 MB / 223.4 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3673/0.3673, allocations: 38.06 MB / 309.7 MB, free: 8.809 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.0008662/0.0008665, allocations: 14.19 kB / 376.6 MB, free: 15.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.143, allocations: 56.34 MB / 432.9 MB, free: 6.629 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_dq): time 0.006827/0.1499, allocations: 6.482 MB / 439.4 MB, free: 124 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005762/0.1557, allocations: 4.031 MB / 443.4 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006492/0.1564, allocations: 15.94 kB / 443.5 MB, free: 12.06 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004412/0.1569, allocations: 143.2 kB / 443.6 MB, free: 11.92 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002105/0.159, allocations: 0.6385 MB / 444.2 MB, free: 11.28 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000765/0.1598, allocations: 235.4 kB / 444.5 MB, free: 11.05 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000729/0.1605, allocations: 0.5887 MB / 445.1 MB, free: 10.46 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00205/0.1626, allocations: 1.169 MB / 446.2 MB, free: 9.262 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007121/0.1633, allocations: 382.6 kB / 446.6 MB, free: 8.887 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004732/0.1638, allocations: 342.9 kB / 446.9 MB, free: 8.551 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.97e-05/0.1638, allocations: 32 kB / 447 MB, free: 8.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001598/0.1654, allocations: 0.6977 MB / 447.7 MB, free: 7.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003335/0.1658, allocations: 395.2 kB / 448 MB, free: 7.434 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001727/0.166, allocations: 173.3 kB / 448.2 MB, free: 7.258 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00114/0.1671, allocations: 1.033 MB / 449.2 MB, free: 6.223 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1671, allocations: 0 / 449.2 MB, free: 6.223 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1671, allocations: 0 / 449.2 MB, free: 6.223 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.829e-06/0.1672, allocations: 4 kB / 449.2 MB, free: 6.219 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.001357/0.1685, allocations: 0.9834 MB / 450.2 MB, free: 5.184 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.1686, allocations: 8.031 kB / 450.2 MB, free: 5.176 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001473/0.1687, allocations: 131 kB / 450.4 MB, free: 5.039 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00307/0.1718, allocations: 446.4 kB / 450.8 MB, free: 4.602 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007572/0.1726, allocations: 461.6 kB / 451.3 MB, free: 4.113 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.391e-05/0.1726, allocations: 57.92 kB / 451.3 MB, free: 4.055 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/0.1727, allocations: 67.98 kB / 451.4 MB, free: 3.988 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001615/0.1744, allocations: 1.164 MB / 452.5 MB, free: 2.801 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.93e-05/0.1744, allocations: 11.89 kB / 452.6 MB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.731e-05/0.1745, allocations: 31.92 kB / 452.6 MB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.723e-05/0.1746, allocations: 73.95 kB / 452.7 MB, free: 2.684 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00172/0.1763, allocations: 1.23 MB / 453.9 MB, free: 1.457 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1992/0.3755, allocations: 3.52 MB / 457.4 MB, free: 49.17 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001413/0.377, allocations: 1.064 MB / 458.5 MB, free: 49.12 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.583e-05/0.3771, allocations: 18.19 kB / 458.5 MB, free: 49.12 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.874e-05/0.3771, allocations: 41.69 kB / 458.5 MB, free: 49.08 MB / 382.1 MB Notification: Performance of pre-optimization done (n=91): time 3.697e-06/0.3771, allocations: 1.75 kB / 458.5 MB, free: 49.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=92): time 0.005805/0.3829, allocations: 3.056 MB / 461.6 MB, free: 48.76 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.823e-05/0.383, allocations: 93.36 kB / 461.7 MB, free: 48.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003318/0.3833, allocations: 359 kB / 462 MB, free: 48.55 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.307e-05/0.3834, allocations: 44.05 kB / 462.1 MB, free: 48.52 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/0.3835, allocations: 321.6 kB / 462.4 MB, free: 48.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002135/0.3838, allocations: 310.9 kB / 462.7 MB, free: 48.12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.974e-05/0.3838, allocations: 16 kB / 462.7 MB, free: 48.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.386e-05/0.3839, allocations: 371.8 kB / 463.1 MB, free: 47.81 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005932/0.3845, allocations: 468.7 kB / 463.5 MB, free: 47.81 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005971/0.3851, allocations: 0.5622 MB / 464.1 MB, free: 47.71 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006497/0.3858, allocations: 0.5401 MB / 464.6 MB, free: 47.56 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3858, allocations: 4 kB / 464.6 MB, free: 47.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00194/0.3877, allocations: 1.46 MB / 466.1 MB, free: 47.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.3878, allocations: 6.781 kB / 466.1 MB, free: 47.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.3878, allocations: 10.39 kB / 466.1 MB, free: 47.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007933/0.3886, allocations: 332.2 kB / 466.4 MB, free: 46.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006207/0.3892, allocations: 183.7 kB / 466.6 MB, free: 46.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004189/0.3934, allocations: 3.959 MB / 470.6 MB, free: 44.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004953/0.3939, allocations: 45.53 kB / 470.6 MB, free: 44.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.857e-05/0.394, allocations: 36.27 kB / 470.7 MB, free: 44.43 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (80): * Single equations (assignments): 79 * 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 {(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003756/0.3944, allocations: 296.8 kB / 470.9 MB, free: 44.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.261e-05/0.3945, allocations: 54.56 kB / 471 MB, free: 44.21 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002141/0.3966, allocations: 1.568 MB / 472.6 MB, free: 43.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.3967, allocations: 9.531 kB / 472.6 MB, free: 43.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3967, allocations: 6.844 kB / 472.6 MB, free: 43.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.3967, allocations: 6.609 kB / 472.6 MB, free: 43.59 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004033/0.4007, allocations: 3.029 MB / 475.6 MB, free: 42.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.4008, allocations: 3.188 kB / 475.6 MB, free: 42.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005507/0.4013, allocations: 170.8 kB / 475.8 MB, free: 42.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006772/0.402, allocations: 283.8 kB / 476.1 MB, free: 42.13 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.096e-05/0.4021, allocations: 25.03 kB / 476.1 MB, free: 42.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003672/0.4057, allocations: 3.704 MB / 479.8 MB, free: 39.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.4058, allocations: 3.344 kB / 479.8 MB, free: 39.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002002/0.4078, allocations: 1.762 MB / 481.6 MB, free: 38.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001519/0.4079, allocations: 141.4 kB / 481.7 MB, free: 38.65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.569e-05/0.408, allocations: 30.38 kB / 481.7 MB, free: 38.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004019/0.4084, allocations: 39.06 kB / 481.8 MB, free: 38.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.4086, allocations: 83.75 kB / 481.8 MB, free: 38.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.205e-05/0.4086, allocations: 40.34 kB / 481.9 MB, free: 38.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002304/0.4089, allocations: 254 kB / 482.1 MB, free: 38.46 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.062e-06/0.4089, allocations: 0 / 482.1 MB, free: 38.46 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008496/0.4097, allocations: 309.8 kB / 482.4 MB, free: 38.43 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (82): * Single equations (assignments): 80 * 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 {(2,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002189/0.4119, allocations: 3.356 MB / 485.8 MB, free: 35.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001681/0.4136, allocations: 1.385 MB / 487.2 MB, free: 35.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.4136, allocations: 2.625 kB / 487.2 MB, free: 35.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000936/0.4146, allocations: 0.8388 MB / 488 MB, free: 34.95 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004557/0.4151, allocations: 93.14 kB / 488.1 MB, free: 34.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006422/0.4215, allocations: 6.525 MB / 494.6 MB, free: 31.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005423/0.4221, allocations: 1.092 MB / 495.7 MB, free: 30.34 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004258/0.4225, allocations: 180.4 kB / 495.9 MB, free: 30.33 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003243/0.4228, allocations: 260.7 kB / 496.2 MB, free: 30.14 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4228, allocations: 0 / 496.2 MB, free: 30.14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03476/0.4576, allocations: 14.93 MB / 0.4991 GB, free: 27.3 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001735/0.4578, allocations: 202.1 kB / 0.4993 GB, free: 27.06 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.917/2.375, allocations: 0 / 0.4993 GB, free: 27.06 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_dq_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_dq.fmu > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe 2>&1) Environment - environmentSimulation: