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.0007175/0.0007175, allocations: 84.19 kB / 15.75 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.0007387/0.0007387, allocations: 177 kB / 16.63 MB, free: 6.887 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.244/1.244, allocations: 223.3 MB / 240.7 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1476/0.1476, allocations: 8.082 MB / 299.8 MB, free: 2.883 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002715/0.0002715, allocations: 15.98 kB / 363 MB, free: 13.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08413/0.08441, allocations: 52.51 MB / 415.5 MB, free: 8.633 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad): time 0.001388/0.08584, allocations: 1.178 MB / 416.6 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00157/0.08742, allocations: 1.478 MB / 418.1 MB, free: 5.961 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.007e-05/0.08749, allocations: 8 kB / 418.1 MB, free: 5.953 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002247/0.08772, allocations: 83.59 kB / 418.2 MB, free: 5.871 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002024/0.08793, allocations: 99.42 kB / 418.3 MB, free: 5.773 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.001218/0.08916, allocations: 0.7398 MB / 419 MB, free: 5.031 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002565/0.08943, allocations: 230.8 kB / 419.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.08955, allocations: 67.05 kB / 419.3 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.675e-05/0.08965, allocations: 83.7 kB / 419.4 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001609/0.08982, allocations: 123.5 kB / 419.5 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.461e-05/0.08985, allocations: 8 kB / 419.6 MB, free: 4.531 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000284/0.09014, allocations: 187.8 kB / 419.7 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.567e-05/0.09018, allocations: 35.84 kB / 419.8 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.783e-05/0.09025, allocations: 69.58 kB / 419.8 MB, free: 4.238 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002897/0.09054, allocations: 279.5 kB / 420.1 MB, free: 3.965 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.09056, allocations: 0 / 420.1 MB, free: 3.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.09056, allocations: 0 / 420.1 MB, free: 3.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.09057, allocations: 0 / 420.1 MB, free: 3.965 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.002041/0.09262, allocations: 0.7911 MB / 420.9 MB, free: 3.125 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.09267, allocations: 12.03 kB / 420.9 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.65e-05/0.09273, allocations: 50.55 kB / 421 MB, free: 3.055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.357e-05/0.09279, allocations: 31.67 kB / 421 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002588/0.09305, allocations: 247.5 kB / 421.2 MB, free: 2.738 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.09308, allocations: 19.78 kB / 421.3 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.106e-05/0.09312, allocations: 16 kB / 421.3 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003893/0.09351, allocations: 261.3 kB / 421.5 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.09353, allocations: 7.984 kB / 421.5 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.41e-05/0.09356, allocations: 8 kB / 421.5 MB, free: 2.426 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.532e-05/0.09358, allocations: 7.953 kB / 421.5 MB, free: 2.418 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000343/0.09393, allocations: 247.7 kB / 421.8 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001262/0.0952, allocations: 1.152 MB / 422.9 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003954/0.0956, allocations: 303.2 kB / 423.2 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002178/0.09583, allocations: 165.3 kB / 423.4 MB, free: 424 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.367e-05/0.09589, allocations: 8.219 kB / 423.4 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003551/0.09626, allocations: 223.4 kB / 423.6 MB, free: 180 kB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.433e-06/0.09627, allocations: 4 kB / 423.6 MB, free: 176 kB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.1678/0.2641, allocations: 0.9224 MB / 424.6 MB, free: 41.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.773e-05/0.2641, allocations: 53.47 kB / 424.6 MB, free: 41.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.2643, allocations: 184.7 kB / 424.8 MB, free: 41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.223e-05/0.2643, allocations: 34.3 kB / 424.8 MB, free: 40.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.566e-05/0.2644, allocations: 119.7 kB / 424.9 MB, free: 40.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.423e-05/0.2645, allocations: 100.9 kB / 425 MB, free: 40.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.742e-05/0.2645, allocations: 7.688 kB / 425 MB, free: 40.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.919e-05/0.2646, allocations: 328.5 kB / 425.4 MB, free: 40.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001959/0.2648, allocations: 152.1 kB / 425.5 MB, free: 40.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002011/0.265, allocations: 183.9 kB / 425.7 MB, free: 40.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000217/0.2652, allocations: 160.6 kB / 425.8 MB, free: 40.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2652, allocations: 5.906 kB / 425.9 MB, free: 40.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001303/0.2665, allocations: 0.6488 MB / 426.5 MB, free: 40.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.2665, allocations: 5.312 kB / 426.5 MB, free: 40.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.2665, allocations: 3.25 kB / 426.5 MB, free: 40.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001269/0.2678, allocations: 345.8 kB / 426.8 MB, free: 40.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002025/0.268, allocations: 55.95 kB / 426.9 MB, free: 40.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002868/0.2709, allocations: 2.41 MB / 429.3 MB, free: 39.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001625/0.2711, allocations: 18.41 kB / 429.3 MB, free: 39.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.512e-05/0.2711, allocations: 12.22 kB / 429.3 MB, free: 39.14 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.0001083/0.2712, allocations: 141 kB / 429.5 MB, free: 39.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.317e-05/0.2713, allocations: 27.09 kB / 429.5 MB, free: 39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001377/0.2727, allocations: 0.6594 MB / 430.2 MB, free: 38.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.2727, allocations: 6.062 kB / 430.2 MB, free: 38.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.023e-06/0.2727, allocations: 0.75 kB / 430.2 MB, free: 38.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.2727, allocations: 3.375 kB / 430.2 MB, free: 38.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000247/0.2729, allocations: 397.7 kB / 430.6 MB, free: 38.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.273, allocations: 0 / 430.6 MB, free: 38.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001449/0.2731, allocations: 44.31 kB / 430.6 MB, free: 38.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001205/0.2743, allocations: 336 kB / 430.9 MB, free: 38.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.612e-05/0.2744, allocations: 9.672 kB / 430.9 MB, free: 38.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002725/0.2771, allocations: 2.397 MB / 433.3 MB, free: 37.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2771, allocations: 0 / 433.3 MB, free: 37.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001257/0.2784, allocations: 0.634 MB / 434 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.639e-05/0.2784, allocations: 96.05 kB / 434.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.289e-05/0.2785, allocations: 8.906 kB / 434.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001641/0.2786, allocations: 17.83 kB / 434.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.934e-05/0.2787, allocations: 26.67 kB / 434.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.476e-05/0.2787, allocations: 9.375 kB / 434.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.885e-05/0.2788, allocations: 136.2 kB / 434.3 MB, free: 37.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2788, allocations: 0 / 434.3 MB, free: 37.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003789/0.2792, allocations: 106.6 kB / 434.4 MB, free: 37.08 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.001417/0.2806, allocations: 1.19 MB / 435.6 MB, free: 36.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001085/0.2817, allocations: 0.6141 MB / 436.2 MB, free: 35.94 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2818, allocations: 0 / 436.2 MB, free: 35.94 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007364/0.2825, allocations: 429.9 kB / 436.6 MB, free: 35.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002464/0.2828, allocations: 29.75 kB / 436.6 MB, free: 35.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00254/0.2853, allocations: 1.809 MB / 438.4 MB, free: 34.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001435/0.2855, allocations: 0.7482 MB / 439.2 MB, free: 34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001272/0.2856, allocations: 41.12 kB / 439.2 MB, free: 33.99 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.653e-05/0.2857, allocations: 76.67 kB / 439.3 MB, free: 33.94 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2857, allocations: 0 / 439.3 MB, free: 33.94 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01761/0.3033, allocations: 7.532 MB / 446.8 MB, free: 33.38 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002104/0.3036, allocations: 224.2 kB / 447 MB, free: 33.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.693/1.997, allocations: 0 / 447 MB, free: 33.14 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: