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.001003/0.001003, allocations: 102.6 kB / 16.31 MB, free: 6.391 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.001017/0.001017, allocations: 191 kB / 17.24 MB, free: 5.922 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.152/1.152, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.03856/0.03856, allocations: 8.105 MB / 299.2 MB, free: 6.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.00125, allocations: 59.91 kB / 361.8 MB, free: 8.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1606/0.1619, allocations: 51.51 MB / 413.3 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad): time 0.001909/0.1638, allocations: 1.568 MB / 414.9 MB, free: 24.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00118/0.165, allocations: 1.555 MB / 416.5 MB, free: 22.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.373e-05/0.1651, allocations: 7.938 kB / 416.5 MB, free: 22.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002468/0.1653, allocations: 123.4 kB / 416.6 MB, free: 22.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001956/0.1656, allocations: 111.2 kB / 416.7 MB, free: 22.21 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.001098/0.1667, allocations: 0.9102 MB / 417.6 MB, free: 21.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002044/0.1669, allocations: 250.8 kB / 417.9 MB, free: 21.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.167, allocations: 79.89 kB / 417.9 MB, free: 20.97 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.307e-05/0.1671, allocations: 103.6 kB / 418 MB, free: 20.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001363/0.1672, allocations: 139.4 kB / 418.2 MB, free: 20.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.008e-05/0.1672, allocations: 20 kB / 418.2 MB, free: 20.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002459/0.1675, allocations: 199.8 kB / 418.4 MB, free: 20.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.329e-05/0.1675, allocations: 51.77 kB / 418.4 MB, free: 20.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.385e-05/0.1676, allocations: 119.4 kB / 418.6 MB, free: 20.35 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003011/0.1679, allocations: 397.1 kB / 418.9 MB, free: 19.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.1679, allocations: 0 / 418.9 MB, free: 19.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1679, allocations: 0 / 418.9 MB, free: 19.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.1679, allocations: 0 / 418.9 MB, free: 19.96 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.001993/0.1699, allocations: 0.8147 MB / 419.8 MB, free: 19.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.741e-05/0.17, allocations: 15.89 kB / 419.8 MB, free: 19.08 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.156e-05/0.17, allocations: 46.73 kB / 419.8 MB, free: 19.03 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.126e-05/0.1701, allocations: 32.66 kB / 419.9 MB, free: 19 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001902/0.1703, allocations: 252.7 kB / 420.1 MB, free: 18.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.518e-05/0.1703, allocations: 16.38 kB / 420.1 MB, free: 18.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.633e-05/0.1703, allocations: 20.31 kB / 420.1 MB, free: 18.67 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003022/0.1706, allocations: 273.7 kB / 420.4 MB, free: 18.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.1707, allocations: 3.938 kB / 420.4 MB, free: 18.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.313e-05/0.1707, allocations: 8 kB / 420.4 MB, free: 18.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.1707, allocations: 7.938 kB / 420.4 MB, free: 18.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002701/0.171, allocations: 247.9 kB / 420.7 MB, free: 18.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000985/0.172, allocations: 1.144 MB / 421.8 MB, free: 16.85 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003059/0.1723, allocations: 299.2 kB / 422.1 MB, free: 16.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001635/0.1724, allocations: 162.9 kB / 422.3 MB, free: 16.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.438e-05/0.1725, allocations: 20.14 kB / 422.3 MB, free: 16.37 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002665/0.1728, allocations: 219.5 kB / 422.5 MB, free: 16.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.403e-06/0.1728, allocations: 0 / 422.5 MB, free: 16.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002436/0.1752, allocations: 0.921 MB / 423.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.854e-05/0.1752, allocations: 55.41 kB / 423.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.1754, allocations: 183 kB / 423.7 MB, free: 14.94 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.496e-05/0.1754, allocations: 41.7 kB / 423.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.326e-05/0.1755, allocations: 120.9 kB / 423.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.759e-05/0.1755, allocations: 94.56 kB / 423.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.156e-05/0.1756, allocations: 61.7 kB / 424 MB, free: 14.61 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.136e-05/0.1756, allocations: 330.8 kB / 424.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001708/0.1758, allocations: 152 kB / 424.4 MB, free: 14.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001836/0.176, allocations: 187.1 kB / 424.6 MB, free: 13.94 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003635/0.1764, allocations: 362.5 kB / 425 MB, free: 13.58 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1764, allocations: 0 / 425 MB, free: 13.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001327/0.1777, allocations: 0.6497 MB / 425.6 MB, free: 12.92 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.1777, allocations: 4 kB / 425.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.1778, allocations: 7.938 kB / 425.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001397/0.1792, allocations: 340.5 kB / 426 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001968/0.1794, allocations: 55.91 kB / 426 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002832/0.1822, allocations: 2.634 MB / 428.7 MB, free: 9.742 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001691/0.1824, allocations: 31.73 kB / 428.7 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.184e-05/0.1824, allocations: 19.98 kB / 428.7 MB, free: 9.691 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.108e-05/0.1825, allocations: 134.5 kB / 428.8 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.564e-05/0.1826, allocations: 23.75 kB / 428.9 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001388/0.1839, allocations: 0.6602 MB / 429.5 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.184, allocations: 11.92 kB / 429.5 MB, free: 8.852 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-06/0.184, allocations: 0 / 429.5 MB, free: 8.852 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.184, allocations: 0 / 429.5 MB, free: 8.852 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002114/0.1842, allocations: 393.2 kB / 429.9 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.1842, allocations: 0 / 429.9 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001399/0.1843, allocations: 47.91 kB / 430 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001277/0.1856, allocations: 336.5 kB / 430.3 MB, free: 8.039 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/0.1857, allocations: 8 kB / 430.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002657/0.1883, allocations: 2.617 MB / 432.9 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1883, allocations: 4 kB / 432.9 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001261/0.1896, allocations: 0.6344 MB / 433.6 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.966e-05/0.1896, allocations: 104.8 kB / 433.7 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.108e-05/0.1897, allocations: 7.984 kB / 433.7 MB, free: 4.488 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001721/0.1899, allocations: 12.56 kB / 433.7 MB, free: 4.477 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.559e-05/0.1899, allocations: 31.95 kB / 433.7 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.922e-05/0.1899, allocations: 8 kB / 433.7 MB, free: 4.438 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.538e-05/0.19, allocations: 135.8 kB / 433.8 MB, free: 4.305 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.19, allocations: 0 / 433.8 MB, free: 4.305 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003046/0.1903, allocations: 99.89 kB / 433.9 MB, free: 4.207 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.001449/0.1918, allocations: 1.19 MB / 435.1 MB, free: 2.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001145/0.193, allocations: 0.6311 MB / 435.8 MB, free: 2.336 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.193, allocations: 0 / 435.8 MB, free: 2.336 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008018/0.1938, allocations: 439.5 kB / 436.2 MB, free: 1.895 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000223/0.194, allocations: 27.94 kB / 436.2 MB, free: 1.867 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004226/0.1982, allocations: 3.209 MB / 439.4 MB, free: 14.56 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002169/0.1985, allocations: 0.7493 MB / 440.2 MB, free: 13.79 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001099/0.1986, allocations: 29.91 kB / 440.2 MB, free: 13.76 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.496e-05/0.1987, allocations: 67.42 kB / 440.3 MB, free: 13.7 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1987, allocations: 0 / 440.3 MB, free: 13.7 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.541/3.74, allocations: 8.293 MB / 448.6 MB, free: 5.52 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.13/20.87, allocations: 1.859 kB / 448.6 MB, free: 5.52 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)