Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_latest_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.0008894/0.0008895, allocations: 88.91 kB / 16.31 MB, free: 6.469 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.0007949/0.0007948, allocations: 183.9 kB / 17.21 MB, free: 6.336 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.401/1.401, allocations: 223.2 MB / 241.2 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3852/0.3852, allocations: 38.07 MB / 330.4 MB, free: 14.21 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003261/0.0003262, allocations: 8 kB / 400.2 MB, free: 9.184 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3543/0.3547, allocations: 59.16 MB / 459.3 MB, free: 29.99 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.007229/0.3619, allocations: 5.811 MB / 465.1 MB, free: 25.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003469/0.3655, allocations: 1.603 MB / 466.7 MB, free: 24.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005466/0.3661, allocations: 37.47 kB / 466.8 MB, free: 24.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004766/0.3665, allocations: 128.4 kB / 466.9 MB, free: 24.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001304/0.3679, allocations: 406.3 kB / 467.3 MB, free: 24.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006833/0.3686, allocations: 180.1 kB / 467.5 MB, free: 24.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001289/0.3699, allocations: 0.9236 MB / 468.4 MB, free: 23.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003593/0.3702, allocations: 160.4 kB / 468.6 MB, free: 23.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005979/0.3708, allocations: 291.5 kB / 468.8 MB, free: 23.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007739/0.3716, allocations: 397.3 kB / 469.2 MB, free: 23.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.186e-05/0.3717, allocations: 20.44 kB / 469.3 MB, free: 23.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001022/0.3718, allocations: 20.84 kB / 469.3 MB, free: 23.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002546/0.3721, allocations: 187.5 kB / 469.5 MB, free: 23.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001315/0.3722, allocations: 118.4 kB / 469.6 MB, free: 23.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005386/0.3727, allocations: 431.1 kB / 470 MB, free: 23.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3728, allocations: 3.938 kB / 470 MB, free: 23.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.3728, allocations: 4 kB / 470 MB, free: 23.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.3728, allocations: 0 / 470 MB, free: 23.44 MB / 350.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.001324/0.3741, allocations: 0.8002 MB / 470.8 MB, free: 22.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.3742, allocations: 9.172 kB / 470.8 MB, free: 22.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.933e-05/0.3743, allocations: 81.91 kB / 470.9 MB, free: 22.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000104/0.3744, allocations: 59.75 kB / 470.9 MB, free: 22.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007875/0.3752, allocations: 477.1 kB / 471.4 MB, free: 22.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.37e-05/0.3752, allocations: 30.22 kB / 471.4 MB, free: 22.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.354e-05/0.3753, allocations: 42.38 kB / 471.5 MB, free: 22.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009144/0.3762, allocations: 0.5255 MB / 472 MB, free: 22.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.3763, allocations: 3.938 kB / 472 MB, free: 22.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.204e-05/0.3763, allocations: 16.81 kB / 472 MB, free: 22.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.98e-05/0.3764, allocations: 20.83 kB / 472.1 MB, free: 22.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006625/0.377, allocations: 400.6 kB / 472.4 MB, free: 21.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002738/0.3798, allocations: 1.934 MB / 474.4 MB, free: 20.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006673/0.3805, allocations: 329.8 kB / 474.7 MB, free: 20.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003346/0.3808, allocations: 189.3 kB / 474.9 MB, free: 20.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.313e-05/0.3809, allocations: 6.75 kB / 474.9 MB, free: 20.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004079/0.3813, allocations: 284 kB / 475.2 MB, free: 20.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 1.893e-06/0.3813, allocations: 0 / 475.2 MB, free: 20.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.001937/0.3832, allocations: 1.177 MB / 476.3 MB, free: 19.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.3834, allocations: 171 kB / 476.5 MB, free: 19.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005055/0.3839, allocations: 397.3 kB / 476.9 MB, free: 19.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.846e-05/0.3839, allocations: 32.45 kB / 476.9 MB, free: 18.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000213/0.3841, allocations: 291.9 kB / 477.2 MB, free: 18.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.906e-05/0.3842, allocations: 116.9 kB / 477.3 MB, free: 18.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.019e-05/0.3843, allocations: 10.81 kB / 477.3 MB, free: 18.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.3844, allocations: 357 kB / 477.7 MB, free: 18.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002279/0.3846, allocations: 118.4 kB / 477.8 MB, free: 18.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002954/0.3849, allocations: 291.7 kB / 478.1 MB, free: 18.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002621/0.3852, allocations: 186.2 kB / 478.3 MB, free: 17.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3852, allocations: 1.969 kB / 478.3 MB, free: 17.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000743/0.386, allocations: 0.5074 MB / 478.8 MB, free: 17.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.424e-05/0.386, allocations: 40.59 kB / 478.8 MB, free: 17.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.386, allocations: 5.125 kB / 478.8 MB, free: 17.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.579e-05/0.3861, allocations: 13.69 kB / 478.8 MB, free: 17.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004288/0.3865, allocations: 109.8 kB / 478.9 MB, free: 17.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.276e-05/0.3865, allocations: 15.42 kB / 479 MB, free: 17.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002524/0.3868, allocations: 25.55 kB / 479 MB, free: 17.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-05/0.3869, allocations: 30.95 kB / 479 MB, free: 17.53 MB / 350.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,$PRE.tapChanger.tap_1,tapChanger.tap_1,$PRE.tapChanger.tap_2,tapChanger.tap_2,$whenCondition1,$whenCondition2,$PRE.tapChanger.cnt_1,tapChanger.cnt_1,$PRE.tapChanger.cnt_2,tapChanger.cnt_2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002875/0.3872, allocations: 246.8 kB / 479.3 MB, free: 17.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.003e-05/0.3872, allocations: 50.34 kB / 479.3 MB, free: 17.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007038/0.3879, allocations: 449.9 kB / 479.7 MB, free: 17.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.388, allocations: 7.156 kB / 479.8 MB, free: 17.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.388, allocations: 1 kB / 479.8 MB, free: 17.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/0.388, allocations: 12.98 kB / 479.8 MB, free: 17.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001184/0.3892, allocations: 0.963 MB / 480.7 MB, free: 16.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.3892, allocations: 1 kB / 480.7 MB, free: 16.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003005/0.3895, allocations: 68.56 kB / 480.8 MB, free: 16.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.94e-06/0.3895, allocations: 2.312 kB / 480.8 MB, free: 16.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.868e-05/0.3895, allocations: 13.55 kB / 480.8 MB, free: 16.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.3896, allocations: 5.047 kB / 480.8 MB, free: 16.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3896, allocations: 1.25 kB / 480.8 MB, free: 16.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008883/0.3905, allocations: 0.7162 MB / 481.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001307/0.3906, allocations: 135.2 kB / 481.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.024e-05/0.3907, allocations: 8.438 kB / 481.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002071/0.3909, allocations: 17.11 kB / 481.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.495e-05/0.391, allocations: 27.3 kB / 481.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.951e-05/0.391, allocations: 29.47 kB / 481.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003216/0.3914, allocations: 265.4 kB / 482 MB, free: 15.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3914, allocations: 8 kB / 482 MB, free: 15.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00059/0.392, allocations: 107.3 kB / 482.1 MB, free: 15.48 MB / 350.1 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) * 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 (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.001171/0.3931, allocations: 1.262 MB / 483.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006188/0.3938, allocations: 398.2 kB / 483.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3938, allocations: 0 / 483.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002943/0.3941, allocations: 272.4 kB / 484 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006125/0.3947, allocations: 99.75 kB / 484.1 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003682/0.3984, allocations: 2.816 MB / 486.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003004/0.3987, allocations: 0.882 MB / 487.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003055/0.399, allocations: 92.31 kB / 487.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001848/0.3992, allocations: 171.4 kB / 488.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3992, allocations: 0 / 488.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01799/0.4172, allocations: 8.092 MB / 496.2 MB, free: 2.348 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001568/0.4174, allocations: 205.9 kB / 496.4 MB, free: 2.098 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.878/2.296, allocations: 0 / 496.4 MB, free: 2.098 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer_res.mat does not exist to compare? outputFormat=mat