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/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.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/Complex 3.2.2+maint.om/package.mo): time 0.00146/0.00146, allocations: 180.3 kB / 8.353 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.677/1.677, allocations: 194.4 MB / 203.1 MB, free: 12.96 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.001696/0.001696, allocations: 119.8 kB / 248.1 MB, free: 15.96 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1683/0.1683, allocations: 37.93 MB / 330.9 MB, free: 2.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.316e-05/2.34e-05, allocations: 4 kB / 390.5 MB, free: 6.992 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3032, allocations: 53.22 MB / 443.7 MB, free: 17.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1323/0.4356, allocations: 94.23 MB / 0.5253 GB, free: 3.312 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002896/0.436, allocations: 91.88 kB / 0.5254 GB, free: 3.223 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2637/0.6997, allocations: 11.36 MB / 0.5365 GB, free: 89.74 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.6997, allocations: 3.938 kB / 0.5365 GB, free: 89.74 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.316e-05/0.6998, allocations: 18.25 kB / 0.5365 GB, free: 89.73 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001149/0.7009, allocations: 0.7632 MB / 0.5373 GB, free: 89.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.701, allocations: 9.812 kB / 0.5373 GB, free: 89.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001166/0.7011, allocations: 65.25 kB / 0.5373 GB, free: 89.13 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002961/0.7041, allocations: 1.21 MB / 0.5385 GB, free: 88.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/0.7041, allocations: 11.19 kB / 0.5385 GB, free: 88.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.626e-05/0.7042, allocations: 25.91 kB / 0.5385 GB, free: 88.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005794/0.7048, allocations: 352.1 kB / 0.5389 GB, free: 88.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006526/0.7055, allocations: 483.3 kB / 0.5393 GB, free: 88.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.7055, allocations: 3.938 kB / 0.5393 GB, free: 88.14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.729e-05/0.7055, allocations: 3.688 kB / 0.5393 GB, free: 88.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.238e-05/0.7056, allocations: 16.03 kB / 0.5394 GB, free: 88.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001902/0.7075, allocations: 1.863 MB / 0.5412 GB, free: 86.56 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00048/0.708, allocations: 308 kB / 0.5415 GB, free: 86.39 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002483/0.7082, allocations: 163.3 kB / 0.5416 GB, free: 86.31 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.744e-05/0.7083, allocations: 7.969 kB / 0.5416 GB, free: 86.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003348/0.7086, allocations: 261.7 kB / 0.5419 GB, free: 86.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 2.294e-06/0.7086, allocations: 0 / 0.5419 GB, free: 86.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.001241/0.7099, allocations: 0.9273 MB / 0.5428 GB, free: 85.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.886e-05/0.7099, allocations: 162.1 kB / 0.5429 GB, free: 85.28 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002882/0.7102, allocations: 326.7 kB / 0.5433 GB, free: 85.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.301e-05/0.7103, allocations: 29.64 kB / 0.5433 GB, free: 85.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/0.7104, allocations: 293.3 kB / 0.5436 GB, free: 84.78 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.673e-05/0.7105, allocations: 105.4 kB / 0.5437 GB, free: 84.69 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.665e-05/0.7105, allocations: 0 / 0.5437 GB, free: 84.69 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.495e-05/0.7106, allocations: 357.9 kB / 0.544 GB, free: 84.34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000144/0.7107, allocations: 108.9 kB / 0.5441 GB, free: 84.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.7109, allocations: 269.8 kB / 0.5444 GB, free: 84.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001777/0.7111, allocations: 141.8 kB / 0.5445 GB, free: 83.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.7111, allocations: 7.531 kB / 0.5445 GB, free: 83.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0005062/0.7116, allocations: 434 kB / 0.5449 GB, free: 83.53 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.044e-05/0.7117, allocations: 37.7 kB / 0.545 GB, free: 83.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.7117, allocations: 8 kB / 0.545 GB, free: 83.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.126e-05/0.7117, allocations: 11.94 kB / 0.545 GB, free: 83.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003771/0.7121, allocations: 107.8 kB / 0.5451 GB, free: 83.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.497e-06/0.7121, allocations: 12 kB / 0.5451 GB, free: 83.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002334/0.7124, allocations: 19.83 kB / 0.5451 GB, free: 83.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.34e-05/0.7124, allocations: 31.98 kB / 0.5451 GB, free: 83.3 MB / 378.7 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,$whenCondition1,$whenCondition2,$PRE.tapChanger.cnt_1,tapChanger.cnt_1,$PRE.tapChanger.cnt_2,tapChanger.cnt_2,$PRE.tapChanger.tap_1,tapChanger.tap_1,$PRE.tapChanger.tap_2,tapChanger.tap_2) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.852e-05/0.7125, allocations: 162.5 kB / 0.5453 GB, free: 83.13 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004268/0.713, allocations: 364.6 kB / 0.5456 GB, free: 82.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.525e-05/0.713, allocations: 43.59 kB / 0.5457 GB, free: 82.72 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005007/0.7135, allocations: 386.1 kB / 0.5461 GB, free: 82.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.7135, allocations: 4 kB / 0.5461 GB, free: 82.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.7135, allocations: 3.938 kB / 0.5461 GB, free: 82.33 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.7136, allocations: 7.984 kB / 0.5461 GB, free: 82.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008122/0.7144, allocations: 0.818 MB / 0.5469 GB, free: 81.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.7144, allocations: 4 kB / 0.5469 GB, free: 81.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002869/0.7147, allocations: 59.91 kB / 0.5469 GB, free: 81.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.7147, allocations: 0 / 0.5469 GB, free: 81.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.326e-05/0.7147, allocations: 15.98 kB / 0.5469 GB, free: 81.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.7147, allocations: 0 / 0.5469 GB, free: 81.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.7147, allocations: 0 / 0.5469 GB, free: 81.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006585/0.7154, allocations: 0.6681 MB / 0.5476 GB, free: 80.69 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001146/0.7155, allocations: 152.5 kB / 0.5477 GB, free: 80.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.675e-05/0.7156, allocations: 4 kB / 0.5477 GB, free: 80.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002015/0.7158, allocations: 11.98 kB / 0.5478 GB, free: 80.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.979e-05/0.7159, allocations: 31.98 kB / 0.5478 GB, free: 80.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.001e-05/0.7159, allocations: 23.97 kB / 0.5478 GB, free: 80.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000197/0.7161, allocations: 251 kB / 0.5481 GB, free: 80.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7161, allocations: 0 / 0.5481 GB, free: 80.21 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004514/0.7166, allocations: 96 kB / 0.5481 GB, free: 80.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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) * 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 (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.001036/0.7176, allocations: 1.37 MB / 0.5495 GB, free: 78.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005179/0.7182, allocations: 382.7 kB / 0.5498 GB, free: 78.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.7182, allocations: 0 / 0.5498 GB, free: 78.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002227/0.7184, allocations: 254.1 kB / 0.5501 GB, free: 78.06 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005214/0.7189, allocations: 83.28 kB / 0.5502 GB, free: 77.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001432/0.7204, allocations: 0.8082 MB / 0.551 GB, free: 77.13 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002957/0.7207, allocations: 0.8976 MB / 0.5518 GB, free: 76.2 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002845/0.721, allocations: 88.31 kB / 0.5519 GB, free: 76.12 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001805/0.7212, allocations: 171.4 kB / 0.5521 GB, free: 75.95 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.7212, allocations: 0 / 0.5521 GB, free: 75.95 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02836/0.7496, allocations: 7.796 MB / 0.5597 GB, free: 68.16 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001757/0.7498, allocations: 148.5 kB / 0.5598 GB, free: 67.96 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.173/2.923, allocations: 0 / 0.5598 GB, free: 67.96 MB / 378.7 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/linux/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)