Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.ImpedanceOneTerm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",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.001057/0.001057, allocations: 98.25 kB / 16.5 MB, free: 6.641 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.001138/0.001138, 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.446/1.446, allocations: 205.1 MB / 223.3 MB, free: 12.39 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1631/0.1631, allocations: 37.99 MB / 308.6 MB, free: 6.23 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.001301/0.001301, allocations: 67.59 kB / 374.7 MB, free: 3.996 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.236, allocations: 55.23 MB / 430 MB, free: 19.76 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.00456/0.2406, allocations: 4.739 MB / 434.7 MB, free: 15 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001237/0.2419, allocations: 1.135 MB / 435.8 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001703/0.242, allocations: 27.81 kB / 435.9 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001658/0.2422, allocations: 35.7 kB / 435.9 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000333/0.2426, allocations: 163.2 kB / 436.1 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000147/0.2427, allocations: 79.91 kB / 436.1 MB, free: 13.56 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003103/0.243, allocations: 0.5179 MB / 436.6 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/0.2432, allocations: 101.7 kB / 436.7 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001677/0.2434, allocations: 159.2 kB / 436.9 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002459/0.2437, allocations: 187.3 kB / 437.1 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.232e-05/0.2437, allocations: 12 kB / 437.1 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.16e-05/0.2437, allocations: 12 kB / 437.1 MB, free: 12.58 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.378e-05/0.2438, allocations: 91.7 kB / 437.2 MB, free: 12.49 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.2439, allocations: 131.3 kB / 437.3 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001899/0.2441, allocations: 278.9 kB / 437.6 MB, free: 12.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.2442, allocations: 0 / 437.6 MB, free: 12.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2442, allocations: 0 / 437.6 MB, free: 12.09 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.2442, allocations: 0 / 437.6 MB, free: 12.09 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007597/0.2449, allocations: 0.5894 MB / 438.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.245, allocations: 12.03 kB / 438.2 MB, free: 11.44 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.945e-05/0.245, allocations: 58.73 kB / 438.3 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.789e-05/0.2451, allocations: 32.56 kB / 438.3 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003309/0.2454, allocations: 318.9 kB / 438.6 MB, free: 10.99 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.9e-05/0.2455, allocations: 28.38 kB / 438.6 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.23e-05/0.2455, allocations: 16 kB / 438.6 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003228/0.2458, allocations: 294.8 kB / 438.9 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/0.2458, allocations: 7.922 kB / 438.9 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.092e-05/0.2459, allocations: 12 kB / 439 MB, free: 10.61 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.2459, allocations: 4 kB / 439 MB, free: 10.6 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002545/0.2461, allocations: 180.9 kB / 439.1 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009954/0.2471, allocations: 1.224 MB / 440.4 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00025/0.2474, allocations: 109.2 kB / 440.5 MB, free: 8.992 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.722e-05/0.2475, allocations: 45.77 kB / 440.5 MB, free: 8.941 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.751e-05/0.2475, allocations: 7.984 kB / 440.5 MB, free: 8.934 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.718e-05/0.2475, allocations: 38.48 kB / 440.6 MB, free: 8.887 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.2475, allocations: 0 / 440.6 MB, free: 8.887 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006396/0.2482, allocations: 488.3 kB / 441 MB, free: 8.355 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.028e-05/0.2482, allocations: 89.23 kB / 441.1 MB, free: 8.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001569/0.2484, allocations: 246.7 kB / 441.4 MB, free: 7.996 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.072e-05/0.2484, allocations: 29.7 kB / 441.4 MB, free: 7.961 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.343e-05/0.2485, allocations: 195.6 kB / 441.6 MB, free: 7.766 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.267e-05/0.2485, allocations: 39.45 kB / 441.6 MB, free: 7.727 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.761e-05/0.2486, allocations: 41.7 kB / 441.7 MB, free: 7.68 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.63e-05/0.2486, allocations: 334.8 kB / 442 MB, free: 7.344 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.83e-05/0.2487, allocations: 31.98 kB / 442 MB, free: 7.312 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.357e-05/0.2488, allocations: 129.7 kB / 442.1 MB, free: 7.141 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001515/0.2489, allocations: 197.4 kB / 442.3 MB, free: 6.902 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.2489, allocations: 4 kB / 442.3 MB, free: 6.898 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002299/0.2492, allocations: 209 kB / 442.5 MB, free: 6.688 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.2492, allocations: 4 kB / 442.5 MB, free: 6.684 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.2492, allocations: 4 kB / 442.6 MB, free: 6.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.2492, allocations: 4 kB / 442.6 MB, free: 6.676 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001703/0.2494, allocations: 43.92 kB / 442.6 MB, free: 6.633 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.727e-06/0.2494, allocations: 12.36 kB / 442.6 MB, free: 6.621 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.2495, allocations: 15.94 kB / 442.6 MB, free: 6.605 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.302e-05/0.2495, allocations: 12 kB / 442.6 MB, free: 6.594 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 (24): * Single equations (assignments): 24 * 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 9.387e-05/0.2496, allocations: 153.7 kB / 442.8 MB, free: 6.434 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.696e-05/0.2497, allocations: 23.72 kB / 442.8 MB, free: 6.41 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001878/0.2499, allocations: 127.3 kB / 442.9 MB, free: 6.281 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.2499, allocations: 4 kB / 442.9 MB, free: 6.277 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.2499, allocations: 0 / 442.9 MB, free: 6.277 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.2499, allocations: 7.922 kB / 442.9 MB, free: 6.27 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003959/0.2503, allocations: 487.1 kB / 443.4 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.2503, allocations: 0 / 443.4 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001181/0.2505, allocations: 27.92 kB / 443.4 MB, free: 5.707 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2505, allocations: 0 / 443.4 MB, free: 5.707 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.314e-05/0.2505, allocations: 11.94 kB / 443.5 MB, free: 5.695 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.2505, allocations: 0 / 443.5 MB, free: 5.695 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2505, allocations: 0 / 443.5 MB, free: 5.695 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002414/0.2507, allocations: 280.1 kB / 443.7 MB, free: 5.402 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.744e-05/0.2508, allocations: 96.86 kB / 443.8 MB, free: 5.289 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.035e-05/0.2508, allocations: 7.938 kB / 443.8 MB, free: 5.281 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.906e-05/0.2509, allocations: 4 kB / 443.8 MB, free: 5.277 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.233e-05/0.251, allocations: 19.91 kB / 443.9 MB, free: 5.258 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-06/0.251, allocations: 4 kB / 443.9 MB, free: 5.254 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001001/0.2511, allocations: 174 kB / 444 MB, free: 5.086 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2511, allocations: 4.062 kB / 444 MB, free: 5.082 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003055/0.2514, allocations: 44 kB / 444.1 MB, free: 5.039 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 (13): * Single equations (assignments): 12 * 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.0003534/0.2517, allocations: 0.8037 MB / 444.9 MB, free: 4.203 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001838/0.2519, allocations: 115.8 kB / 445 MB, free: 4.09 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.252, allocations: 0 / 445 MB, free: 4.09 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.932e-05/0.252, allocations: 51.31 kB / 445 MB, free: 4.043 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004452/0.2525, allocations: 58.22 kB / 445.1 MB, free: 3.984 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001954/0.2544, allocations: 2.537 MB / 447.6 MB, free: 1.273 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001799/0.2546, allocations: 0.7716 MB / 448.4 MB, free: 488 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001111/0.2548, allocations: 30.27 kB / 448.4 MB, free: 456 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.101e-05/0.2549, allocations: 87.41 kB / 448.5 MB, free: 368 kB / 318.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2549, allocations: 4 kB / 448.5 MB, free: 364 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01829/0.2732, allocations: 4.309 MB / 452.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002289/0.2734, allocations: 206.8 kB / 453 MB, free: 11.81 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.772/2.045, allocations: 3.938 kB / 453 MB, free: 11.81 MB / 334.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1)