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: "" <> 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.0009267/0.0009267, allocations: 96.44 kB / 15.73 MB, free: 440 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.0009728/0.0009728, allocations: 178.5 kB / 16.62 MB, free: 6.426 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.285/1.285, allocations: 223.2 MB / 240.5 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1585/0.1585, allocations: 8.08 MB / 299.7 MB, free: 2.871 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002789/0.000279, allocations: 8 kB / 362.8 MB, free: 13.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08691/0.08721, allocations: 52.51 MB / 415.4 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad): time 0.001382/0.08863, allocations: 1.103 MB / 416.5 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001648/0.09029, allocations: 1.478 MB / 417.9 MB, free: 6.039 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.091e-05/0.09036, allocations: 4 kB / 417.9 MB, free: 6.035 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002503/0.09062, allocations: 91.52 kB / 418 MB, free: 5.945 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002197/0.09085, allocations: 115.7 kB / 418.1 MB, free: 5.832 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.001264/0.09212, allocations: 0.7396 MB / 418.9 MB, free: 5.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002373/0.09237, allocations: 175.6 kB / 419.1 MB, free: 4.918 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.0925, allocations: 64.09 kB / 419.1 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.745e-05/0.09259, allocations: 83.7 kB / 419.2 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001596/0.09276, allocations: 115.6 kB / 419.3 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.504e-05/0.09279, allocations: 12 kB / 419.3 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002664/0.09306, allocations: 167.8 kB / 419.5 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.749e-05/0.09311, allocations: 35.89 kB / 419.5 MB, free: 4.449 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.098e-05/0.09317, allocations: 61.58 kB / 419.6 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002948/0.09347, allocations: 275.6 kB / 419.9 MB, free: 4.113 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.09348, allocations: 0 / 419.9 MB, free: 4.113 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.09348, allocations: 0 / 419.9 MB, free: 4.113 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.098e-06/0.09349, allocations: 0 / 419.9 MB, free: 4.113 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.002262/0.09576, allocations: 0.7833 MB / 420.6 MB, free: 3.281 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.071e-05/0.0958, allocations: 12.03 kB / 420.6 MB, free: 3.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.077e-05/0.09587, allocations: 54.5 kB / 420.7 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.601e-05/0.09593, allocations: 31.72 kB / 420.7 MB, free: 3.176 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002677/0.0962, allocations: 251.5 kB / 421 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.09623, allocations: 15.78 kB / 421 MB, free: 2.871 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.469e-05/0.09627, allocations: 23.94 kB / 421 MB, free: 2.848 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003849/0.09666, allocations: 253.3 kB / 421.3 MB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.09668, allocations: 3.984 kB / 421.3 MB, free: 2.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.712e-05/0.09671, allocations: 8 kB / 421.3 MB, free: 2.582 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.09673, allocations: 7.953 kB / 421.3 MB, free: 2.574 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003408/0.09707, allocations: 247.7 kB / 421.5 MB, free: 2.332 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001334/0.09841, allocations: 1.164 MB / 422.7 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003893/0.09881, allocations: 295.2 kB / 423 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.488e-05/0.09887, allocations: 8.234 kB / 423 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003395/0.09922, allocations: 219.5 kB / 423.2 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.532e-06/0.09923, allocations: 4 kB / 423.2 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.1569/0.2561, allocations: 0.9213 MB / 424.1 MB, free: 40.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.358e-05/0.2561, allocations: 54.41 kB / 424.2 MB, free: 40.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001565/0.2563, allocations: 186.2 kB / 424.4 MB, free: 40.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.2563, allocations: 30.02 kB / 424.4 MB, free: 40.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.128e-05/0.2564, allocations: 122.5 kB / 424.5 MB, free: 40.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.222e-05/0.2565, allocations: 107.4 kB / 424.6 MB, free: 40.6 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.79e-05/0.2565, allocations: 5.75 kB / 424.6 MB, free: 40.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.672e-05/0.2565, allocations: 328.7 kB / 424.9 MB, free: 40.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001922/0.2567, allocations: 149.2 kB / 425.1 MB, free: 40.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002007/0.2569, allocations: 181.9 kB / 425.3 MB, free: 40.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002164/0.2572, allocations: 166.9 kB / 425.4 MB, free: 40.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.2572, allocations: 0 / 425.4 MB, free: 40.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001439/0.2586, allocations: 0.645 MB / 426.1 MB, free: 40.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.2586, allocations: 4.906 kB / 426.1 MB, free: 40.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.2587, allocations: 0 / 426.1 MB, free: 40.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00146/0.2601, allocations: 347.1 kB / 426.4 MB, free: 40.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002167/0.2604, allocations: 54.19 kB / 426.5 MB, free: 40.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003044/0.2634, allocations: 2.487 MB / 429 MB, free: 38.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001882/0.2636, allocations: 18.34 kB / 429 MB, free: 38.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.465e-05/0.2636, allocations: 13.22 kB / 429 MB, free: 38.9 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.0001089/0.2638, allocations: 148.2 kB / 429.1 MB, free: 38.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.463e-05/0.2638, allocations: 22.19 kB / 429.2 MB, free: 38.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001509/0.2653, allocations: 0.6618 MB / 429.8 MB, free: 38.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.2653, allocations: 3.375 kB / 429.8 MB, free: 38.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-06/0.2653, allocations: 0 / 429.8 MB, free: 38.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.2653, allocations: 4 kB / 429.8 MB, free: 38.69 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002467/0.2656, allocations: 390.6 kB / 430.2 MB, free: 38.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.2656, allocations: 0 / 430.2 MB, free: 38.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001573/0.2658, allocations: 48.58 kB / 430.2 MB, free: 38.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001417/0.2672, allocations: 332.1 kB / 430.6 MB, free: 38.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.438e-05/0.2672, allocations: 8.281 kB / 430.6 MB, free: 38.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002966/0.2702, allocations: 2.468 MB / 433 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2702, allocations: 0 / 433 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001404/0.2716, allocations: 0.632 MB / 433.7 MB, free: 37.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.575e-05/0.2717, allocations: 96.27 kB / 433.8 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.65e-05/0.2717, allocations: 7.344 kB / 433.8 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001984/0.2719, allocations: 24.05 kB / 433.8 MB, free: 36.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.436e-05/0.272, allocations: 26.17 kB / 433.8 MB, free: 36.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.514e-05/0.272, allocations: 14.75 kB / 433.8 MB, free: 36.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.896e-05/0.2721, allocations: 134.1 kB / 434 MB, free: 36.85 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2721, allocations: 0 / 434 MB, free: 36.85 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003482/0.2725, allocations: 104.8 kB / 434.1 MB, free: 36.83 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.001627/0.2741, allocations: 1.194 MB / 435.3 MB, free: 36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001148/0.2753, allocations: 0.6085 MB / 435.9 MB, free: 35.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2753, allocations: 0 / 435.9 MB, free: 35.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008346/0.2761, allocations: 435.4 kB / 436.3 MB, free: 35.47 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001947/0.2763, allocations: 20.09 kB / 436.3 MB, free: 35.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009029/0.2773, allocations: 1.127 MB / 437.5 MB, free: 34.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001313/0.2774, allocations: 0.7514 MB / 438.2 MB, free: 33.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001187/0.2775, allocations: 36.33 kB / 438.2 MB, free: 33.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.29e-05/0.2776, allocations: 69.75 kB / 438.3 MB, free: 33.79 MB / 350.1 MB Notification: Performance of SimCode: time 8.22e-07/0.2776, allocations: 3.75 kB / 438.3 MB, free: 33.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01619/0.2938, allocations: 7.459 MB / 445.8 MB, free: 33.22 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001174/0.294, allocations: 211 kB / 446 MB, free: 32.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.68/1.974, allocations: 0 / 446 MB, free: 32.98 MB / 350.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/linux/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) Environment - environmentSimulation: