Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.001035/0.001035, allocations: 102.4 kB / 16.5 MB, free: 6.648 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.001186/0.001186, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.36/1.36, allocations: 205.1 MB / 223.3 MB, free: 12.42 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1697/0.1697, allocations: 38.01 MB / 308.6 MB, free: 6.227 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 67.03 kB / 374.7 MB, free: 3.996 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2347, allocations: 55.23 MB / 430 MB, free: 19.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.005134/0.2399, allocations: 4.565 MB / 434.5 MB, free: 15.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001497/0.2415, allocations: 1.107 MB / 435.6 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001915/0.2417, allocations: 27.81 kB / 435.7 MB, free: 14.04 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001706/0.2419, allocations: 31.77 kB / 435.7 MB, free: 14.01 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003654/0.2422, allocations: 143.3 kB / 435.8 MB, free: 13.87 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001807/0.2424, allocations: 79.86 kB / 435.9 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000329/0.2428, allocations: 0.4946 MB / 436.4 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000167/0.243, allocations: 76.77 kB / 436.5 MB, free: 13.22 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000196/0.2432, allocations: 143.2 kB / 436.6 MB, free: 13.08 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002617/0.2434, allocations: 171.3 kB / 436.8 MB, free: 12.91 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.322e-05/0.2435, allocations: 12 kB / 436.8 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.319e-05/0.2435, allocations: 12 kB / 436.8 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.939e-05/0.2436, allocations: 75.78 kB / 436.9 MB, free: 12.81 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001114/0.2437, allocations: 123.3 kB / 437 MB, free: 12.69 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002003/0.2439, allocations: 247 kB / 437.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.2439, allocations: 3.938 kB / 437.3 MB, free: 12.45 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.91e-07/0.244, allocations: 0 / 437.3 MB, free: 12.45 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.189e-06/0.244, allocations: 0 / 437.3 MB, free: 12.45 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007924/0.2448, allocations: 0.5544 MB / 437.8 MB, free: 11.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.2448, allocations: 12.03 kB / 437.8 MB, free: 11.83 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.533e-05/0.2449, allocations: 54.73 kB / 437.9 MB, free: 11.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.861e-05/0.2449, allocations: 36.55 kB / 437.9 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003113/0.2452, allocations: 307.8 kB / 438.2 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.148e-05/0.2453, allocations: 12.44 kB / 438.2 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.347e-05/0.2453, allocations: 24 kB / 438.2 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002954/0.2456, allocations: 269.8 kB / 438.5 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.2456, allocations: 0 / 438.5 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.883e-05/0.2456, allocations: 12 kB / 438.5 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.852e-06/0.2456, allocations: 4 kB / 438.5 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002011/0.2459, allocations: 163.8 kB / 438.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009122/0.2468, allocations: 1.179 MB / 439.9 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001084/0.2469, allocations: 77.16 kB / 439.9 MB, free: 9.527 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.937e-05/0.2469, allocations: 29.78 kB / 440 MB, free: 9.492 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.683e-05/0.247, allocations: 0 / 440 MB, free: 9.492 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.064e-05/0.247, allocations: 42.5 kB / 440 MB, free: 9.441 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.247, allocations: 0 / 440 MB, free: 9.441 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005711/0.2476, allocations: 412.8 kB / 440.4 MB, free: 8.984 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.766e-05/0.2476, allocations: 77.11 kB / 440.5 MB, free: 8.891 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001602/0.2478, allocations: 242.5 kB / 440.7 MB, free: 8.645 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.656e-06/0.2478, allocations: 29.7 kB / 440.8 MB, free: 8.609 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.419e-05/0.2479, allocations: 195.6 kB / 440.9 MB, free: 8.414 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.756e-05/0.2479, allocations: 27.56 kB / 441 MB, free: 8.387 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.292e-05/0.2479, allocations: 45.64 kB / 441 MB, free: 8.336 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.222e-05/0.248, allocations: 330.8 kB / 441.3 MB, free: 8.004 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.216e-05/0.2481, allocations: 27.98 kB / 441.4 MB, free: 7.977 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.523e-05/0.2481, allocations: 120.8 kB / 441.5 MB, free: 7.812 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001235/0.2483, allocations: 164.7 kB / 441.6 MB, free: 7.605 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.2483, allocations: 4 kB / 441.6 MB, free: 7.602 MB / 318.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002172/0.2485, allocations: 185.1 kB / 441.8 MB, free: 7.414 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.2485, allocations: 11.94 kB / 441.8 MB, free: 7.402 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.2485, allocations: 4 kB / 441.8 MB, free: 7.398 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.2485, allocations: 4 kB / 441.8 MB, free: 7.395 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.2487, allocations: 40.36 kB / 441.9 MB, free: 7.355 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.2487, allocations: 15.92 kB / 441.9 MB, free: 7.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.176e-05/0.2488, allocations: 8.438 kB / 441.9 MB, free: 7.332 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.079e-05/0.2488, allocations: 12 kB / 441.9 MB, free: 7.32 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.645e-05/0.2489, allocations: 141.8 kB / 442.1 MB, free: 7.172 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.51e-05/0.249, allocations: 27.59 kB / 442.1 MB, free: 7.145 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001297/0.2491, allocations: 99.38 kB / 442.2 MB, free: 7.043 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.2491, allocations: 0 / 442.2 MB, free: 7.043 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.2491, allocations: 15.97 kB / 442.2 MB, free: 7.027 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.2491, allocations: 4 kB / 442.2 MB, free: 7.023 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003115/0.2494, allocations: 419.2 kB / 442.6 MB, free: 6.555 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2495, allocations: 0 / 442.6 MB, free: 6.555 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.247e-05/0.2495, allocations: 19.98 kB / 442.6 MB, free: 6.535 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.145e-06/0.2495, allocations: 0 / 442.6 MB, free: 6.535 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.2496, allocations: 4 kB / 442.6 MB, free: 6.531 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.2496, allocations: 7.875 kB / 442.6 MB, free: 6.523 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2496, allocations: 0 / 442.6 MB, free: 6.523 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001746/0.2498, allocations: 232.9 kB / 442.9 MB, free: 6.273 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.37e-05/0.2498, allocations: 92.95 kB / 443 MB, free: 6.164 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.659e-05/0.2498, allocations: 4 kB / 443 MB, free: 6.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.091e-05/0.2499, allocations: 0 / 443 MB, free: 6.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.237e-05/0.2499, allocations: 7.984 kB / 443 MB, free: 6.152 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.682e-06/0.25, allocations: 4 kB / 443 MB, free: 6.148 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.864e-05/0.2501, allocations: 174 kB / 443.1 MB, free: 5.98 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2501, allocations: 0 / 443.1 MB, free: 5.98 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002784/0.2503, allocations: 40 kB / 443.2 MB, free: 5.941 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002943/0.2506, allocations: 0.772 MB / 444 MB, free: 5.141 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001423/0.2508, allocations: 87.97 kB / 444 MB, free: 5.055 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.2508, allocations: 0 / 444 MB, free: 5.055 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.747e-05/0.2509, allocations: 31.88 kB / 444.1 MB, free: 5.023 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004294/0.2513, allocations: 58.05 kB / 444.1 MB, free: 4.965 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001697/0.253, allocations: 2.367 MB / 446.5 MB, free: 2.422 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001567/0.2532, allocations: 0.7638 MB / 447.3 MB, free: 1.633 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.559e-05/0.2533, allocations: 30.22 kB / 447.3 MB, free: 1.602 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.2e-05/0.2533, allocations: 75.41 kB / 447.4 MB, free: 1.527 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2533, allocations: 0 / 447.4 MB, free: 1.527 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01288/0.2662, allocations: 3.883 MB / 451.3 MB, free: 13.66 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001912/0.2665, allocations: 198.2 kB / 451.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.814/2.081, allocations: 0 / 451.4 MB, free: 13.41 MB / 334.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1)