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.0009113/0.0009162, allocations: 95.53 kB / 16.3 MB, free: 6.457 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.0009465/0.0009464, allocations: 181.5 kB / 17.19 MB, free: 6.34 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.317/1.317, allocations: 223.2 MB / 241.1 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2804/0.2804, allocations: 38.07 MB / 330.3 MB, free: 14.19 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003026/0.0003027, allocations: 8 kB / 400.1 MB, free: 9.156 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2605, allocations: 59.15 MB / 459.2 MB, free: 30.42 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.004914/0.2655, allocations: 5.582 MB / 464.8 MB, free: 26.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002027/0.2675, allocations: 1.616 MB / 466.4 MB, free: 25.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002662/0.2678, allocations: 40.22 kB / 466.4 MB, free: 25.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003091/0.2681, allocations: 115.9 kB / 466.6 MB, free: 25.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007226/0.2689, allocations: 347.4 kB / 466.9 MB, free: 25.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003649/0.2692, allocations: 178.1 kB / 467.1 MB, free: 24.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004499/0.2697, allocations: 417 kB / 467.5 MB, free: 24.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002499/0.27, allocations: 160.3 kB / 467.6 MB, free: 24.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003235/0.2703, allocations: 250.9 kB / 467.9 MB, free: 24.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003998/0.2707, allocations: 276.4 kB / 468.2 MB, free: 24.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.825e-05/0.2708, allocations: 21.81 kB / 468.2 MB, free: 24.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.706e-05/0.2708, allocations: 21 kB / 468.2 MB, free: 24.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001658/0.271, allocations: 168.3 kB / 468.4 MB, free: 24.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.2711, allocations: 127 kB / 468.5 MB, free: 24.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004019/0.2715, allocations: 425.5 kB / 468.9 MB, free: 24.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.2715, allocations: 0 / 468.9 MB, free: 24.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2715, allocations: 0 / 468.9 MB, free: 24.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.2716, allocations: 0 / 468.9 MB, free: 24.22 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.001118/0.2727, allocations: 0.8013 MB / 469.7 MB, free: 23.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.2727, allocations: 9.625 kB / 469.7 MB, free: 23.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.147e-05/0.2728, allocations: 91.19 kB / 469.8 MB, free: 23.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.797e-05/0.2729, allocations: 65.17 kB / 469.9 MB, free: 23.51 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000697/0.2736, allocations: 466.6 kB / 470.3 MB, free: 23.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.546e-05/0.2736, allocations: 29.91 kB / 470.3 MB, free: 23.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.024e-05/0.2737, allocations: 43.23 kB / 470.4 MB, free: 23.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007239/0.2744, allocations: 0.5325 MB / 470.9 MB, free: 22.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.2745, allocations: 1.156 kB / 470.9 MB, free: 22.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.916e-05/0.2745, allocations: 24.67 kB / 470.9 MB, free: 22.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.28e-05/0.2745, allocations: 19.11 kB / 471 MB, free: 22.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005689/0.2751, allocations: 392 kB / 471.4 MB, free: 22.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001992/0.2771, allocations: 1.931 MB / 473.3 MB, free: 21.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005084/0.2776, allocations: 333.6 kB / 473.6 MB, free: 21.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.948e-05/0.2777, allocations: 3.406 kB / 473.6 MB, free: 21.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003314/0.278, allocations: 288.4 kB / 473.9 MB, free: 20.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 1.553e-06/0.278, allocations: 0 / 473.9 MB, free: 20.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.001972/0.28, allocations: 1.453 MB / 475.3 MB, free: 19.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.582e-05/0.2801, allocations: 166.6 kB / 475.5 MB, free: 19.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004321/0.2805, allocations: 389.7 kB / 475.9 MB, free: 19.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.721e-05/0.2805, allocations: 37.56 kB / 475.9 MB, free: 19.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001739/0.2807, allocations: 289.7 kB / 476.2 MB, free: 19.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.209e-05/0.2808, allocations: 122.1 kB / 476.3 MB, free: 19.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.762e-05/0.2808, allocations: 10.66 kB / 476.3 MB, free: 19.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.861e-05/0.2809, allocations: 356.7 kB / 476.7 MB, free: 18.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001936/0.2811, allocations: 120.6 kB / 476.8 MB, free: 18.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002612/0.2814, allocations: 286.6 kB / 477.1 MB, free: 18.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002268/0.2816, allocations: 188.5 kB / 477.3 MB, free: 18.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2816, allocations: 2.75 kB / 477.3 MB, free: 18.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007648/0.2824, allocations: 0.6086 MB / 477.9 MB, free: 18.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.551e-05/0.2825, allocations: 42 kB / 477.9 MB, free: 18.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.577e-06/0.2825, allocations: 8.531 kB / 477.9 MB, free: 18.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001168/0.2826, allocations: 31.31 kB / 478 MB, free: 18.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003653/0.283, allocations: 106.6 kB / 478.1 MB, free: 18.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006782/0.2837, allocations: 1.384 MB / 479.4 MB, free: 16.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002615/0.2839, allocations: 22.97 kB / 479.5 MB, free: 16.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.665e-05/0.284, allocations: 32.97 kB / 479.5 MB, free: 16.65 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 (59): * Single equations (assignments): 57 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002703/0.2843, allocations: 250.5 kB / 479.7 MB, free: 16.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.001e-05/0.2843, allocations: 45.72 kB / 479.8 MB, free: 16.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007325/0.2851, allocations: 0.5467 MB / 480.3 MB, free: 16.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.2851, allocations: 7.688 kB / 480.3 MB, free: 16.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.776e-06/0.2851, allocations: 1.031 kB / 480.3 MB, free: 16.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.2851, allocations: 5.234 kB / 480.4 MB, free: 16.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001276/0.2864, allocations: 1.082 MB / 481.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.2864, allocations: 4.031 kB / 481.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002635/0.2867, allocations: 61.56 kB / 481.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.352e-05/0.2867, allocations: 27.28 kB / 481.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.51e-05/0.2868, allocations: 7.812 kB / 481.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006374/0.2874, allocations: 1.377 MB / 482.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.2874, allocations: 0 / 482.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009542/0.2884, allocations: 0.8383 MB / 483.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001423/0.2886, allocations: 142.8 kB / 483.9 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.52e-05/0.2886, allocations: 12.5 kB / 483.9 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002073/0.2888, allocations: 16.86 kB / 483.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.323e-05/0.2889, allocations: 31.2 kB / 483.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.306e-05/0.2889, allocations: 29.84 kB / 484 MB, free: 12.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002352/0.2892, allocations: 269.6 kB / 484.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2892, allocations: 0 / 484.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005146/0.2897, allocations: 99.84 kB / 484.3 MB, free: 12.79 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 (32): * Single equations (assignments): 29 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001074/0.2908, allocations: 1.524 MB / 485.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007657/0.2916, allocations: 0.5088 MB / 486.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.2916, allocations: 0 / 486.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004046/0.292, allocations: 381.3 kB / 486.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004803/0.2925, allocations: 94.83 kB / 486.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003567/0.2961, allocations: 6.364 MB / 493.2 MB, free: 4.621 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002555/0.2963, allocations: 0.8976 MB / 494.1 MB, free: 3.699 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002558/0.2966, allocations: 84.31 kB / 494.2 MB, free: 3.617 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001709/0.2968, allocations: 175.4 kB / 494.3 MB, free: 3.445 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2968, allocations: 0 / 494.3 MB, free: 3.445 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0396/0.3364, allocations: 8.328 MB / 0.4909 GB, free: 11.34 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001817/0.3366, allocations: 209.2 kB / 0.4911 GB, free: 11.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.723/2.06, allocations: 0 / 0.4911 GB, free: 11.1 MB / 366.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