Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",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.0009887/0.0009887, allocations: 94.14 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.001181/0.001181, allocations: 178.4 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.258/1.258, allocations: 223.2 MB / 241.1 MB, free: 5.234 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2591/0.2591, allocations: 38.08 MB / 330.3 MB, free: 14.19 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002913/0.0002914, allocations: 8 kB / 400.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2606, allocations: 59.15 MB / 459.2 MB, free: 30.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.004893/0.2655, allocations: 6.239 MB / 465.5 MB, free: 25.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002496/0.2681, allocations: 1.745 MB / 467.2 MB, free: 24.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004169/0.2685, allocations: 50.25 kB / 467.2 MB, free: 24.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003823/0.2689, allocations: 142.4 kB / 467.4 MB, free: 24.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007414/0.2697, allocations: 370.6 kB / 467.7 MB, free: 24.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005196/0.2702, allocations: 223.1 kB / 468 MB, free: 24.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000536/0.2707, allocations: 493 kB / 468.4 MB, free: 23.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002796/0.271, allocations: 188.3 kB / 468.6 MB, free: 23.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003635/0.2714, allocations: 299.3 kB / 468.9 MB, free: 23.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004383/0.2718, allocations: 317.6 kB / 469.2 MB, free: 23.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.693e-05/0.2719, allocations: 25.84 kB / 469.3 MB, free: 23.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.88e-05/0.272, allocations: 26.47 kB / 469.3 MB, free: 23.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002337/0.2722, allocations: 216.5 kB / 469.5 MB, free: 23.51 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001188/0.2724, allocations: 135.7 kB / 469.6 MB, free: 23.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004532/0.2728, allocations: 0.4964 MB / 470.1 MB, free: 23.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.2728, allocations: 0 / 470.1 MB, free: 23.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2728, allocations: 1.188 kB / 470.1 MB, free: 23.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.2729, allocations: 0 / 470.1 MB, free: 23.31 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001295/0.2742, allocations: 0.8574 MB / 471 MB, free: 22.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.2742, allocations: 8.719 kB / 471 MB, free: 22.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.096e-05/0.2743, allocations: 87.78 kB / 471.1 MB, free: 22.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.44e-05/0.2744, allocations: 65.09 kB / 471.1 MB, free: 22.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007886/0.2752, allocations: 0.5121 MB / 471.7 MB, free: 22.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.78e-05/0.2752, allocations: 36.75 kB / 471.7 MB, free: 22.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.647e-05/0.2753, allocations: 52.97 kB / 471.7 MB, free: 22.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008372/0.2762, allocations: 0.6113 MB / 472.4 MB, free: 21.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.2762, allocations: 0 / 472.4 MB, free: 21.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.304e-05/0.2762, allocations: 20.62 kB / 472.4 MB, free: 21.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001033/0.2763, allocations: 33.97 kB / 472.4 MB, free: 21.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007053/0.2771, allocations: 0.5062 MB / 472.9 MB, free: 21.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002666/0.2797, allocations: 2.239 MB / 475.2 MB, free: 20.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007149/0.2805, allocations: 0.489 MB / 475.6 MB, free: 20.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.618e-05/0.2805, allocations: 8.094 kB / 475.6 MB, free: 20.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.886e-05/0.2805, allocations: 41.97 kB / 475.7 MB, free: 20.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.723e-06/0.2805, allocations: 0 / 475.7 MB, free: 20.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.002722/0.2833, allocations: 1.722 MB / 477.4 MB, free: 19.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.748e-05/0.2833, allocations: 83.17 kB / 477.5 MB, free: 18.97 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003525/0.2837, allocations: 415 kB / 477.9 MB, free: 18.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.698e-05/0.2837, allocations: 36.48 kB / 477.9 MB, free: 18.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.2838, allocations: 302.9 kB / 478.2 MB, free: 18.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.403e-05/0.2839, allocations: 166.1 kB / 478.4 MB, free: 18.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.076e-05/0.2839, allocations: 9.344 kB / 478.4 MB, free: 18.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.639e-05/0.284, allocations: 359.8 kB / 478.8 MB, free: 17.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002355/0.2842, allocations: 187.2 kB / 478.9 MB, free: 17.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002674/0.2845, allocations: 309.1 kB / 479.2 MB, free: 17.58 MB / 350.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.001641/0.2862, allocations: 0.7497 MB / 480 MB, free: 17.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.2862, allocations: 5.172 kB / 480 MB, free: 17.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0009856/0.2872, allocations: 0.6923 MB / 480.7 MB, free: 16.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.2872, allocations: 6.125 kB / 480.7 MB, free: 16.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.2872, allocations: 4.219 kB / 480.7 MB, free: 16.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003285/0.2875, allocations: 135.3 kB / 480.8 MB, free: 16.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004165/0.288, allocations: 116.1 kB / 480.9 MB, free: 16.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002125/0.2901, allocations: 2.335 MB / 483.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002993/0.2904, allocations: 27.73 kB / 483.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.34e-05/0.2905, allocations: 24.12 kB / 483.3 MB, free: 14.72 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (55): * Single equations (assignments): 54 * 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: 1 {(3,77.8%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003219/0.2908, allocations: 222 kB / 483.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.145e-05/0.2909, allocations: 59.73 kB / 483.6 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001001/0.2919, allocations: 0.6456 MB / 484.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.2919, allocations: 9.5 kB / 484.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.2919, allocations: 2.5 kB / 484.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.2919, allocations: 1.281 kB / 484.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001673/0.2936, allocations: 1.367 MB / 485.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/0.2936, allocations: 3.938 kB / 485.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003047/0.2939, allocations: 75.89 kB / 485.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003062/0.2943, allocations: 136.9 kB / 485.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.961e-05/0.2943, allocations: 24.11 kB / 485.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001766/0.2961, allocations: 2.342 MB / 488.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2961, allocations: 0 / 488.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.2971, allocations: 1.037 MB / 489.2 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.213e-05/0.2972, allocations: 120.5 kB / 489.4 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.076e-05/0.2973, allocations: 12.09 kB / 489.4 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002227/0.2975, allocations: 27.92 kB / 489.4 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.59e-05/0.2976, allocations: 36.66 kB / 489.4 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.697e-05/0.2976, allocations: 16 kB / 489.4 MB, free: 8.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000254/0.2979, allocations: 287.1 kB / 489.7 MB, free: 8.449 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.81e-07/0.2979, allocations: 0 / 489.7 MB, free: 8.449 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005809/0.2985, allocations: 151.9 kB / 489.9 MB, free: 8.301 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * 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 (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * 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 {(3,77.8%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001197/0.2997, allocations: 1.933 MB / 491.8 MB, free: 6.301 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008495/0.3005, allocations: 0.6601 MB / 492.5 MB, free: 5.629 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3006, allocations: 0 / 492.5 MB, free: 5.629 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004742/0.301, allocations: 437 kB / 492.9 MB, free: 5.188 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005199/0.3016, allocations: 112.9 kB / 493 MB, free: 5.082 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00425/0.3058, allocations: 5.904 MB / 498.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004258/0.3063, allocations: 0.9372 MB / 499.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000318/0.3066, allocations: 104.7 kB / 500 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000225/0.3068, allocations: 199.4 kB / 0.4884 GB, free: 13.79 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3068, allocations: 0 / 0.4884 GB, free: 13.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02143/0.3283, allocations: 11.06 MB / 0.4992 GB, free: 2.957 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001505/0.3285, allocations: 220.1 kB / 0.4994 GB, free: 2.715 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.692/2.02, allocations: 0 / 0.4994 GB, free: 2.715 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.mat does not exist to compare? outputFormat=mat