Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Transformer,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Transformer,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000946/0.0009461, allocations: 173.2 kB / 16.07 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.253/1.253, allocations: 205.4 MB / 222.2 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006753/0.0006752, allocations: 82.36 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1596/0.1596, allocations: 38.08 MB / 356.9 MB, free: 1.723 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003187/0.0003188, allocations: 12 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2124/0.2127, allocations: 56.33 MB / 479.7 MB, free: 9.227 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Transformer): time 0.005321/0.2181, allocations: 6.788 MB / 486.5 MB, free: 4.633 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003401/0.2215, allocations: 2.631 MB / 489.2 MB, free: 2.77 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003859/0.2219, allocations: 45.59 kB / 489.2 MB, free: 2.746 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005209/0.2224, allocations: 227.6 kB / 489.4 MB, free: 2.641 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001265/0.2237, allocations: 0.6926 MB / 490.1 MB, free: 2.297 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009543/0.2247, allocations: 431.4 kB / 490.5 MB, free: 2.125 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001648/0.2263, allocations: 1.746 MB / 492.3 MB, free: 1.539 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009969/0.2273, allocations: 0.7524 MB / 493 MB, free: 1.102 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006451/0.228, allocations: 494.3 kB / 493.5 MB, free: 0.918 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001018/0.229, allocations: 0.7932 MB / 494.3 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.638e-05/0.2291, allocations: 40.62 kB / 494.4 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005271/0.2297, allocations: 262.5 kB / 494.6 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004793/0.2302, allocations: 0.4936 MB / 495.1 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004257/0.2306, allocations: 490.8 kB / 495.6 MB, free: 220 kB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009953/0.2316, allocations: 0.9769 MB / 496.6 MB, free: 8 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.2316, allocations: 4.844 kB / 496.6 MB, free: 4 kB / 314.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2316, allocations: 0 / 496.6 MB, free: 4 kB / 314.7 MB Notification: Performance of Transformations before backend: time 1.357e-05/0.2316, allocations: 0 / 496.6 MB, free: 4 kB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.001898/0.2335, allocations: 1.129 MB / 497.7 MB, free: 15.15 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.2336, allocations: 9.094 kB / 497.7 MB, free: 15.15 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001709/0.2338, allocations: 154 kB / 497.8 MB, free: 15.03 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009486/0.2347, allocations: 202.1 kB / 498 MB, free: 14.93 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009961/0.2357, allocations: 0.6718 MB / 498.7 MB, free: 14.41 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.03e-05/0.2358, allocations: 68.66 kB / 498.8 MB, free: 14.38 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000188/0.236, allocations: 95.95 kB / 498.9 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001827/0.2378, allocations: 1.386 MB / 0.4885 GB, free: 13.41 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.911e-05/0.2379, allocations: 7.438 kB / 0.4885 GB, free: 13.41 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.524e-05/0.238, allocations: 33.55 kB / 0.4886 GB, free: 13.39 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002625/0.2382, allocations: 124.2 kB / 0.4887 GB, free: 13.34 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001546/0.2398, allocations: 1.084 MB / 0.4898 GB, free: 12.84 MB / 330.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005928/0.2457, allocations: 5.974 MB / 0.4956 GB, free: 7.723 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009591/0.2467, allocations: 0.6986 MB / 0.4963 GB, free: 7.297 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004188/0.2471, allocations: 318.7 kB / 0.4966 GB, free: 7.133 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.036e-05/0.2472, allocations: 18.95 kB / 0.4966 GB, free: 7.121 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006273/0.2478, allocations: 470.5 kB / 0.497 GB, free: 6.797 MB / 330.7 MB Notification: Performance of pre-optimization done (n=65): time 2.444e-06/0.2478, allocations: 3.938 kB / 0.497 GB, free: 6.793 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.003015/0.2509, allocations: 2.147 MB / 0.4991 GB, free: 5.477 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.178e-05/0.2509, allocations: 164.3 kB / 0.4993 GB, free: 5.289 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006517/0.2516, allocations: 0.6325 MB / 0.4999 GB, free: 4.918 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.325e-05/0.2516, allocations: 40.17 kB / 0.5 GB, free: 4.875 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000316/0.252, allocations: 0.5286 MB / 0.5005 GB, free: 4.402 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001582/0.2521, allocations: 225.8 kB / 0.5007 GB, free: 4.211 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.528e-05/0.2522, allocations: 24.53 kB / 0.5007 GB, free: 4.191 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.2523, allocations: 392.2 kB / 0.5011 GB, free: 3.82 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004743/0.2528, allocations: 334.8 kB / 0.5014 GB, free: 3.668 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007124/0.2535, allocations: 0.7659 MB / 0.5022 GB, free: 2.922 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001224/0.2548, allocations: 1.237 MB / 0.5034 GB, free: 1.484 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.2548, allocations: 4 kB / 0.5034 GB, free: 1.48 MB / 330.7 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.00215/0.2569, allocations: 1.431 MB / 0.5048 GB, free: 28 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.918e-05/0.257, allocations: 49.64 kB / 0.5048 GB, free: 15.97 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001266/0.2583, allocations: 0.7781 MB / 0.5056 GB, free: 15.19 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006622/0.2589, allocations: 261.5 kB / 0.5058 GB, free: 14.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006251/0.2596, allocations: 219.6 kB / 0.506 GB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003732/0.2633, allocations: 4.029 MB / 0.51 GB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006148/0.264, allocations: 63.94 kB / 0.51 GB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.867e-05/0.2641, allocations: 59.98 kB / 0.5101 GB, free: 10.29 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (119): * Single equations (assignments): 116 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 12,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005373/0.2646, allocations: 403.1 kB / 0.5105 GB, free: 9.883 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.631e-05/0.2647, allocations: 75.06 kB / 0.5105 GB, free: 9.809 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001216/0.2659, allocations: 0.8438 MB / 0.5114 GB, free: 8.945 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.2659, allocations: 8 kB / 0.5114 GB, free: 8.938 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.2659, allocations: 3.938 kB / 0.5114 GB, free: 8.934 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.266, allocations: 3.984 kB / 0.5114 GB, free: 8.93 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002385/0.2683, allocations: 1.763 MB / 0.5131 GB, free: 7.086 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.2684, allocations: 7.984 kB / 0.5131 GB, free: 7.078 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006649/0.269, allocations: 143.8 kB / 0.5132 GB, free: 6.938 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.269, allocations: 4 kB / 0.5132 GB, free: 6.934 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.754e-05/0.2691, allocations: 16 kB / 0.5133 GB, free: 6.918 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.105e-06/0.2691, allocations: 11.92 kB / 0.5133 GB, free: 6.906 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.2691, allocations: 8.156 kB / 0.5133 GB, free: 6.898 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00154/0.2707, allocations: 1.297 MB / 0.5145 GB, free: 5.562 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002622/0.2709, allocations: 204.2 kB / 0.5147 GB, free: 5.344 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.591e-05/0.271, allocations: 16 kB / 0.5148 GB, free: 5.328 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003504/0.2714, allocations: 31.97 kB / 0.5148 GB, free: 5.297 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.2715, allocations: 44.44 kB / 0.5148 GB, free: 5.254 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.987e-05/0.2716, allocations: 43.95 kB / 0.5149 GB, free: 5.211 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004327/0.272, allocations: 423 kB / 0.5153 GB, free: 4.801 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.272, allocations: 4 kB / 0.5153 GB, free: 4.797 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000835/0.2729, allocations: 231.9 kB / 0.5155 GB, free: 4.57 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (trafo.i1[1],trafo.i1[2],trafo.i1[3]) * 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 (64): * Single equations (assignments): 62 * 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.001731/0.2746, allocations: 1.869 MB / 0.5173 GB, free: 2.648 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001564/0.2762, allocations: 1.218 MB / 0.5185 GB, free: 1.391 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2762, allocations: 0 / 0.5185 GB, free: 1.391 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005113/0.2767, allocations: 466.3 kB / 0.519 GB, free: 0.9258 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007878/0.2775, allocations: 126.5 kB / 0.5191 GB, free: 0.8086 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007575/0.2851, allocations: 5.855 MB / 0.5248 GB, free: 10.67 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006899/0.2858, allocations: 1.114 MB / 0.5259 GB, free: 9.527 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000416/0.2863, allocations: 339.3 kB / 0.5262 GB, free: 9.195 MB / 362.7 MB Notification: Performance of SimCode: time 6.52e-07/0.2863, allocations: 0 / 0.5262 GB, free: 9.195 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.271/4.557, allocations: 16.42 MB / 0.5423 GB, free: 8.742 MB / 378.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Transformer_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Transformer.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe 2>&1)