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/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.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/Complex 3.2.2+maint.om/package.mo): time 0.002065/0.002074, allocations: 182 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.816/1.816, 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.001678/0.001678, allocations: 116.7 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.1901/0.1901, allocations: 37.91 MB / 336.4 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.309e-05/5.351e-05, allocations: 3.938 kB / 397.6 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.2778, allocations: 53.22 MB / 450.9 MB, free: 13.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1247/0.4025, allocations: 89.08 MB / 0.5273 GB, free: 4.25 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002942/0.4029, allocations: 95.8 kB / 0.5274 GB, free: 4.16 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2661/0.669, allocations: 6.12 MB / 0.5334 GB, free: 87.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.6691, allocations: 0 / 0.5334 GB, free: 87.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.442e-05/0.6691, allocations: 6.125 kB / 0.5334 GB, free: 87.29 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007508/0.6699, allocations: 0.5055 MB / 0.5339 GB, free: 86.87 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.68e-05/0.6699, allocations: 11.08 kB / 0.5339 GB, free: 86.87 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.96e-05/0.67, allocations: 55.83 kB / 0.5339 GB, free: 86.83 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.071e-05/0.6701, allocations: 32.97 kB / 0.534 GB, free: 86.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001894/0.672, allocations: 0.7475 MB / 0.5347 GB, free: 86.58 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.177e-05/0.672, allocations: 15.47 kB / 0.5347 GB, free: 86.58 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.294e-05/0.6721, allocations: 18.66 kB / 0.5347 GB, free: 86.58 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004426/0.6725, allocations: 271.3 kB / 0.535 GB, free: 86.47 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.6725, allocations: 4 kB / 0.535 GB, free: 86.47 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.384e-05/0.6726, allocations: 14.19 kB / 0.535 GB, free: 86.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.6726, allocations: 5.375 kB / 0.535 GB, free: 86.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002802/0.6729, allocations: 156.1 kB / 0.5351 GB, free: 86.46 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001185/0.6741, allocations: 1.169 MB / 0.5363 GB, free: 85.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001283/0.6742, allocations: 81.78 kB / 0.5364 GB, free: 85.52 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.064e-05/0.6743, allocations: 29.25 kB / 0.5364 GB, free: 85.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.372e-05/0.6743, allocations: 5 kB / 0.5364 GB, free: 85.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.512e-05/0.6743, allocations: 32.33 kB / 0.5364 GB, free: 85.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.462e-06/0.6743, allocations: 5.125 kB / 0.5364 GB, free: 85.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0006367/0.675, allocations: 399.8 kB / 0.5368 GB, free: 85.13 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.346e-05/0.675, allocations: 84.86 kB / 0.5369 GB, free: 85.03 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002044/0.6752, allocations: 218.2 kB / 0.5371 GB, free: 84.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.067e-05/0.6752, allocations: 27.02 kB / 0.5371 GB, free: 84.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.073e-05/0.6753, allocations: 184.2 kB / 0.5373 GB, free: 84.76 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.294e-05/0.6754, allocations: 34.22 kB / 0.5373 GB, free: 84.74 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.893e-06/0.6754, allocations: 4.625 kB / 0.5373 GB, free: 84.74 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.748e-05/0.6755, allocations: 330.1 kB / 0.5377 GB, free: 84.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.129e-05/0.6755, allocations: 27.41 kB / 0.5377 GB, free: 84.42 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.155e-05/0.6756, allocations: 118.9 kB / 0.5378 GB, free: 84.29 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.985e-05/0.6757, allocations: 47.69 kB / 0.5378 GB, free: 84.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.6757, allocations: 2 kB / 0.5378 GB, free: 84.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002537/0.676, allocations: 171.4 kB / 0.538 GB, free: 84.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.676, allocations: 6.062 kB / 0.538 GB, free: 84.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.676, allocations: 7.688 kB / 0.538 GB, free: 84.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.239e-05/0.676, allocations: 10.06 kB / 0.538 GB, free: 84.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001743/0.6762, allocations: 39.48 kB / 0.5381 GB, free: 84.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/0.6762, allocations: 13.86 kB / 0.5381 GB, free: 84.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.924e-05/0.6763, allocations: 12.03 kB / 0.5381 GB, free: 84.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.323e-05/0.6764, allocations: 13.12 kB / 0.5381 GB, free: 84.15 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 (22): * Single equations (assignments): 22 * 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 5.902e-05/0.6764, allocations: 117 kB / 0.5382 GB, free: 84.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.282e-05/0.6765, allocations: 17.67 kB / 0.5382 GB, free: 84.03 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001707/0.6767, allocations: 94.19 kB / 0.5383 GB, free: 83.96 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.6767, allocations: 5.766 kB / 0.5383 GB, free: 83.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.6767, allocations: 4.922 kB / 0.5383 GB, free: 83.96 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.6767, allocations: 0.6094 kB / 0.5383 GB, free: 83.96 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004178/0.6771, allocations: 419.2 kB / 0.5387 GB, free: 83.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.6771, allocations: 0.9375 kB / 0.5387 GB, free: 83.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.761e-05/0.6772, allocations: 15.52 kB / 0.5387 GB, free: 83.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.117e-06/0.6772, allocations: 6 kB / 0.5388 GB, free: 83.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.6773, allocations: 5.734 kB / 0.5388 GB, free: 83.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.6773, allocations: 5.062 kB / 0.5388 GB, free: 83.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.6773, allocations: 1.812 kB / 0.5388 GB, free: 83.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002391/0.6775, allocations: 251.8 kB / 0.539 GB, free: 83.37 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.468e-05/0.6776, allocations: 99.3 kB / 0.5391 GB, free: 83.26 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.787e-05/0.6776, allocations: 6.922 kB / 0.5391 GB, free: 83.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.029e-05/0.6777, allocations: 4.594 kB / 0.5391 GB, free: 83.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.418e-05/0.6777, allocations: 9.469 kB / 0.5391 GB, free: 83.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.178e-06/0.6778, allocations: 4 kB / 0.5391 GB, free: 83.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001417/0.6779, allocations: 166.8 kB / 0.5393 GB, free: 83.15 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6779, allocations: 0 / 0.5393 GB, free: 83.15 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003133/0.6782, allocations: 41.53 kB / 0.5393 GB, free: 83.15 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 (9): * Single equations (assignments): 8 * 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.0005252/0.6788, allocations: 0.9236 MB / 0.5402 GB, free: 82.26 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002021/0.679, allocations: 85.53 kB / 0.5403 GB, free: 82.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.679, allocations: 0.5 kB / 0.5403 GB, free: 82.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.915e-05/0.6791, allocations: 26.08 kB / 0.5403 GB, free: 82.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004129/0.6795, allocations: 46.97 kB / 0.5404 GB, free: 82.21 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009998/0.6805, allocations: 402.4 kB / 0.5408 GB, free: 81.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002869/0.6808, allocations: 0.7677 MB / 0.5415 GB, free: 81.24 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001141/0.6809, allocations: 31.39 kB / 0.5415 GB, free: 81.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.845e-05/0.681, allocations: 74.86 kB / 0.5416 GB, free: 81.18 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.681, allocations: 3.938 kB / 0.5416 GB, free: 81.18 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01851/0.6995, allocations: 3.778 MB / 0.5453 GB, free: 80.76 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001565/0.6997, allocations: 152.3 kB / 0.5455 GB, free: 80.53 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.813/2.513, allocations: 3.938 kB / 0.5455 GB, free: 80.53 MB / 378.7 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/linux/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)