Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad",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.001011/0.001011, allocations: 104 kB / 16.03 MB, free: 6.34 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.0009873/0.0009874, allocations: 194 kB / 16.95 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.269/1.269, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04233/0.04233, allocations: 8.084 MB / 298.9 MB, free: 6.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001147, allocations: 60.09 kB / 361.3 MB, free: 8.352 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1722/0.1734, allocations: 51.52 MB / 412.8 MB, free: 25.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad): time 0.002135/0.1755, allocations: 1.608 MB / 414.4 MB, free: 24.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001246/0.1768, allocations: 1.543 MB / 416 MB, free: 22.62 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.785e-05/0.1769, allocations: 4 kB / 416 MB, free: 22.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002815/0.1772, allocations: 103.6 kB / 416.1 MB, free: 22.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002241/0.1774, allocations: 107.4 kB / 416.2 MB, free: 22.41 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo:34:7-34:67:writable] Warning: In relation pv.rampTime == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.00112/0.1785, allocations: 0.8641 MB / 417.1 MB, free: 21.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002042/0.1787, allocations: 242.8 kB / 417.3 MB, free: 21.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.1789, allocations: 80.16 kB / 417.4 MB, free: 21.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.782e-05/0.1789, allocations: 103.6 kB / 417.5 MB, free: 21.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.1791, allocations: 127.5 kB / 417.6 MB, free: 20.99 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.696e-05/0.1791, allocations: 23.94 kB / 417.6 MB, free: 20.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000242/0.1794, allocations: 207.8 kB / 417.8 MB, free: 20.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.374e-05/0.1794, allocations: 55.77 kB / 417.9 MB, free: 20.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.024e-05/0.1795, allocations: 111.5 kB / 418 MB, free: 20.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003127/0.1798, allocations: 405 kB / 418.4 MB, free: 20.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1798, allocations: 0 / 418.4 MB, free: 20.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1798, allocations: 0 / 418.4 MB, free: 20.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.1798, allocations: 0 / 418.4 MB, free: 20.2 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.002007/0.1818, allocations: 0.8108 MB / 419.2 MB, free: 19.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.163e-05/0.1819, allocations: 15.89 kB / 419.2 MB, free: 19.32 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.218e-05/0.1819, allocations: 46.73 kB / 419.3 MB, free: 19.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.615e-05/0.182, allocations: 28.66 kB / 419.3 MB, free: 19.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001975/0.1822, allocations: 264.7 kB / 419.5 MB, free: 18.94 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.1822, allocations: 16.38 kB / 419.6 MB, free: 18.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.991e-05/0.1822, allocations: 16.38 kB / 419.6 MB, free: 18.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003247/0.1826, allocations: 265.6 kB / 419.8 MB, free: 18.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.1826, allocations: 3.938 kB / 419.8 MB, free: 18.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.38e-05/0.1826, allocations: 8 kB / 419.9 MB, free: 18.63 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.75e-06/0.1826, allocations: 4 kB / 419.9 MB, free: 18.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000271/0.1829, allocations: 251.8 kB / 420.1 MB, free: 18.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.1839, allocations: 1.148 MB / 421.3 MB, free: 17.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003197/0.1843, allocations: 303.2 kB / 421.5 MB, free: 16.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001681/0.1844, allocations: 165.3 kB / 421.7 MB, free: 16.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.9e-05/0.1845, allocations: 4.234 kB / 421.7 MB, free: 16.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002959/0.1848, allocations: 223.5 kB / 421.9 MB, free: 16.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.854e-06/0.1848, allocations: 4 kB / 421.9 MB, free: 16.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002398/0.1872, allocations: 0.93 MB / 422.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.812e-05/0.1872, allocations: 55.41 kB / 422.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001185/0.1874, allocations: 183 kB / 423.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.588e-05/0.1874, allocations: 33.7 kB / 423.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.165e-05/0.1874, allocations: 120.9 kB / 423.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.657e-05/0.1875, allocations: 94.55 kB / 423.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.454e-05/0.1876, allocations: 65.69 kB / 423.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.911e-05/0.1876, allocations: 334.8 kB / 423.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001755/0.1878, allocations: 152 kB / 423.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001846/0.188, allocations: 179.1 kB / 424.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003642/0.1884, allocations: 358.5 kB / 424.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.1884, allocations: 0 / 424.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001343/0.1897, allocations: 0.6575 MB / 425.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.1897, allocations: 4 kB / 425.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.1898, allocations: 4 kB / 425.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001327/0.1911, allocations: 344.5 kB / 425.4 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001894/0.1913, allocations: 51.91 kB / 425.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00287/0.1942, allocations: 2.644 MB / 428.1 MB, free: 9.977 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001728/0.1943, allocations: 31.75 kB / 428.1 MB, free: 9.945 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.371e-05/0.1944, allocations: 11.98 kB / 428.1 MB, free: 9.934 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,2)} Notification: Performance of prepare postOptimizeDAE: time 9.765e-05/0.1945, allocations: 137.8 kB / 428.3 MB, free: 9.789 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.606e-05/0.1945, allocations: 23.75 kB / 428.3 MB, free: 9.766 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001388/0.1959, allocations: 0.6564 MB / 429 MB, free: 9.105 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.1959, allocations: 7.938 kB / 429 MB, free: 9.098 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-06/0.1959, allocations: 0 / 429 MB, free: 9.098 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1959, allocations: 3.984 kB / 429 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002212/0.1962, allocations: 397.3 kB / 429.4 MB, free: 8.656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1962, allocations: 4 kB / 429.4 MB, free: 8.652 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001376/0.1963, allocations: 43.92 kB / 429.4 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001255/0.1976, allocations: 340.6 kB / 429.7 MB, free: 8.273 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.148e-05/0.1976, allocations: 8 kB / 429.7 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002603/0.2002, allocations: 2.617 MB / 432.4 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2002, allocations: 0 / 432.4 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/0.2015, allocations: 0.6345 MB / 433 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.091e-05/0.2016, allocations: 104.8 kB / 433.1 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.112e-05/0.2016, allocations: 7.938 kB / 433.1 MB, free: 4.727 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001646/0.2018, allocations: 15.98 kB / 433.1 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.212e-05/0.2018, allocations: 23.97 kB / 433.1 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-05/0.2019, allocations: 8 kB / 433.2 MB, free: 4.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.769e-05/0.2019, allocations: 135.7 kB / 433.3 MB, free: 4.547 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.202, allocations: 0 / 433.3 MB, free: 4.547 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003196/0.2023, allocations: 99.91 kB / 433.4 MB, free: 4.449 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001434/0.2037, allocations: 1.184 MB / 434.6 MB, free: 3.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001099/0.2048, allocations: 0.6273 MB / 435.2 MB, free: 2.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2048, allocations: 0 / 435.2 MB, free: 2.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007719/0.2056, allocations: 459.4 kB / 435.6 MB, free: 2.129 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002305/0.2059, allocations: 24 kB / 435.7 MB, free: 2.105 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004233/0.2101, allocations: 3.282 MB / 439 MB, free: 14.73 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002289/0.2103, allocations: 0.7532 MB / 439.7 MB, free: 13.95 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001207/0.2105, allocations: 37.92 kB / 439.7 MB, free: 13.91 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.2106, allocations: 67.41 kB / 439.8 MB, free: 13.84 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2106, allocations: 0 / 439.8 MB, free: 13.84 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4599/0.6705, allocations: 8.194 MB / 448 MB, free: 5.812 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002775/0.6709, allocations: 234.4 kB / 448.2 MB, free: 5.555 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.979/2.65, allocations: 0 / 448.2 MB, free: 5.555 MB / 318.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe 2>&1)