Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.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.AC3ph.Generation.PVsource,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PVsource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PVsource,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PVsource",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.0009152/0.0009152, allocations: 94.61 kB / 16.3 MB, free: 5.996 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.0009581/0.0009582, allocations: 183.7 kB / 17.2 MB, free: 5.914 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.274/1.274, allocations: 223.2 MB / 241.1 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2707/0.2707, allocations: 38.07 MB / 330.3 MB, free: 14.2 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003067/0.0003068, allocations: 15.98 kB / 400.1 MB, free: 9.148 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.2589, allocations: 59.16 MB / 459.2 MB, free: 30.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PVsource): time 0.003901/0.2629, allocations: 4.444 MB / 463.7 MB, free: 27.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001676/0.2646, allocations: 1.421 MB / 465.1 MB, free: 26.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001776/0.2647, allocations: 22.5 kB / 465.1 MB, free: 26.15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002555/0.265, allocations: 101.2 kB / 465.2 MB, free: 26.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004085/0.2654, allocations: 217.9 kB / 465.4 MB, free: 25.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003647/0.2658, allocations: 162.3 kB / 465.6 MB, free: 25.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003137/0.2661, allocations: 291.3 kB / 465.9 MB, free: 25.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006829/0.2668, allocations: 0.5209 MB / 466.4 MB, free: 25.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002393/0.2671, allocations: 192.9 kB / 466.6 MB, free: 25.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002947/0.2674, allocations: 174.7 kB / 466.7 MB, free: 25.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.542e-05/0.2674, allocations: 16.59 kB / 466.8 MB, free: 25.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001767/0.2676, allocations: 77.78 kB / 466.8 MB, free: 25.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001566/0.2678, allocations: 153.3 kB / 467 MB, free: 25.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.093e-05/0.2679, allocations: 101.6 kB / 467.1 MB, free: 25.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004174/0.2683, allocations: 395.2 kB / 467.5 MB, free: 25.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.2683, allocations: 4 kB / 467.5 MB, free: 25.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2683, allocations: 0 / 467.5 MB, free: 25.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.483e-06/0.2683, allocations: 1.062 kB / 467.5 MB, free: 25.02 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.0008358/0.2691, allocations: 0.6222 MB / 468.1 MB, free: 24.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.2692, allocations: 9.156 kB / 468.1 MB, free: 24.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.711e-05/0.2693, allocations: 81.38 kB / 468.2 MB, free: 24.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005479/0.2698, allocations: 93.25 kB / 468.3 MB, free: 24.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005411/0.2704, allocations: 391.3 kB / 468.7 MB, free: 24.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.091e-05/0.2704, allocations: 21.88 kB / 468.7 MB, free: 24.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/0.2705, allocations: 47.25 kB / 468.7 MB, free: 24.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005952/0.2711, allocations: 469.2 kB / 469.2 MB, free: 23.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.2712, allocations: 1.469 kB / 469.2 MB, free: 23.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.305e-05/0.2712, allocations: 16.39 kB / 469.2 MB, free: 23.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-05/0.2713, allocations: 23.53 kB / 469.2 MB, free: 23.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004857/0.2718, allocations: 332.7 kB / 469.6 MB, free: 23.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00184/0.2736, allocations: 1.699 MB / 471.2 MB, free: 22.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002358/0.2739, allocations: 153.5 kB / 471.4 MB, free: 22.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.451e-05/0.2739, allocations: 2.406 kB / 471.4 MB, free: 22.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.566e-05/0.2739, allocations: 40.69 kB / 471.4 MB, free: 22.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.413e-06/0.2739, allocations: 0 / 471.4 MB, free: 22.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.001194/0.2751, allocations: 0.8533 MB / 472.3 MB, free: 21.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.933e-05/0.2752, allocations: 84.09 kB / 472.4 MB, free: 21.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002786/0.2755, allocations: 306.8 kB / 472.7 MB, free: 21.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.2755, allocations: 26.98 kB / 472.7 MB, free: 21.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.2756, allocations: 253.6 kB / 472.9 MB, free: 21.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.299e-05/0.2757, allocations: 57.44 kB / 473 MB, free: 21.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.207e-05/0.2757, allocations: 5.094 kB / 473 MB, free: 21.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.214e-05/0.2757, allocations: 340.3 kB / 473.3 MB, free: 20.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001386/0.2759, allocations: 95.58 kB / 473.4 MB, free: 20.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001589/0.276, allocations: 195.7 kB / 473.6 MB, free: 20.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001672/0.2762, allocations: 126.7 kB / 473.8 MB, free: 20.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.2762, allocations: 5.875 kB / 473.8 MB, free: 20.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007608/0.277, allocations: 459.2 kB / 474.2 MB, free: 20.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.277, allocations: 13.62 kB / 474.2 MB, free: 20.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005171/0.2775, allocations: 287.5 kB / 474.5 MB, free: 20.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004329/0.278, allocations: 124.8 kB / 474.6 MB, free: 20.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001971/0.2782, allocations: 61.5 kB / 474.7 MB, free: 20.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0023/0.2805, allocations: 2.29 MB / 477 MB, free: 18.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001894/0.2807, allocations: 12.53 kB / 477 MB, free: 18.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.203e-05/0.2807, allocations: 15.38 kB / 477 MB, free: 18.47 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * 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: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001874/0.2809, allocations: 190.3 kB / 477.2 MB, free: 18.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.827e-05/0.281, allocations: 31.19 kB / 477.2 MB, free: 18.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004054/0.2814, allocations: 249.1 kB / 477.5 MB, free: 18.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.2814, allocations: 6.688 kB / 477.5 MB, free: 18.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.2814, allocations: 0.5625 kB / 477.5 MB, free: 18.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.2814, allocations: 1.891 kB / 477.5 MB, free: 18.17 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001039/0.2825, allocations: 0.7135 MB / 478.2 MB, free: 17.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.2825, allocations: 1.906 kB / 478.2 MB, free: 17.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002071/0.2827, allocations: 43.31 kB / 478.2 MB, free: 17.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001024/0.2828, allocations: 34.58 kB / 478.3 MB, free: 17.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/0.2828, allocations: 6.312 kB / 478.3 MB, free: 17.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008358/0.2837, allocations: 1.503 MB / 479.8 MB, free: 16.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.2837, allocations: 5.328 kB / 479.8 MB, free: 16.22 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004403/0.2841, allocations: 458.3 kB / 480.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.712e-05/0.2842, allocations: 110 kB / 480.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.729e-05/0.2843, allocations: 2.375 kB / 480.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001543/0.2844, allocations: 11.89 kB / 480.3 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.582e-05/0.2845, allocations: 10.77 kB / 480.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.237e-05/0.2845, allocations: 3.969 kB / 480.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001878/0.2847, allocations: 219.3 kB / 480.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2847, allocations: 0 / 480.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004643/0.2851, allocations: 91.64 kB / 480.7 MB, free: 15.58 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006167/0.2858, allocations: 1.186 MB / 481.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005753/0.2864, allocations: 405 kB / 482.2 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2864, allocations: 1.375 kB / 482.2 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002611/0.2866, allocations: 229.3 kB / 482.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000327/0.287, allocations: 55.91 kB / 482.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00307/0.2901, allocations: 4.457 MB / 487 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002559/0.2903, allocations: 0.8544 MB / 487.8 MB, free: 9.484 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001745/0.2905, allocations: 54.28 kB / 487.9 MB, free: 9.461 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001274/0.2906, allocations: 123 kB / 488 MB, free: 9.355 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2906, allocations: 4 kB / 488 MB, free: 9.352 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01677/0.3074, allocations: 6.961 MB / 495 MB, free: 3.285 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001235/0.3076, allocations: 210.2 kB / 495.2 MB, free: 3.047 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.663/1.971, allocations: 0 / 495.2 MB, free: 3.047 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PVsource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PVsource.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource_res.mat does not exist to compare? outputFormat=mat