Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_cpp_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.3+maint.om/package.mo): time 0.0009209/0.0009208, allocations: 167 kB / 16.07 MB, free: 5.691 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.196/1.196, allocations: 205.4 MB / 222.2 MB, free: 9.031 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.0006785/0.0006783, allocations: 74.44 kB / 270.6 MB, free: 8.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1604/0.1604, allocations: 38.08 MB / 356.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003174/0.0003176, allocations: 12 kB / 423.4 MB, free: 37.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2337, allocations: 56.33 MB / 479.7 MB, free: 9.234 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.00504/0.2388, allocations: 5.857 MB / 485.6 MB, free: 5.324 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002109/0.2409, allocations: 1.638 MB / 487.2 MB, free: 4.152 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002923/0.2412, allocations: 36.56 kB / 487.3 MB, free: 4.137 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004261/0.2416, allocations: 151 kB / 487.4 MB, free: 4.07 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007773/0.2424, allocations: 420.9 kB / 487.8 MB, free: 3.848 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003727/0.2428, allocations: 189.9 kB / 488 MB, free: 3.75 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008279/0.2436, allocations: 0.9219 MB / 488.9 MB, free: 3.406 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002654/0.2439, allocations: 179.2 kB / 489.1 MB, free: 3.336 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003664/0.2443, allocations: 294.1 kB / 489.4 MB, free: 3.215 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005097/0.2448, allocations: 390.4 kB / 489.8 MB, free: 3.094 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.182e-05/0.2449, allocations: 20.66 kB / 489.8 MB, free: 3.094 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.844e-05/0.245, allocations: 20.84 kB / 489.8 MB, free: 3.094 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001876/0.2451, allocations: 185.6 kB / 490 MB, free: 3.039 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002348/0.2454, allocations: 264.5 kB / 490.3 MB, free: 2.879 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004021/0.2458, allocations: 434.2 kB / 490.7 MB, free: 2.77 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2458, allocations: 0 / 490.7 MB, free: 2.77 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2458, allocations: 1.375 kB / 490.7 MB, free: 2.77 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.184e-06/0.2458, allocations: 0 / 490.7 MB, free: 2.77 MB / 314.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.001084/0.2469, allocations: 0.7976 MB / 491.5 MB, free: 2.164 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.247, allocations: 9.188 kB / 491.5 MB, free: 2.164 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.791e-05/0.2471, allocations: 81.61 kB / 491.6 MB, free: 2.102 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.234e-05/0.2471, allocations: 66.16 kB / 491.6 MB, free: 2.066 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006105/0.2478, allocations: 485.5 kB / 492.1 MB, free: 1.73 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.147e-05/0.2478, allocations: 30.75 kB / 492.1 MB, free: 1.719 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.14e-05/0.2479, allocations: 46.94 kB / 492.2 MB, free: 1.699 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007395/0.2486, allocations: 0.5318 MB / 492.7 MB, free: 1.43 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.2487, allocations: 3.938 kB / 492.7 MB, free: 1.426 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.858e-05/0.2487, allocations: 22.16 kB / 492.7 MB, free: 1.41 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.169e-05/0.2487, allocations: 19.31 kB / 492.8 MB, free: 1.41 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005821/0.2493, allocations: 387 kB / 493.1 MB, free: 1.289 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002104/0.2514, allocations: 1.934 MB / 495.1 MB, free: 15.88 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005632/0.252, allocations: 341 kB / 495.4 MB, free: 15.71 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003074/0.2523, allocations: 177.5 kB / 495.6 MB, free: 15.65 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.907e-05/0.2524, allocations: 11.3 kB / 495.6 MB, free: 15.64 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000379/0.2528, allocations: 277.1 kB / 495.9 MB, free: 15.46 MB / 330.7 MB Notification: Performance of pre-optimization done (n=35): time 1.783e-06/0.2528, allocations: 0 / 495.9 MB, free: 15.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.001866/0.2546, allocations: 1.177 MB / 497 MB, free: 14.73 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.892e-05/0.2548, allocations: 166.2 kB / 497.2 MB, free: 14.54 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004261/0.2552, allocations: 393.6 kB / 497.6 MB, free: 14.35 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.995e-05/0.2552, allocations: 32.41 kB / 497.6 MB, free: 14.31 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002202/0.2555, allocations: 304.4 kB / 497.9 MB, free: 14.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.26e-05/0.2556, allocations: 111.8 kB / 498 MB, free: 13.98 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.059e-05/0.2556, allocations: 10.34 kB / 498 MB, free: 13.97 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.2557, allocations: 361.7 kB / 498.4 MB, free: 13.64 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002139/0.256, allocations: 119.2 kB / 498.5 MB, free: 13.6 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002972/0.2563, allocations: 291 kB / 498.8 MB, free: 13.35 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005205/0.2568, allocations: 479 kB / 499.3 MB, free: 12.96 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.2568, allocations: 1.125 kB / 499.3 MB, free: 12.96 MB / 330.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007266/0.2575, allocations: 0.5207 MB / 499.8 MB, free: 12.71 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.576e-05/0.2576, allocations: 39.19 kB / 499.8 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.2576, allocations: 4.312 kB / 499.8 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.2576, allocations: 9.609 kB / 499.8 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003989/0.258, allocations: 104.6 kB / 499.9 MB, free: 12.67 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.66e-05/0.258, allocations: 18.14 kB / 499.9 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002446/0.2583, allocations: 27.25 kB / 500 MB, free: 12.65 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.79e-05/0.2584, allocations: 32.67 kB / 0.4883 GB, free: 12.64 MB / 330.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,$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.0002768/0.2586, allocations: 247.5 kB / 0.4885 GB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.407e-05/0.2587, allocations: 49.22 kB / 0.4886 GB, free: 12.42 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007246/0.2595, allocations: 451.2 kB / 0.489 GB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.2595, allocations: 7.812 kB / 0.489 GB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2595, allocations: 0.8125 kB / 0.489 GB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.2595, allocations: 3 kB / 0.489 GB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001329/0.2608, allocations: 0.9619 MB / 0.49 GB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.2608, allocations: 1.094 kB / 0.49 GB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003093/0.2612, allocations: 75.56 kB / 0.49 GB, free: 11.63 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.2612, allocations: 1.156 kB / 0.49 GB, free: 11.63 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.007e-05/0.2612, allocations: 11.16 kB / 0.49 GB, free: 11.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.2612, allocations: 2.406 kB / 0.49 GB, free: 11.62 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.2612, allocations: 0.7031 kB / 0.49 GB, free: 11.62 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000915/0.2621, allocations: 0.7115 MB / 0.4907 GB, free: 11.24 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001479/0.2623, allocations: 142.5 kB / 0.4909 GB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.788e-05/0.2624, allocations: 13.19 kB / 0.4909 GB, free: 11.1 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002098/0.2626, allocations: 17.36 kB / 0.4909 GB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.433e-05/0.2627, allocations: 22.19 kB / 0.4909 GB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.032e-05/0.2627, allocations: 30.69 kB / 0.491 GB, free: 11.07 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002658/0.263, allocations: 273.1 kB / 0.4912 GB, free: 10.89 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.263, allocations: 0 / 0.4912 GB, free: 10.89 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000431/0.2634, allocations: 102.4 kB / 0.4913 GB, free: 10.88 MB / 330.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) * 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.001215/0.2647, allocations: 1.259 MB / 0.4925 GB, free: 9.902 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005819/0.2653, allocations: 411.4 kB / 0.4929 GB, free: 9.688 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2653, allocations: 0 / 0.4929 GB, free: 9.688 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002995/0.2656, allocations: 267 kB / 0.4932 GB, free: 9.523 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000622/0.2662, allocations: 102 kB / 0.4933 GB, free: 9.465 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003895/0.2701, allocations: 2.857 MB / 0.4961 GB, free: 7.555 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004657/0.2706, allocations: 0.8842 MB / 0.4969 GB, free: 6.766 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002362/0.2708, allocations: 172.9 kB / 0.4971 GB, free: 6.625 MB / 330.7 MB Notification: Performance of SimCode: time 5.21e-07/0.2708, allocations: 0 / 0.4971 GB, free: 6.625 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.225/3.496, allocations: 7.348 MB / 0.5043 GB, free: 0.7773 MB / 330.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1)