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/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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: translateModel(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad") translateModel(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009129/0.0009132, allocations: 96.47 kB / 15.74 MB, free: 416 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 177.1 kB / 16.62 MB, free: 6.441 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.516/1.516, allocations: 223.3 MB / 240.7 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.2149/0.2149, allocations: 8.077 MB / 299.8 MB, free: 2.926 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003726/0.0003727, allocations: 12 kB / 362.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1203, allocations: 52.52 MB / 415.4 MB, free: 8.734 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad): time 0.001796/0.1222, allocations: 1.182 MB / 416.6 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002017/0.1242, allocations: 1.478 MB / 418 MB, free: 6.059 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001608/0.1244, allocations: 4 kB / 418 MB, free: 6.055 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003324/0.1247, allocations: 87.59 kB / 418.1 MB, free: 5.969 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002945/0.125, allocations: 99.42 kB / 418.2 MB, free: 5.871 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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.001347/0.1264, allocations: 0.7476 MB / 419 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000356/0.1268, allocations: 222.8 kB / 419.2 MB, free: 4.902 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001589/0.1269, allocations: 56.11 kB / 419.2 MB, free: 4.848 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.124e-05/0.127, allocations: 95.62 kB / 419.3 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001838/0.1272, allocations: 119.5 kB / 419.4 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.638e-05/0.1273, allocations: 8 kB / 419.5 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003549/0.1276, allocations: 187.8 kB / 419.6 MB, free: 4.445 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.413e-05/0.1277, allocations: 43.83 kB / 419.7 MB, free: 4.402 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.111e-05/0.1278, allocations: 65.58 kB / 419.7 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003431/0.1281, allocations: 271.6 kB / 420 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.1281, allocations: 3.984 kB / 420 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1281, allocations: 0 / 420 MB, free: 4.062 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.1282, allocations: 0 / 420 MB, free: 4.062 MB / 350.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.002177/0.1303, allocations: 0.7794 MB / 420.8 MB, free: 3.234 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.1304, allocations: 12.03 kB / 420.8 MB, free: 3.223 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.02e-05/0.1304, allocations: 27.67 kB / 420.8 MB, free: 3.195 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002574/0.1307, allocations: 259.5 kB / 421.1 MB, free: 2.898 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.177e-05/0.1307, allocations: 19.78 kB / 421.1 MB, free: 2.879 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.96e-05/0.1308, allocations: 16 kB / 421.1 MB, free: 2.863 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003895/0.1312, allocations: 265.3 kB / 421.4 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.1312, allocations: 0 / 421.4 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.541e-05/0.1312, allocations: 4 kB / 421.4 MB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.1312, allocations: 4 kB / 421.4 MB, free: 2.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003415/0.1316, allocations: 247.6 kB / 421.6 MB, free: 2.348 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001381/0.133, allocations: 1.164 MB / 422.8 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004057/0.1334, allocations: 299.2 kB / 423.1 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002227/0.1336, allocations: 169.2 kB / 423.2 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.128e-05/0.1337, allocations: 4.234 kB / 423.3 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003487/0.134, allocations: 223.5 kB / 423.5 MB, free: 348 kB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.513e-06/0.134, allocations: 4 kB / 423.5 MB, free: 344 kB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.2361/0.3702, allocations: 0.9166 MB / 424.4 MB, free: 41.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.816e-05/0.3702, allocations: 54.53 kB / 424.4 MB, free: 41.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002327/0.3705, allocations: 195.8 kB / 424.6 MB, free: 41.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.551e-05/0.3705, allocations: 31.08 kB / 424.7 MB, free: 41.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.15e-05/0.3706, allocations: 125.7 kB / 424.8 MB, free: 41.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.65e-05/0.3707, allocations: 96.3 kB / 424.9 MB, free: 41.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.063e-05/0.3708, allocations: 10.56 kB / 424.9 MB, free: 41.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.3709, allocations: 332.2 kB / 425.2 MB, free: 40.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002155/0.3711, allocations: 146.4 kB / 425.4 MB, free: 40.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002727/0.3714, allocations: 179 kB / 425.5 MB, free: 40.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002921/0.3717, allocations: 169.9 kB / 425.7 MB, free: 40.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3717, allocations: 0 / 425.7 MB, free: 40.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001435/0.3731, allocations: 0.6458 MB / 426.3 MB, free: 40.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.3732, allocations: 6.156 kB / 426.4 MB, free: 40.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.3732, allocations: 0 / 426.4 MB, free: 40.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001328/0.3745, allocations: 340.6 kB / 426.7 MB, free: 40.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000204/0.3747, allocations: 55.03 kB / 426.7 MB, free: 40.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003/0.3777, allocations: 2.42 MB / 429.2 MB, free: 39.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001774/0.3779, allocations: 18.19 kB / 429.2 MB, free: 39.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.835e-05/0.378, allocations: 16.39 kB / 429.2 MB, free: 39.39 MB / 350.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 (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: 0 * Non-linear torn systems: 1 {6 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001329/0.3781, allocations: 140.9 kB / 429.3 MB, free: 39.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.578e-05/0.3781, allocations: 22.89 kB / 429.4 MB, free: 39.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001404/0.3795, allocations: 0.6657 MB / 430 MB, free: 39.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.3796, allocations: 3.344 kB / 430 MB, free: 39.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.3796, allocations: 1.75 kB / 430 MB, free: 39.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.3796, allocations: 3.422 kB / 430 MB, free: 39.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002761/0.3799, allocations: 391.4 kB / 430.4 MB, free: 38.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.3799, allocations: 0 / 430.4 MB, free: 38.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001396/0.38, allocations: 46.91 kB / 430.5 MB, free: 38.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001169/0.3812, allocations: 333.8 kB / 430.8 MB, free: 38.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.074e-05/0.3812, allocations: 9 kB / 430.8 MB, free: 38.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002876/0.3841, allocations: 2.392 MB / 433.2 MB, free: 37.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.3841, allocations: 3.938 kB / 433.2 MB, free: 37.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001306/0.3854, allocations: 0.638 MB / 433.8 MB, free: 37.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.773e-05/0.3855, allocations: 99.08 kB / 433.9 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.862e-05/0.3856, allocations: 7.375 kB / 433.9 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001599/0.3857, allocations: 24.64 kB / 434 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.3e-05/0.3858, allocations: 23.94 kB / 434 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.793e-05/0.3859, allocations: 15.72 kB / 434 MB, free: 37.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001058/0.386, allocations: 132.6 kB / 434.1 MB, free: 37.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.386, allocations: 3.828 kB / 434.1 MB, free: 37.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004006/0.3864, allocations: 99.75 kB / 434.2 MB, free: 37.35 MB / 350.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 (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: 0 * Non-linear torn systems: 1 {6 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002096/0.3866, allocations: 126.3 kB / 434.3 MB, free: 37.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001157/0.3878, allocations: 0.6093 MB / 435 MB, free: 36.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.3878, allocations: 0 / 435 MB, free: 36.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007426/0.3885, allocations: 424.9 kB / 435.4 MB, free: 36.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002574/0.3888, allocations: 28.06 kB / 435.4 MB, free: 36.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007617/0.3896, allocations: 0.5932 MB / 436 MB, free: 36.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001789/0.3898, allocations: 0.7443 MB / 436.7 MB, free: 35.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001226/0.3899, allocations: 35.23 kB / 436.8 MB, free: 35.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.696e-05/0.39, allocations: 27.88 kB / 436.8 MB, free: 35.62 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.39, allocations: 3.281 kB / 436.8 MB, free: 35.62 MB / 350.1 MB Notification: Performance of Templates: time 0.007832/0.3978, allocations: 5.261 MB / 442.1 MB, free: 35.27 MB / 350.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.makefile Environment - environmentSimulation: (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 & ./PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe 2>&1) Environment - environmentSimulation: