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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001667/0.001668, allocations: 182.3 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.72/1.72, allocations: 194.3 MB / 208.4 MB, free: 6.715 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001803/0.001803, allocations: 114.3 kB / 253.5 MB, free: 9.59 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1762/0.1762, allocations: 37.91 MB / 336.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.949e-05/5.976e-05, allocations: 4 kB / 397.6 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3977/0.3978, allocations: 53.22 MB / 450.9 MB, free: 13.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1337/0.5315, allocations: 89.71 MB / 0.5279 GB, free: 3.613 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003524/0.532, allocations: 95.8 kB / 0.528 GB, free: 3.523 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3458/0.8778, allocations: 6.592 MB / 0.5344 GB, free: 87.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.8779, allocations: 1.344 kB / 0.5344 GB, free: 87.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.731e-05/0.8779, allocations: 10.77 kB / 0.5344 GB, free: 87.5 MB / 378.7 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.001186/0.8791, allocations: 0.5344 MB / 0.535 GB, free: 87.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.586e-05/0.8792, allocations: 9.281 kB / 0.535 GB, free: 87.07 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001229/0.8793, allocations: 55.59 kB / 0.535 GB, free: 87.03 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001201/0.8794, allocations: 31.48 kB / 0.5351 GB, free: 87.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002334/0.8818, allocations: 0.7707 MB / 0.5358 GB, free: 86.76 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.121e-05/0.8818, allocations: 17.53 kB / 0.5358 GB, free: 86.76 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.821e-05/0.8819, allocations: 23.05 kB / 0.5359 GB, free: 86.76 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005549/0.8825, allocations: 285.9 kB / 0.5361 GB, free: 86.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.8825, allocations: 0 / 0.5361 GB, free: 86.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.972e-05/0.8825, allocations: 15.33 kB / 0.5361 GB, free: 86.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.8826, allocations: 10.66 kB / 0.5361 GB, free: 86.64 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003708/0.8829, allocations: 177.2 kB / 0.5363 GB, free: 86.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001573/0.8845, allocations: 1.228 MB / 0.5375 GB, free: 85.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003219/0.8849, allocations: 101.1 kB / 0.5376 GB, free: 85.52 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.345e-05/0.885, allocations: 48.52 kB / 0.5377 GB, free: 85.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.885, allocations: 6.375 kB / 0.5377 GB, free: 85.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.303e-05/0.885, allocations: 31.66 kB / 0.5377 GB, free: 85.44 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.943e-06/0.885, allocations: 0 / 0.5377 GB, free: 85.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.0008823/0.8859, allocations: 459.6 kB / 0.5381 GB, free: 85.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.296e-05/0.886, allocations: 78.23 kB / 0.5382 GB, free: 84.97 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000238/0.8862, allocations: 228.1 kB / 0.5384 GB, free: 84.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.8862, allocations: 25.7 kB / 0.5384 GB, free: 84.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.503e-05/0.8863, allocations: 200.9 kB / 0.5386 GB, free: 84.62 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.979e-05/0.8864, allocations: 37.36 kB / 0.5387 GB, free: 84.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.067e-06/0.8864, allocations: 1.562 kB / 0.5387 GB, free: 84.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.805e-05/0.8865, allocations: 333 kB / 0.539 GB, free: 84.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.896e-05/0.8866, allocations: 28.88 kB / 0.539 GB, free: 84.27 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.995e-05/0.8867, allocations: 131.8 kB / 0.5391 GB, free: 84.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001107/0.8868, allocations: 55.03 kB / 0.5392 GB, free: 84.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.8868, allocations: 5.031 kB / 0.5392 GB, free: 84.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000333/0.8871, allocations: 205 kB / 0.5394 GB, free: 84 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.8872, allocations: 6.375 kB / 0.5394 GB, free: 84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.8872, allocations: 7.188 kB / 0.5394 GB, free: 84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.8872, allocations: 9.047 kB / 0.5394 GB, free: 84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001747/0.8874, allocations: 50.34 kB / 0.5395 GB, free: 83.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/0.8874, allocations: 5.547 kB / 0.5395 GB, free: 83.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001362/0.8876, allocations: 12.81 kB / 0.5395 GB, free: 83.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/0.8876, allocations: 12.41 kB / 0.5395 GB, free: 83.98 MB / 378.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.825e-05/0.8877, allocations: 124.5 kB / 0.5396 GB, free: 83.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.159e-05/0.8877, allocations: 17.22 kB / 0.5396 GB, free: 83.85 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002496/0.888, allocations: 134.1 kB / 0.5398 GB, free: 83.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.888, allocations: 8.766 kB / 0.5398 GB, free: 83.77 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.888, allocations: 8.078 kB / 0.5398 GB, free: 83.76 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.888, allocations: 1.188 kB / 0.5398 GB, free: 83.76 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005434/0.8886, allocations: 474.8 kB / 0.5402 GB, free: 83.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.8886, allocations: 4.969 kB / 0.5402 GB, free: 83.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001272/0.8887, allocations: 22.84 kB / 0.5403 GB, free: 83.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.981e-06/0.8887, allocations: 1.344 kB / 0.5403 GB, free: 83.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.8888, allocations: 5.047 kB / 0.5403 GB, free: 83.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.8888, allocations: 1.375 kB / 0.5403 GB, free: 83.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.8888, allocations: 5.469 kB / 0.5403 GB, free: 83.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003873/0.8892, allocations: 294.9 kB / 0.5406 GB, free: 83.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.697e-05/0.8893, allocations: 102 kB / 0.5407 GB, free: 83.03 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.111e-05/0.8893, allocations: 2.094 kB / 0.5407 GB, free: 83.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001319/0.8895, allocations: 5.062 kB / 0.5407 GB, free: 83.03 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.895e-05/0.8895, allocations: 11.86 kB / 0.5407 GB, free: 83.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.8895, allocations: 3.688 kB / 0.5407 GB, free: 83.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001959/0.8897, allocations: 169.9 kB / 0.5408 GB, free: 82.92 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.8898, allocations: 0 / 0.5408 GB, free: 82.92 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003655/0.8901, allocations: 49.81 kB / 0.5409 GB, free: 82.91 MB / 378.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006209/0.8908, allocations: 0.9831 MB / 0.5418 GB, free: 82.01 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002701/0.891, allocations: 114.8 kB / 0.542 GB, free: 81.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.891, allocations: 0 / 0.542 GB, free: 81.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.8912, allocations: 43.62 kB / 0.542 GB, free: 81.95 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004498/0.8916, allocations: 51.34 kB / 0.542 GB, free: 81.93 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001124/0.8928, allocations: 432.5 kB / 0.5425 GB, free: 81.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004055/0.8932, allocations: 0.7874 MB / 0.5432 GB, free: 80.95 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001953/0.8934, allocations: 32.34 kB / 0.5433 GB, free: 80.94 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001409/0.8935, allocations: 82.33 kB / 0.5433 GB, free: 80.88 MB / 378.7 MB Notification: Performance of SimCode: time 6.71e-07/0.8935, allocations: 0 / 0.5433 GB, free: 80.88 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02085/0.9144, allocations: 4.192 MB / 0.5474 GB, free: 79.8 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001825/0.9146, allocations: 163.9 kB / 0.5476 GB, free: 79.58 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.019/2.934, allocations: 4 kB / 0.5476 GB, free: 79.58 MB / 378.7 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/linux/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)