Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.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/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",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.001302/0.001302, allocations: 109.7 kB / 17.06 MB, free: 5.996 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.001236/0.001237, allocations: 193.4 kB / 18 MB, free: 5.074 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.418/1.418, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1726/0.1726, allocations: 38.03 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 67.89 kB / 457.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.2565, allocations: 58.05 MB / 0.5036 GB, free: 7.539 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.005003/0.2615, allocations: 5.509 MB / 0.509 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001777/0.2633, allocations: 1.36 MB / 0.5103 GB, free: 2.746 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003187/0.2637, allocations: 19.66 kB / 0.5103 GB, free: 2.738 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003952/0.2641, allocations: 145 kB / 0.5105 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007317/0.2648, allocations: 376.9 kB / 0.5108 GB, free: 2.453 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002962/0.2651, allocations: 148.7 kB / 0.511 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005901/0.2657, allocations: 0.782 MB / 0.5117 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002571/0.266, allocations: 225.3 kB / 0.512 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003256/0.2663, allocations: 339.8 kB / 0.5123 GB, free: 1.789 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004818/0.2668, allocations: 412.6 kB / 0.5127 GB, free: 1.629 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.43e-05/0.2669, allocations: 39.72 kB / 0.5127 GB, free: 1.629 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.003e-05/0.267, allocations: 40.25 kB / 0.5128 GB, free: 1.629 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001726/0.2672, allocations: 197.5 kB / 0.5129 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002127/0.2674, allocations: 274.6 kB / 0.5132 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005144/0.2679, allocations: 0.5883 MB / 0.5138 GB, free: 1.152 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.2679, allocations: 1.125 kB / 0.5138 GB, free: 1.152 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2679, allocations: 0 / 0.5138 GB, free: 1.152 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.2679, allocations: 0 / 0.5138 GB, free: 1.152 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001108/0.2691, allocations: 0.9019 MB / 0.5147 GB, free: 488 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.943e-05/0.2691, allocations: 13.11 kB / 0.5147 GB, free: 484 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.468e-05/0.2692, allocations: 81.08 kB / 0.5148 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.154e-05/0.2693, allocations: 74.19 kB / 0.5148 GB, free: 376 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006093/0.2699, allocations: 0.5106 MB / 0.5153 GB, free: 24 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.412e-05/0.2699, allocations: 30.14 kB / 0.5154 GB, free: 12 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.576e-05/0.27, allocations: 38.97 kB / 0.5154 GB, free: 0 / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000774/0.2707, allocations: 0.5381 MB / 0.5159 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.2708, allocations: 5.438 kB / 0.5159 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.993e-05/0.2708, allocations: 16.09 kB / 0.5159 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.936e-05/0.2709, allocations: 20.36 kB / 0.516 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006087/0.2715, allocations: 394.2 kB / 0.5163 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002343/0.2738, allocations: 1.924 MB / 0.5182 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005279/0.2744, allocations: 331.8 kB / 0.5185 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000285/0.2747, allocations: 185 kB / 0.5187 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.2747, allocations: 2.906 kB / 0.5187 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003531/0.275, allocations: 286.2 kB / 0.519 GB, free: 13.76 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 1.383e-06/0.2751, allocations: 0 / 0.519 GB, free: 13.76 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.00165/0.2767, allocations: 1.197 MB / 0.5201 GB, free: 13.01 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.726e-05/0.2768, allocations: 161.5 kB / 0.5203 GB, free: 12.82 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003632/0.2772, allocations: 403.9 kB / 0.5207 GB, free: 12.63 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.072e-05/0.2772, allocations: 36.08 kB / 0.5207 GB, free: 12.59 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001912/0.2774, allocations: 294.5 kB / 0.521 GB, free: 12.35 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.394e-05/0.2775, allocations: 130.3 kB / 0.5211 GB, free: 12.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/0.2776, allocations: 91.33 kB / 0.5212 GB, free: 12.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.2778, allocations: 362 kB / 0.5216 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001955/0.278, allocations: 120.5 kB / 0.5217 GB, free: 11.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003087/0.2783, allocations: 291.6 kB / 0.5219 GB, free: 11.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005281/0.2789, allocations: 488.8 kB / 0.5224 GB, free: 11.18 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.2789, allocations: 2.312 kB / 0.5224 GB, free: 11.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006853/0.2796, allocations: 0.52 MB / 0.5229 GB, free: 10.93 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.295e-05/0.2796, allocations: 38 kB / 0.523 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.2796, allocations: 5.719 kB / 0.523 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.2796, allocations: 9.844 kB / 0.523 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003538/0.28, allocations: 102.6 kB / 0.5231 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.46e-05/0.28, allocations: 17.73 kB / 0.5231 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002259/0.2802, allocations: 22.28 kB / 0.5231 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.347e-05/0.2803, allocations: 32.81 kB / 0.5231 GB, free: 10.87 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,tapChanger.tap_2,$PRE.tapChanger.tap_2,tapChanger.tap_1,$PRE.tapChanger.tap_1,tapChanger.cnt_2,$PRE.tapChanger.cnt_2,tapChanger.cnt_1,$PRE.tapChanger.cnt_1,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0002333/0.2805, allocations: 246.5 kB / 0.5234 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.983e-05/0.2806, allocations: 54.27 kB / 0.5234 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006307/0.2812, allocations: 460.4 kB / 0.5239 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.2813, allocations: 2.75 kB / 0.5239 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.2813, allocations: 5.375 kB / 0.5239 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.2813, allocations: 3.391 kB / 0.5239 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00123/0.2825, allocations: 0.9776 MB / 0.5248 GB, free: 9.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.2825, allocations: 2.188 kB / 0.5248 GB, free: 9.855 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000271/0.2828, allocations: 63.36 kB / 0.5249 GB, free: 9.848 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.2828, allocations: 6.875 kB / 0.5249 GB, free: 9.844 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.502e-05/0.2828, allocations: 14.75 kB / 0.5249 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.2829, allocations: 3.266 kB / 0.5249 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.2829, allocations: 5.125 kB / 0.5249 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008591/0.2837, allocations: 0.7025 MB / 0.5256 GB, free: 9.449 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000144/0.2839, allocations: 147.9 kB / 0.5258 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.507e-05/0.2839, allocations: 9.703 kB / 0.5258 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001998/0.2841, allocations: 14.69 kB / 0.5258 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.29e-05/0.2842, allocations: 27.27 kB / 0.5258 GB, free: 9.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.836e-05/0.2843, allocations: 34.97 kB / 0.5258 GB, free: 9.293 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000251/0.2845, allocations: 269.1 kB / 0.5261 GB, free: 9.164 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2845, allocations: 0 / 0.5261 GB, free: 9.164 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003844/0.2849, allocations: 101.8 kB / 0.5262 GB, free: 9.152 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (trafo.i1) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,tapChanger.tap_1,tapChanger.tap_2,tapChanger.cnt_1,tapChanger.cnt_2,system.initime) * Number of discrete states: 6 (tapChanger.tap_2,tapChanger.cnt_2,$whenCondition2,tapChanger.tap_1,tapChanger.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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.001125/0.2861, allocations: 1.259 MB / 0.5274 GB, free: 8.234 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005297/0.2866, allocations: 401.7 kB / 0.5278 GB, free: 8.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2866, allocations: 0 / 0.5278 GB, free: 8.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003001/0.2869, allocations: 266.5 kB / 0.5281 GB, free: 7.934 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005634/0.2875, allocations: 109.3 kB / 0.5282 GB, free: 7.891 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004486/0.292, allocations: 4.138 MB / 0.5322 GB, free: 5.246 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004872/0.2925, allocations: 0.8855 MB / 0.5331 GB, free: 4.527 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002328/0.2927, allocations: 84.58 kB / 0.5331 GB, free: 4.508 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002209/0.2929, allocations: 175.8 kB / 0.5333 GB, free: 4.379 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.293, allocations: 0 / 0.5333 GB, free: 4.379 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.939/2.232, allocations: 8.703 MB / 0.5418 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.747/10.98, allocations: 1.406 kB / 0.5418 GB, free: 0.5586 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1)